https://retellai.com/?utm_source=discord&utm_medium=seo logo
In Dynamic Variable, Name is correctly picked whil...
# ❓・ai-evy-support
s
@AI Evy In Dynamic Variable, Name is correctly picked while the same name is written wrong in the Call Summary, for example Name Jale is mentioned as James in Call Summary, I guess this LLM issue but I need it to be correct.
a
Thanks for tagging me @syed_58024. I'll look through relevant sources and get back to you shortly.
### Answer The issue you're describing appears to be related to how the LLM processes dynamic variables versus generating call summaries. Based on the documentation, dynamic variables are injected directly into prompts and tool descriptions [(1) ]() , while call summaries are generated through post-call analysis [(2) ]() [(3) ]() [(4) ]() . Dynamic variables use the exact syntax
{{variable_name}}
[(1) ]() and are passed as strings in the
retell_llm_dynamic_variables
field [(1) ]() [(2) ]() . For example:
Copy code
json
{
 "customer_name": "John Doe"
}
The call summary, however, is generated by the LLM during post-call analysis and appears in the
call_analysis
object with fields like
call_summary
[(2) ]() [(3) ]() [(4) ]() . This analysis is created after the call ends and may interpret or paraphrase information rather than using the exact dynamic variable values . To improve accuracy, you could: 1. Include specific instructions in your agent prompt to reference dynamic variables exactly as provided [(1) ]() 2. Use the dynamic variable syntax in prompts where you want exact name preservation:
"Always refer to the customer as {{customer_name}}"
The documentation doesn't provide specific guidance for ensuring dynamic variable values are preserved exactly in call summaries, as the summary generation is part of the LLM's analytical process rather than direct variable injection [(2) ]() [(3) ]() [(4) ]() .
​ 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] List Calls](https://docs.retellai.com/api-references/list-calls) [[4] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.