the dynamic variable {{call.id}} inside the assist...
# support
t
the dynamic variable {{call.id}} inside the assistant prompt is never getting value, what can i do?
v
It looks like
{{call.id}}
is not a default dynamic variable in Vapi, so it won't be automatically populated in your assistant prompt.
To use a custom variable, set it explicitly in your API call using
assistantOverrides.variableValues
. For example:
Copy code
json
{
  "assistantOverrides": {
    "variableValues": {
      "call_id": "your-value-here"
    }
  }
}
Then reference it as
{{call_id}}
in your prompt. Make sure to use only variables that are either default or explicitly set in your request ([see documentation](https://docs.vapi.ai/assistants/dynamic-variables)). Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
c
Hi, call id is not a default dynamic variable in Vapi, You can checkout all the default vapi variables here: () To pass dynamic variables which are not provided by vapi by default, you can pass it down using assistantOverrides.VariableValues using the Call API, you can checkout the structure for it here: () () Thank you