martram3246
08/06/2025, 4:34 PMAI Evy
08/06/2025, 4:34 PMAI Evy
08/06/2025, 4:34 PMText, Number, Enum, or Boolean
- Enum Options - Options to choose from (only when type is enum)
## Variable Types Available
You can create variables of these types :
- 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. Save the Extract Dynamic Variable Tool - Click the save button .
4. Update prompt for function - Include in the prompt explicitly when to invoke the extract variable function . For example:
When user states his name and phone number, please extract the information by calling the `extract_user_details` function.
## Using Extracted Variables
Once extracted, you can use these variables throughout your agent using the {{variable_name}} syntax in prompts, begin messages, tool descriptions, and other areas [(2) ]() .
For unconditional variable setting, you can directly assign values like true to variables without checking conversation context [(3) ]() .AI Evy
08/06/2025, 4:34 PMAI Evy
08/06/2025, 4:34 PM