VI
01/03/2026, 12:59 PMAI Evy
01/03/2026, 12:59 PMAI Evy
01/03/2026, 1:00 PMAI Evy
01/03/2026, 1:00 PM12345 set at the agent level. Default variables serve as a fallback and will only be used when specific variables aren't included in the call request. [(1) ]()
2. **Testing Variables**: If you're testing in the dashboard, ensure you've removed or updated any testing variables that might be overriding your passed value. [(2) ]()
3. **Value Type**: All values in retell_llm_dynamic_variables must be strings. Numbers, booleans, or other data types are not supported. [(1) ]() Make sure you're passing "2" as a string, not 2 as an integer.
4. **Verify the Passed Value**: You can retrieve your chat session details to confirm what dynamic variables were actually received:
javascript
const chatResponse = await client.chat.retrieve('your_chat_id') ;
console.log(chatResponse.retell_llm_dynamic_variables) ;
[(3) ]()
5. **Tool Description Check**: If the 12345 appears in your tool/function description as a placeholder or example, the LLM might be picking that up instead of the actual variable value.
Could you share how you're passing the dynamic variable when creating the chat session, and confirm whether 12345 appears anywhere in your tool configurations or prompts?AI Evy
01/03/2026, 1:00 PMVI
01/03/2026, 5:50 PMVI
01/03/2026, 5:53 PMAI Evy
01/03/2026, 5:53 PMAI Evy
01/03/2026, 5:53 PMretell_llm_dynamic_variables field: [(1) ]()
javascript
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
A few things to verify:
1. **Check the field name spelling**: A common issue is typos in the field name. One user discovered their variables weren't reaching Retell because of a typo (retell_lm_dynamic_variables instead of retell_llm_dynamic_variables) . [(2) ]()
2. **Confirm values are strings**: All values must be strings—so pass "2" not 2. [(3) ]()
3. **Verify what Retell received**: You can list your chats to see what dynamic variables were actually stored:
javascript
const chatResponses = await client.chat.list() ;
console.log(chatResponses) ;
[(4) ]()
The response will include retell_llm_dynamic_variables showing exactly what was received.
If the API response shows your correct value ("2") but the function still receives 12345, the issue is likely in your tool configuration or agent-level defaults rather than the API call itself.AI Evy
01/03/2026, 5:53 PMAI Evy
01/03/2026, 5:53 PM