tomcoppola
10/02/2025, 9:08 PMAI Evy
10/02/2025, 9:08 PMAI Evy
10/02/2025, 9:08 PMretell_llm_dynamic_variables field when using the Create Phone Call API . For inbound calls, you can supply dynamic variables through the Inbound Call Webhook .
In the API responses, you can see the dynamic variables in the retell_llm_dynamic_variables field, as shown in the Create Outbound SMS API response example [(2) ]() :
json
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
The Get Chat API also returns the retell_llm_dynamic_variables object in its response, allowing you to see what dynamic variables were passed for that specific chat session [(3) ]() .AI Evy
10/02/2025, 9:08 PMAI Evy
10/02/2025, 9:08 PMtomcoppola
10/02/2025, 9:10 PMAI Evy
10/02/2025, 9:11 PMAI Evy
10/02/2025, 9:11 PMretell_llm_dynamic_variables field in API calls, these variables become available for use in tool function descriptions . This allows the LLM to access the dynamic variable values when making tool calls.
For example, if you pass a dynamic variable like:
json
{
"customer_name": "John Doe"
}
[(2) ]() [(3) ]()
You can reference {{customer_name}} in your tool function descriptions [(1) ]() . When the LLM decides to call that tool, it will have access to the actual value ("John Doe") and can include it as a parameter in the tool call.
The dynamic variables are injected into tool descriptions at runtime, so the LLM can use these values when constructing function call arguments .AI Evy
10/02/2025, 9:11 PMAI Evy
10/02/2025, 9:11 PMtomcoppola
10/02/2025, 9:12 PMAI Evy
10/02/2025, 9:12 PMAI Evy
10/02/2025, 9:12 PMgeneral_prompt [(1) ]() [(5) ]() . This is described as "General prompt appended to system prompt no matter what state the agent is in" [(5) ]() . The system prompt structure works as follows :
- System prompt (with state) = general prompt + state prompt
- System prompt (no state) = general prompt
For Conversation Flow Response Engine (conversation flow agents) , there's a global_prompt field [(2) ]() [(3) ]() [(4) ]() . This is described as "You are a helpful customer service agent" in the examples .
So yes, both the general_prompt for Retell LLM and global_prompt for Conversation Flow serve as the foundational prompt that applies globally to the agent's behavior [(1) ]() [(2) ]() [(3) ]() [(4) ](AI Evy
10/02/2025, 9:13 PMAI Evy
10/02/2025, 9:13 PM