mariecurie
11/05/2025, 6:27 PMAI Evy
11/05/2025, 6:27 PMAI Evy
11/05/2025, 6:27 PMAI Evy
11/05/2025, 6:27 PMretell_llm_dynamic_variables must be strings [(1) ]() [(2) ]() . Your dynamic variables contain template expressions like {{ $('get memory records1') .item.json.user_first_name }} which appear to be from an automation tool (like n8n or Make.com) .
Before sending the API request to Retell AI, you need to resolve these template expressions into actual string values . The Retell AI API expects the dynamic variables to look like this [(2) ]() :
json
{
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
To fix this:
1. Ensure your automation tool evaluates all template expressions before the API call [(1) ]() [(2) ]()
2. All resolved values must be strings - numbers, booleans, or other data types are not supported [(1) ]()
3. The final JSON sent to Retell should contain only plain string values, not template syntax [(1) ]() [(2) ]()
For example, instead of "first_name": "{{ $('get memory records1') .item.json.user_first_name }}", it should be "first_name": "Marie" after your automation tool processes it .
**AI Evy
11/05/2025, 6:28 PMmariecurie
11/05/2025, 6:30 PMAI Evy
11/05/2025, 6:30 PMAI Evy
11/05/2025, 6:30 PMAI Evy
11/05/2025, 6:30 PM"direction": "outbound" [(1) ]() . This is a syntax error that will prevent the JSON from being parsed correctly .
Here's the corrected JSON structure for creating an outbound phone call :
json
{
"from_number": "+13174636464",
"to_number": "+13174636464",
"override_agent_id": "agent_e63b71cc1ac20085ad01468225",
"retell_llm_dynamic_variables": {
"first_name": "Sarah",
"partner_name": "NO PARTNER",
"appointment_date": "2025-11-06",
"appointment_time": "19:30",
"appointment_location": "Indianapolis",
"tags": "appointment_true",
"phone": "3179025591",
"email": "sdaum86@outlook.com",
"memory": "2025-10-30\nSarah Dom called to inquire about a vacation package offer she received for a Disney Universal Studios trip. After confirming her details and discussing the offer, she successfully booked an appointment for a travel showcase on November 6th at 7:30 PM in Indianapolis."
}
}
Additional notes:
- The call_type and direction parameters are not needed for the Create Phone Call endpoint . These are response fields, not request parameters .
- The required parameters are from_number and to_number in E.164 format .
- Your override_agent_id and retell_llm_dynamic_variables are correctly formatted .
**AI Evy
11/05/2025, 6:30 PM