https://retellai.com/?utm_source=discord&utm_medium=seo logo
Does Retell support dynamic prompts
# ❓・ai-evy-support
w
@AI Evy Does Retell support dynamic prompts?
a
Thanks for tagging me @weronika. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Yes, Retell supports dynamic prompts through Dynamic Variables. [(1) ]() Dynamic variables allow you to inject personalized data into your agent's prompts and responses for each specific call using the
{{variable_name}}
syntax. Where you can use dynamic variables: - Prompts (agent instructions and personality) - Begin message (opening greeting) - Tool configurations (custom function URLs, tool descriptions, property descriptions) - Call handling (voicemail prompts, transfer call phone numbers, warm transfer instructions) - Webhook URLs Example usage in a prompt:
Copy code
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
For outbound calls, set your variables in the
retell_llm_dynamic_variables
field when using the Create Phone Call API:
Copy code
json
{
  "user_name": "John Smith",
  "product_name": "Premium Plan",
  "account_status": "active"
}
For inbound calls, you can supply dynamic variables via the Inbound Call Webhook. You can also set default values for dynamic variables at the agent level, which serve as fallbacks when specific variables aren't provided in the call request.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​