https://retellai.com/?utm_source=discord&utm_medium=seo logo
does Enum accept more than one option in the extra...
# ❓・ai-evy-support
n
@AI Evy does Enum accept more than one option in the extract variable node?
a
Thanks for tagging me @Nicolas. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
### Answer Yes, Enum variables accept multiple options in the extract variable node. [(1) ]() [(2) ]() When you create an Enum type variable, you define multiple predefined options that the value can be selected from. The documentation provides an example showing Enum values like "Yes", "No", "Maybe". However, the Enum type is designed to extract one value from the predefined list of options you provide, not multiple values simultaneously.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
how can i extract multiple values simultaneously?
@AI Evy how can i extract multiple values simultaneously?
a
Thanks for the follow-up, @Nicolas. I'll get back to you soon.
### Answer To extract multiple values simultaneously in Retell AI, you can create multiple variables within a single Extract Dynamic Variable node [(1) ]() . Each variable you add can have its own name, description, and type (Text, Number, Enum, or Boolean) . For example, you could extract a customer's name, order number, and satisfaction level all in one node by adding three separate variables with their respective configurations . If you need to extract values from an API response or code execution, you can use the Code Node's Store Fields as Variables feature [(2) ]() . This allows you to specify multiple variable names and their corresponding JSON paths to extract different values from your code's return object . For instance, if your code returns
{ "status": "shipped", "estimated_delivery": "March 25" }
, you can extract both values by setting up two variables with their JSON paths : - Variable Name:
order_status
, JSON Path:
status
→ extracts
"shipped"
- Variable Name:
delivery_date
, JSON Path:
estimated_delivery
→ extracts
"March 25"
These extracted variables can then be referenced throughout your conversation using
{{variable_name}}
.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Code Node](https://docs.retellai.com/build/conversation-flow/code-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy the response of the user is a list of strings/enums. how do do it properly?
a
Thanks for the follow-up, @Nicolas. I'll get back to you soon.
### Answer Based on the available documentation, the Extract Dynamic Variable node supports these variable types: Text, Number, Enum, and Boolean [(1) ]() [(2) ]() . There isn't explicit documentation showing native support for extracting arrays or lists of values directly. For handling a user response that contains multiple strings or enum values, here are your options: Option 1: Extract as Text Use a Text type variable to capture the entire list as a single text string . You can then parse or process this text later in your flow using a Code Node [(3) ]() . Option 2: Use Multiple Variables Create separate variables for each expected value if you know how many items the user might provide [(1) ]() [(2) ]() . For example, if asking for preferences, create
preference_1
,
preference_2
,
preference_3
. Option 3: Process with Code Node If you need to handle the list programmatically: 1. First extract the response as a Text variable 2. Use a Code Node to parse the text into an array [(3) ]() 3. Store the processed result using the Code Node's Response Variables feature, which lets you extract values using JSON path notation The Code Node's Response Variables feature allows you to specify variable names and JSON paths to extract multiple values from your code's return object . I don't have documentation showing a direct "list" or "array" type for the Extract Dynamic Variable node. If you need this specific functionality, you might want to reach out through the [official documenta
tion]() or [hire a certified Retell partner]() for implementation guidance.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[3] Code Node](https://docs.retellai.com/build/conversation-flow/code-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.