rbrun
05/28/2025, 7:47 AMawait vapiClient.calls.create({
assistantId,
phoneNumberId: vapiPhoneNumbers[phoneNumberIndex],
customer: { number: rawNumber, numberE164CheckEnabled: true },
assistantOverrides: { variableValues: { ...callVariables } },
});
In my callVariables, I have one called "today", and I have that variable in my Prompt on the Structured Data:
You will be given a transcript of a call and a system prompt for the AI voice assistant. Determine the call was successful and whether the recipient of the call booked a meeting.
Consider today as {{today}}.
But that value is completely ignored, the one in the assistant prompt is replaced and works as expected, but my variable in the analysis plan thinks it's 2023.Vapi Support Bot
05/28/2025, 7:48 AM{{today}}
) passed via assistantOverrides.variableValues
are only supported in the assistant's system prompt and dashboard messages—not in analysis plan prompts (such as structured data or summary prompts). This matches the behavior you're seeing, where the variable works in the assistant prompt but not in the analysis plan. If you need this feature, I recommend submitting a feature request or reaching out to [Vapi support](support@vapi.ai) for clarification or to report this as a possible regression.
Sources:
- [Vapi Docs: Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)
- [Vapi Docs: Call Analysis](https://docs.vapi.ai/assistants/call-analysis)
- [Vapi Support](https://docs.vapi.ai/support)rbrun
05/28/2025, 7:49 AMVapi Support Bot
05/28/2025, 7:50 AM{{today}}
, you'll have to manually replace them in your prompt string before sending it to Vapi, for example:
js
const prompt = `...Consider today as ${callVariables.today}.`;
If this is a critical feature, consider submitting a feature request to Vapi support for future updates.
Sources:
- [Vapi Docs: Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)
- [Vapi Docs: Call Analysis](https://docs.vapi.ai/assistants/call-analysis)
- [Vapi Support](https://docs.vapi.ai/support)Vapi Support Bot
05/28/2025, 8:11 AMKings Big
05/28/2025, 10:52 PMrbrun
05/29/2025, 1:07 AM