Qcumbers | CC
01/22/2025, 12:47 PMAI Evy
01/22/2025, 12:47 PMAI Evy
01/22/2025, 12:48 PMjson
{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"opt_out_sensitive_data_storage": false
}
}'
Make sure in your Zapier webhook configuration that the metadata field is formatted as a proper JSON object, even if empty ({}), rather than a string or other data type.AI Evy
01/22/2025, 12:48 PMQcumbers | CC
01/22/2025, 12:49 PMAI Evy
01/22/2025, 12:49 PMAI Evy
01/22/2025, 12:49 PMQcumbers | CC
01/22/2025, 1:00 PMAI Evy
01/22/2025, 1:00 PMAI Evy
01/22/2025, 1:00 PMAI Evy
01/22/2025, 1:00 PMjson
"Hello {{first_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
[(1)]()
Make sure:
1. Your variable name in the prompt matches exactly (case-sensitive) with what you're passing in retell_llm_dynamic_variables
2. You're using double curly braces {{variable_name}} in your prompt
If a dynamic variable is not assigned a value, it will remain unchanged in the output - meaning you'll see the raw {{variable_name}} in the response.
For your specific case, try changing First_Name to first_name (lowercase) to maintain consistency, or ensure your prompt variable exactly matches the case you're using in Zapier.AI Evy
01/22/2025, 1:00 PMQcumbers | CC
01/22/2025, 1:01 PMAI Evy
01/22/2025, 1:01 PMAI Evy
01/22/2025, 1:01 PMjson
{
"First_Name": "John Smith"
}
The variable name in your prompt {{First_Name}} should exactly match the key in the retell_llm_dynamic_variables object. If the variable is not properly set, it will remain unchanged in the output and you'll continue to see the raw {{First_Name}} in the response.
When using dynamic variables with Zapier, make sure the JSON structure matches exactly what's expected by Retell AI's API.AI Evy
01/22/2025, 1:01 PM