https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it possible to let the AI that i sent a message...
# ❓・ai-evy-support
a
@AI Evy is it possible to let the AI that i sent a message manually so the ai can have it in consideration?
a
Thanks for tagging me @Alonso Breña. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can inject information into the AI's context using dynamic variables. These allow you to pass data to the agent at the start of a call so the AI has it in consideration during the conversation. [(1) ]() You can use the
{{variable_name}}
syntax in your prompts, begin message, or tool configurations. 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 use an inbound webhook to return dynamic variables. The structure should nest variables under `call_inbound`: [(2) ]()
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
      "first_name": "Pranam",
      "last_name": "Lipinski",
      "email": "pranam@eocworks.com"
    }
  }
}
You can also set default values for dynamic variables at the agent level, which serve as a fallback when specific variables aren't included in the call request. [(1) ]() If you want to test how your agent handles these variables before going live, you can use the LLM Playground to test dynamic variables and verify they're properly interpolated. [(3) ]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Inbound webhook returns retell_llm_dynamic_variables but agent doesn't receive them](https://community.retellai.com/t/inbound-webhook-returns-retell-llm-dynamic-variables-but-agent-doesnt-receive-them/733) [[3] Manually test your agent](https://docs.retellai.com/test/llm-playground) ​