punk8357
09/10/2025, 1:23 AMAI Evy
09/10/2025, 1:23 AMAI Evy
09/10/2025, 1:23 AMAI Evy
09/10/2025, 1:23 AM{{variable_name}} syntax in your prompts [(2) ]() . You can verify that variables are properly interpolated and test different variable values and scenarios directly in the testing interface [(1) ]() .
For testing, you can use dynamic variables in your prompts like:
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
[(2) ]()
The playground provides immediate feedback on how your agent handles dynamic variables, making it easy to iterate and refine your implementation before deploying to production [(1) ]() .AI Evy
09/10/2025, 1:24 AMpunk8357
09/10/2025, 1:24 AMpunk8357
09/10/2025, 1:24 AMAI Evy
09/10/2025, 1:24 AMAI Evy
09/10/2025, 1:25 AMAI Evy
09/10/2025, 1:25 AM"Hello {{user_name}}, how can I help you today?"
- If user_name is not provided: "Hello {{user_name}}, how can I help you today?"
- If user_name is "John": "Hello John, how can I help you today?"
To check if a variable is unset in prompts, you can add conditional logic :
If {{user_name}} appears with curly braces, use a generic greeting.
Otherwise, greet the customer by name.
For conversation flow conditions, you can check if a variable is unset using [(2) ]() :
Condition: {{user_name}} contains {{
Result: True if variable is unset (still has curly braces)
The best practices include testing thoroughly with both set and unset variables [(1) ]() .AI Evy
09/10/2025, 1:25 AMAI Evy
09/10/2025, 1:27 AMpunk8357
09/10/2025, 1:27 AMAI Evy
09/10/2025, 1:27 AMAI Evy
09/10/2025, 1:27 AM{{user_name}} .
Example response body that could set dynamic variables :
json
{
"properties": {
"user": {
"name": "John Doe",
"age": 26
}
}
}
This allows your custom functions to both consume existing dynamic variables (like {{customer_id}} in a URL) and create new ones based on API responses, making your agent conversations more personalized and context-aware.AI Evy
09/10/2025, 1:27 AM