aitoolworx
09/14/2025, 4:42 PMAI Evy
09/14/2025, 4:42 PMAI Evy
09/14/2025, 4:42 PMjavascript
{
"nodes": [
{
"id": "start",
"type": "conversation",
"instruction": {
"type": "prompt",
"text": "Greet the customer and ask how you can help them."
},
"edges": [
{
"id": "edge_1",
"transition_condition": {
"type": "prompt",
"prompt": "Customer wants to book appointment"
},
"destination_node_id": "book_appointment"
}
]
}
]
}
The transition condition uses a prompt-based approach where you can define the logic for checking if the numerical value exists in your list . You would structure your prompt within the transition condition to evaluate whether the provided numerical string matches any value in your predefined list of 50 numerical values .
Retell AI's conversation flow system allows you to create multiple edges from a single node, so you can set up different paths based on whether the numerical value is found in your list or not .AI Evy
09/14/2025, 4:42 PMAI Evy
09/14/2025, 4:42 PMaitoolworx
09/14/2025, 4:44 PMAI Evy
09/14/2025, 4:44 PMAI Evy
09/14/2025, 4:44 PMAI Evy
09/14/2025, 4:44 PMAI Evy
09/14/2025, 4:44 PMaitoolworx
09/14/2025, 5:10 PMAI Evy
09/14/2025, 5:10 PMAI Evy
09/14/2025, 5:10 PM- "New York, Los Angeles" CONTAINS {{user_location}}
- "New York, Los Angeles" NOT CONTAINS {{user_location}}
For your scenario, you would structure it as :
- "value1, value2, value3, ..., value50" CONTAINS {{your_variable_name}}
The exists operator is different - it checks whether a dynamic variable is defined and has a value :
- {{variable_name}} exists
- {{variable_name}} does not exists
So for checking if a numerical value is within your list of 50 values, CONTAINS is the correct operator to use .AI Evy
09/14/2025, 5:10 PMAI Evy
09/14/2025, 5:10 PMaitoolworx
09/14/2025, 5:13 PMAI Evy
09/14/2025, 5:13 PMAI Evy
09/14/2025, 5:13 PM{{your_variable_name}} [(2) ]()
Operator: Select "CONTAINS"
Right side (list) : Enter your list of 50 numbers as a comma-separated string: "number1, number2, number3, ..., number50"
The Logic Split Node is designed to branch out the conversation flow based on conditions, and when entering this node, the agent will immediately evaluate the conditions and branch out to the corresponding destination nodes [(1) ]() .
Make sure your dynamic variable is properly set up and populated before the Logic Split Node executes [(2) ]() . As noted in community discussions, there can be timing issues where the Logic Split Node runs before variables are fully loaded into memory [(3) ]() , so you may need to ensure the variable is available when the condition is evaluated.AI Evy
09/14/2025, 5:13 PMAI Evy
09/14/2025, 5:13 PMAI Evy
09/14/2025, 5:14 PMaitoolworx
09/14/2025, 5:14 PMAI Evy
09/14/2025, 5:14 PM"number1, number2, number3, ..., number50"
- Operator: CONTAINS
- Right side (variable) : {{your_variable_name}}
The documentation shows this example :
"New York, Los Angeles" CONTAINS {{user_location}}
This reads as "the list contains the variable value," not "the variable contains the list." So for your use case, you want to check if your list of 50 numbers contains the single number stored in your variable.
Thank you for catching that - the setup I described would indeed be checking if your single variable contains the entire list of 50 numbers, which is the opposite of what you need.AI Evy
09/14/2025, 5:14 PMAI Evy
09/14/2025, 5:14 PMaitoolworx
09/14/2025, 6:26 PMAI Evy
09/14/2025, 6:26 PMAI Evy
09/14/2025, 6:27 PM1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009, 4010, 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010
The documentation shows the format as a simple comma-separated list . The CONTAINS operator performs string comparisons and doesn't require numerical input formatting .
Complete condition setup:
- Left side: Your comma-separated list of 50 numbers
- Operator: CONTAINS
- Right side: {{your_variable_name}}
This will check if your list contains the value stored in your dynamic variable .AI Evy
09/14/2025, 6:27 PMAI Evy
09/14/2025, 6:27 PMaitoolworx
09/14/2025, 6:38 PMAI Evy
09/14/2025, 6:38 PMAI Evy
09/14/2025, 6:43 PM- {{user_location}} == "New York"
- {{user_location}} == "Los Angeles"
And for CONTAINS operations, it shows :
"New York, Los Angeles" CONTAINS {{user_location}}
So for your list of 50 numbers, you would enter them as a plain comma-separated list without JSON brackets, quotes around individual numbers, or any special formatting . Just the raw numbers separated by commas like I showed in the previous example .
The CONTAINS operator performs string comparisons and doesn't require JSON or numerical input formatting .AI Evy
09/14/2025, 6:43 PMAI Evy
09/14/2025, 6:43 PMaitoolworx
09/14/2025, 8:29 PMAI Evy
09/14/2025, 8:29 PMAI Evy
09/14/2025, 8:30 PMAI Evy
09/14/2025, 8:30 PM{{your_variable_name}} existsAI Evy
09/14/2025, 8:30 PMAI Evy
09/14/2025, 8:30 PMaitoolworx
09/15/2025, 1:43 PMAI Evy
09/15/2025, 1:43 PMAI Evy
09/15/2025, 1:43 PM"New York, Los Angeles" CONTAINS {{user_location}}
This example includes a space after the comma. So, using spaces for readability is fine, but it's not required for the condition to work. Both these are acceptable:
- 1001, 1002, 1003
- 1001,1002,1003
Just keep your formatting consistent throughout your list for clarity [(1) ]() .AI Evy
09/15/2025, 1:43 PMAI Evy
09/15/2025, 1:43 PMaitoolworx
09/15/2025, 1:44 PMAI Evy
09/15/2025, 1:44 PMAI Evy
09/15/2025, 1:44 PMAI Evy
09/15/2025, 1:44 PMAI Evy
09/15/2025, 1:44 PMAI Evy
09/15/2025, 1:47 PMaitoolworx
09/15/2025, 1:47 PMAI Evy
09/15/2025, 1:48 PMAI Evy
09/15/2025, 1:48 PMAI Evy
09/15/2025, 1:48 PMaitoolworx
09/15/2025, 2:19 PMAI Evy
09/15/2025, 2:19 PMAI Evy
09/15/2025, 2:19 PMAI Evy
09/15/2025, 2:19 PMAI Evy
09/15/2025, 2:19 PMAI Evy
09/15/2025, 2:19 PM