https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm having issues passing through custom field inf...
# ❓・ai-evy-support
a
Thanks for tagging me @danday9. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, when passing custom field information to your Retell AI agent, you need to use dynamic variables in the correct format. For Retell AI agents, dynamic variables should be passed using the
retell_llm_dynamic_variables
parameter [(1) ]() . The format is a key-value pair object, like this:
Copy code
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?
​ To learn more, see the sources I considered: [[1] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[2] Manually test your agent](https://docs.retellai.com/test/llm-playground) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
i need further help
@AI Evy who can i mention to ask for further help?
a
Thanks for the follow-up, @danday9. I'll get back to you soon.
### Answer I don't have information about specific team members or support contacts to mention in the available sources. For additional help with your dynamic variables issue, you can: - Visit [Contact Sales]() - Visit [) Before reaching out, let me offer some additional troubleshooting steps based on the documentation: Common Dynamic Variable Issues: 1. Variable naming - Ensure your variable names in the prompt match exactly what you're passing in
retell_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) ]() :
Copy code
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?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[3] Dynamic Variables](https://discord.com/channels/1186424376300679209/1356680357084135558) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.