realee_23147
09/07/2025, 11:51 PMAI Evy
09/07/2025, 11:51 PMAI Evy
09/07/2025, 11:51 PMcollected_dynamic_variables field that contains dynamic variables gathered during the conversation .
Here's what you'll see in the call response:
json
{
"collected_dynamic_variables": {
"last_node_name": "Test node"
},
"call_analysis": {
"call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
"in_voicemail": false,
"user_sentiment": "Positive",
"call_successful": true,
"custom_analysis_data": {}
}
}
You can access this data through three methods [(2) ]() :
1. Dashboard - Visual interface for quick access and review
2. Webhook - Real-time notifications with analysis results
3. Get Call API - Programmatic access to call analysis data
The collected_dynamic_variables field is available after the call ends and contains the dynamic variables that were gathered during the conversation [(1) ]() .AI Evy
09/07/2025, 11:51 PMAI Evy
09/07/2025, 11:51 PMrealee_23147
09/07/2025, 11:52 PMAI Evy
09/07/2025, 11:52 PMAI Evy
09/07/2025, 11:52 PMText, Number, Enum, or Boolean
- Enum Options - Options to choose from (only when type is enum)
The available variable types are :
- Text - Any word or sentence. Examples: "headache", "John Smith"
- Number - A numeric value. Examples: 42, 98.6
- Enum - A value from a predefined list. Examples: "Yes", "No", "Maybe"
- Boolean - True or false
3. Update your prompt to explicitly instruct when to invoke the extract variable function :
When user states his name and phone number, please extract the information by calling the `extract_user_details` function.
2. In Conversation Flow
If you're using Conversation Flow, you can use variables with the {{var_name}} syntax, and use Extract Variables nodes to capture state from conversations [(2) ]() .
Setting Variables in Prompts
You can also reference dynamic variables in your agent prompts using the {{variable_name}} syntax [(3) ]() . For example:AI Evy
09/07/2025, 11:52 PM"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
Dynamic variables can be used in prompts, begin messages, tool configurations, and call handling settings .AI Evy
09/07/2025, 11:52 PMAI Evy
09/07/2025, 11:52 PM