ambitious-aqua
ambitious-aqua5mo ago

Uegent need help

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!
3 Replies
Vapi
Vapi5mo ago
Check your server's response to ensure the variable names exactly match those used in your system prompt. For example, your server should return:
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"user_name": "John Doe",
"user_email": "john@example.com",
"user_phone": "+1234567890"
}
}
}
{
"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. Source: - Personalization with user information | Vapi Docs
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Vapi
Vapi5mo ago
Check your server's response to ensure the variable names exactly match those used in your system prompt. For example, your server should return:
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"user_name": "John Doe",
"user_email": "john@example.com",
"user_phone": "+1234567890"
}
}
}
{
"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. Source: - Personalization with user information | Vapi Docs
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Kyle Brunker
Kyle Brunker5mo ago
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!

Did you find this page helpful?