danday9
10/29/2025, 4:24 PMAI Evy
10/29/2025, 4:25 PMAI Evy
10/29/2025, 4:25 PMretell_llm_dynamic_variables parameter [(1) ]() . The format is a key-value pair object, like this:
json
{ "customer_name": "John Doe" }
The key issue you're experiencing—where the AI agent says "first_name" instead of the actual name—suggests the variable isn't being properly interpolated. Here's what to check:
1. **Variable Format**: Ensure you're passing the dynamic variables in the correct format when registering or initiating the call
2. **Variable Reference**: In your agent prompt, reference the variable using double curly braces, like {{customer_name}} or {{first_name}}
3. **Test the Variables**: Use the LLM Playground to test your dynamic variables and verify they're being properly interpolated before deploying [(2) ]()
Without seeing your specific implementation code, I can't pinpoint the exact issue with your GHL CRM integration. However, the dynamic variables must be passed as an object with string key-value pairs when you register the phone call or initiate the conversation [(1) ]() .
If you continue experiencing issues after verifying your variable format, I'd recommend checking out these resources:
- [Register Phone Call API documentation]()
- [LLM Playground for testing]()
Would you like me to provide a general approach for debugging dynamic variable issues?AI Evy
10/29/2025, 4:25 PMAI Evy
10/29/2025, 4:25 PMdanday9
10/29/2025, 4:32 PMdanday9
10/29/2025, 4:33 PMAI Evy
10/29/2025, 4:33 PMAI Evy
10/29/2025, 4:33 PMretell_llm_dynamic_variables [(1) ]() [(2) ]()
2. Format verification - Dynamic variables must be passed as string key-value pairs in the retell_llm_dynamic_variables object
3. Testing approach - Configure agent-level default dynamic variables as fallbacks, then test using the web interface before production [(1) ]()
4. Alternative structure - Some users have found success using this format for inbound calls [(3) ]() :
json
{
"call_inbound": {
"dynamic_variables": {
"caller_name": "value"
}
}
}
Would you like me to provide a general troubleshooting approach for GHL CRM integration with dynamic variables?AI Evy
10/29/2025, 4:33 PMAI Evy
10/29/2025, 4:33 PM