https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is there anywhere that you can see where the dynam...
# ❓・ai-evy-support
t
@AI Evy Is there anywhere that you can see where the dynamic variables being passed are in Retell
a
Thanks for tagging me @tomcoppola. I'll look through relevant sources and get back to you shortly.
### Answer You can test dynamic variables using the web interface in the dashboard before deploying to production [(1) ]() . The documentation mentions testing dynamic variables through this web interface as part of the implementation process . For outbound calls, dynamic variables are passed in the
retell_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) ]() :
Copy code
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) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[3] Get Chat](https://docs.retellai.com/api-references/get-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
If I pass a dynamic variable to Retell via API for it to make an outbound call, can it then put that same variable in a tool function so when it calls the tool it passes the variable as a parameter with the tool call?
a
Thanks for the follow-up, @tomcoppola. I'll get back to you soon.
### Answer Yes, dynamic variables can be used in tool function descriptions to pass parameters during tool calls [(1) ]() . Dynamic variables are injected into both your Response Engine prompt and tool descriptions [(1) ]() [(2) ]() [(3) ]() . When you pass dynamic variables via the
retell_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:
Copy code
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 .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
What is the "Response Engine Prompt?" Is that the global prompt for the agent?
a
Thanks for the follow-up, @tomcoppola. I'll get back to you soon.
### Answer Based on the available sources, the term "Response Engine Prompt" appears to refer to different prompts depending on the type of response engine you're using [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() . For Retell LLM Response Engine (single/multi prompt agents) , the equivalent would be the
general_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) ](
ocs.retellai.com/api-references/get-conversation-flow) [(5) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.