Retell AI Variable

I did some testing with Retell AI and even did a batch call test but AI is not reading exactly the details I put in Dynamic Variable 2 and Dynamic Variable 1 been trying to fi this for 4 days already but still getting the same issue

When dynamic variables aren’t being read correctly in Retell AI, there are several common issues to check:

Verify Dynamic Variable Format

All values in retell_llm_dynamic_variables must be strings(1). Numbers, booleans, or other data types are not supported(1).

For batch calls specifically, when you upload your Excel sheet, the dynamic variables should be in separate columns (Column B, Column C, etc.) corresponding to each variable(2).

Check Variable Syntax

Dynamic variables use the {{variable_name}} syntax(1). The spaces around the variable name will be trimmed when evaluating the variable(1).

Make sure you’re referencing them correctly in your prompts. For example:

  • "Hello {{customer_name}}, thanks for calling!"(1)

Set Default Values

You can configure agent-level default dynamic variables that serve as a fallback when specific variables aren’t included in the call request(1). This helps prevent issues when variables are missing.

Test Your Setup

Before running batch calls, test your dynamic variables using the web interface(1). You can also use the LLM Playground for interactive testing to validate that variables are being injected correctly(3).

Batch Call Implementation

When creating batch calls via API, ensure you’re passing variables in the correct structure within your call creation request(4).

If the issue persists after checking these points, I recommend:

  1. Verifying your Excel template matches the required format exactly(2)
  2. Testing with a single call first before batch calling
  3. Checking the call history to see what values were actually passed(5)(4)

Would you like help troubleshooting a specific part of your setup?

Hello @RD062096,

Could you please share the call ID and explain what occurred, as well as what was expected? This will help us better understand and address the situation. Thank you!