Uegent need help
# support
j
Hi Vapi Support – I’m having an urgent issue: {{user_email}} and {{user_phone}} are not being replaced with real values in the system prompt, although {{user_name}} works fine in the first message. This is affecting our live call experience. Please help ASAP!
v
Check your server's response to ensure the variable names exactly match those used in your system prompt. For example, your server should return:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "assistantOverrides": {
    "variableValues": {
      "user_name": "John Doe",
      "user_email": "john@example.com",
      "user_phone": "+1234567890"
    }
  }
}
Make sure the keys (
user_email
,
user_phone
) are spelled exactly as in your prompt and that they are not missing or null.
This should resolve most variable replacement issues in Vapi assistants. [See documentation for details](https://docs.vapi.ai/assistants/personalization#implement-your-server-endpoint). Source: - [Personalization with user information | Vapi Docs](https://docs.vapi.ai/assistants/personalization#implement-your-server-endpoint)
Check your server's response to ensure the variable names exactly match those used in your system prompt. For example, your server should return:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "assistantOverrides": {
    "variableValues": {
      "user_name": "John Doe",
      "user_email": "john@example.com",
      "user_phone": "+1234567890"
    }
  }
}
Make sure the keys (
user_email
,
user_phone
) are spelled exactly as in your prompt and that they are not missing or null.
This should resolve most variable replacement issues in Vapi assistants. [See documentation for details](https://docs.vapi.ai/assistants/personalization#implement-your-server-endpoint). Source: - [Personalization with user information | Vapi Docs](https://docs.vapi.ai/assistants/personalization#implement-your-server-endpoint)
c
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
2 Views