https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it possible to post outbound calls through API ...
# ❓・ai-evy-support
f
@AI Evy is it possible to post outbound calls through API is dynamic prompt? Or it must always be one of the created agents in the dashboard through agent id?
a
Thanks for tagging me @fleck082814. I'll look through relevant sources and get back to you shortly.
### Answer When making outbound calls through the API, you must always use an existing agent created in your dashboard through the agent ID [(1) ]() . The API requires you to specify an
agent_id
parameter that references one of your pre-configured agents . However, you can make the agent's behavior dynamic by using dynamic variables in the
retell_llm_dynamic_variables
field [(2) ]() [(1) ]() . This allows you to customize the agent's responses for each specific call without creating multiple agents [(2) ]() . Here's how you can use dynamic variables for outbound calls :
Copy code
javascript
{
 "user_name": "John Smith",
 "product_name": "Premium Plan",
 "account_status": "active"
}
These dynamic variables can be referenced in your agent's prompt using double curly braces, like
{{user_name}}
or
{{product_name}}
. This gives you the flexibility to use the same agent with different contextual information for each outbound call [(3) ]() .
​ To learn more, see the sources I considered: [[1] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Discord message from @dcphealth_99900 on 2025-08-27](https://discord.com/channels/1186424376300679209/1294891368505937952/1410406226956914829) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.