emanuelkr
06/08/2025, 3:03 PMAI Evy
06/08/2025, 3:03 PMAI Evy
06/08/2025, 3:04 PMcall_inbound object containing the dynamic_variables field [(1) ]() .
Here's the structure for one dynamic variable:
json
{
"call_inbound": {
"dynamic_variables": {
"customer_name": "John Doe"
}
}
}
The key points for the response structure :
- Use a successful status code (2xx)
- Group fields under call_inbound
- Place your dynamic variable inside the dynamic_variables object
- All dynamic variable values must be strings [(2) ]()
For example, if you want to pass the caller's phone number as a dynamic variable, your response would look like:
json
{
"call_inbound": {
"dynamic_variables": {
"caller_phone": "+12137771234"
}
}
}
[(7) ]()AI Evy
06/08/2025, 3:04 PMAI Evy
06/08/2025, 3:04 PMemanuelkr
06/08/2025, 3:04 PMAI Evy
06/08/2025, 3:04 PMAI Evy
06/08/2025, 3:04 PM"{{2.firstName}}" appears to be a reference to data from your webhook processing system (like Make.com) , but for the webhook response to Retell AI, you need to provide the actual string value, not a template reference [(2) ]() .
Your structure should be:
json
{
"call_inbound": {
"dynamic_variables": {
"name": "John Smith"
}
}
}
[(1) ]()
Instead of "{{2.firstName}}", you need to resolve that reference in your webhook processing system first, then pass the actual name value to Retell AI [(2) ]() . All dynamic variable values must be strings .
If you're using Make.com (as mentioned in the Discord discussion [(6) ]() ) , you'll need to configure your scenario to extract the actual value from {{2.firstName}} and pass that resolved string value in the webhook response to Retell AI.AI Evy
06/08/2025, 3:04 PMAI Evy
06/08/2025, 3:04 PMemanuelkr
06/08/2025, 3:04 PMAI Evy
06/08/2025, 3:04 PMAI Evy
06/08/2025, 3:05 PM"emanuella" which makes it invalid JSON [(1) ]() .
The correct format should be:
json
{
"call_inbound": {
"dynamic_variables": {
"name": "emanuella"
}
}
}
To troubleshoot why it's not working, check these common issues:
1. **Webhook endpoint configuration**: Ensure your inbound webhook URL is properly configured in your phone number settings
2. **Response timing**: The webhook has a 10-second timeout, so your endpoint must respond within that timeframe
3. **Status code**: Make sure you're returning a successful status code (2xx)
4. **Agent configuration**: Verify that your agent's prompt includes the dynamic variable {{name}} where you want it to appear [(2) ]()
The webhook will retry up to 3 times if it doesn't receive a successful response [(1) ]() . If all attempts fail and your number has an inbound agent ID set, it will connect to that agent without the dynamic variables .
To use the dynamic variable in your agent, include {{name}} in your agent's prompt, begin message, or other supported fields [(2) ]() .AI Evy
06/08/2025, 3:05 PMAI Evy
06/08/2025, 3:05 PM