https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I configure a custom tool in a conversation...
# ❓・ai-evy-support
j
@AI Evy How do I configure a custom tool in a conversation flow to send a POST request to my n8n webhook with a specific body structure? My webhook expects: { "action": "function_name", "parameters": { "param1": "value1", "param2": "value2" } } But I see the tool parameters are sent directly. Can I customize the request body format, or do I need to adapt my webhook to match Retell's format?
a
Thanks for tagging me @jrok1308. I'll look through relevant sources and get back to you shortly.
### Answer You cannot customize the POST request body structure from a Retell AI custom tool beyond the default format. When a custom function is called, Retell sends a request to your endpoint with the following JSON structure for POST, PUT, and PATCH methods:
Copy code
json
{
  "name": "function_name",
  "call": { ... },
  "args": {
    "param1": "value1",
    "param2": "value2"
  }
}
The body will always contain the function name as "name" and the parameters as "args"—not under a "parameters" object or with an "action" key [(1) ]() [(2) ]() . To use this with n8n, you will need to adapt your webhook to accept and transform Retell's payload into the format your workflow expects.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy In a function node, after calling a custom tool, how do I access the response data in subsequent nodes? If my webhook returns: { "available": true, "alternatives": ["10:30", "14:00"] } How do I reference these values in edge conditions and other nodes? Is it {{tool_name.available}} or {{function_response.available}}?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer You can access the response data from a custom function in subsequent nodes using the variable corresponding to the function/tool name. If your function is named check_availability and your webhook returns:
Copy code
json
{
  "available": true,
  "alternatives": ["10:30", "14:00"]
}
You would reference these in edge conditions or node prompts as: - {{check_availability.available}} - {{check_availability.alternatives}} Replace check_availability with the actual name of your function node. This makes the returned fields directly accessible as dynamic variables using the pattern {{function_name.field_name}} in your flow [(1) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy What's the best practice for routing after a function call based on the response? Scenario: I have a check_availability function that returns {"available": true} or {"available": false}. I want to route to different nodes based on this. Should I: A) Add edges directly on the function node with equation conditions like {{check_availability.available}} == "true"? B) Use a branch node immediately after with equation conditions? C) Use a conversation node with prompt-based edge conditions? Also, for equation conditions - do boolean values from function responses need to be compared as strings ("true"/"false") or actual booleans (true/false)?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer The best practice is to add edges directly on the function node using equation conditions referencing your function’s response fields. For your scenario, after the check_availability function node, add edges with equation conditions like: - {{check_availability.available}} == true - {{check_availability.available}} == false Equation conditions can compare boolean values directly as booleans, not as strings. So use true/false (not "true"/"false") in your equation conditions. This approach provides deterministic, reliable routing immediately after the function executes, and is the recommended method for branching logic based on function responses in Conversation Flow [(1) ]() [(2) ]() [(3) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[3] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy What is the exact REST API endpoint path to create an agent? I'm getting a 404 error when calling: POST https://api.retellai.com/create-agent With this payload: { "agent_name": "Test Agent", "voice_id": "11labs-grace", "response_engine": { "type": "conversation-flow", "conversation_flow_id": "conversation_flow_eee1cc9e0278" } } Is the endpoint path correct? Should it be /create-agent, /v2/agent, /agent, or something else? Please provide the exact full URL I should POST to.
a
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Retell Node API Library](https://github.com/RetellAI/retell-typescript-sdk/blob/main/README.md) ​
### Answer The exact REST API endpoint to create an agent is:
Copy code
POST <https://api.retellai.com/create-agent>
This matches the documented usage and examples. Your payload structure is also correct for creating an agent, as long as the values (like voice_id and conversation_flow_id) are valid and exist in your Retell account [(1) ]() [(2) ]() . If you are getting a 404 error, double-check that: - The endpoint is exactly /create-agent (not /agent, /v2/agent, etc.) - The voice_id and other referenced IDs are valid and exist - Your API key is correct You can find more details in the official documentation: [Create Agent]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
## Context Building a 16-node conversational flow for appointment scheduling with: - Multiple conversation nodes - Function calls embedded in conversation flow - Conditional routing based on function results - Dynamic variable extraction --- ## CRITICAL QUESTIONS: ### 1. Edge Condition Format for Function Results What we're trying to do: Route to different nodes based on function call results (e.g., if
check_availability.available == true
go to Node 7, else go to Node 8) What we've tried:
Copy code
javascript
{
  id: 'available',
  transition_condition: {
    type: 'equations',
    equations: ['{{check_availability.available}} == true']
  }
}
Error we get:
request/body/nodes/5/edges/0/transition_condition must have required property 'operator'
Question: - What is the correct format for equation-based edge transitions? - What should the
operator
field contain? - Can you provide an example of routing based on a boolean function result? @AI Evy
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer For equation-based edge transitions in Retell AI Conversation Flow, the documented format requires each equation to specify the operands and the operator as structured fields, not as a combined string. The error you received is because the API expects an object with explicit keys for left, operator, and right. Correct Format Example (routing based on a boolean function result) :
Copy code
javascript
{
  id: "available",
  transition_condition: {
    type: "equations",
    equations: [
      {
        left: "{{check_availability.available}}",
        operator: "==",
        right: true
      }
    ]
  }
}
- The operator field should contain a string such as "==", "!=", ">", "<", "CONTAINS", etc. - For boolean comparisons, use true or false (not strings) . This structure aligns with the documented approach for equation-based transitions in Conversation Flow and allows you to branch based on the boolean result of your function node [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy How to Call Functions FROM Conversation Nodes What we're trying to do: Have specific conversation nodes that call specific functions (e.g., Node 6 should call
check_availability
, Node 12 should call
verify_patient_identity
) Current approach: Put function call instruction in the node's text:
Copy code
javascript
{
  type: 'conversation',
  instruction: {
    type: 'prompt',
    text: 'Now call check_availability function with: appointment_date, appointment_time...'
  }
}
Questions: - Is this the correct way to trigger function calls from conversation nodes? - Does the LLM automatically call the function when instructed, or do we need special syntax? - Is there a better way to ensure a specific function is called at a specific node?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Calling functions directly from conversation nodes is not supported. In Retell AI's Conversation Flow, conversation nodes are designed for dialogue only and do not trigger function calls. To call a function at a specific point in your flow, you must use a Function Node, not a Conversation Node [(1) ]() [(2) ]() [(3) ]() . - Conversation nodes: Used for multi-turn conversation and do not perform actions or call functions. - Function nodes: Explicitly designed to invoke pre-built or custom functions when entered. This is the only supported method for ensuring a function is called at a specific node in the flow. Your current approach—writing an instruction in the conversation node's prompt to “call check_availability function”—will not trigger an actual function call. The LLM does not automatically call the function from the conversation node, regardless of the prompt text [(3) ]() . Best practice: Add a Function Node at the desired point in your flow (e.g., Node 6 for check_availability, Node 12 for verify_patient_identity) . Connect conversation nodes to these function nodes as needed. This ensures the function call happens deterministically at the intended step [(1) ]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[3] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) ​
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy Multi-Node Conversational Flow Structure What we're trying to achieve: A 16-node flow where: - Node 1: Greeting - Node 2: Get caller type - Node 3: Get patient name - Node 4: Get visit reason - Node 5: Get date/time - Node 6: Call check_availability → route to Node 7 or 8 based on result - Node 7: Confirm time (if available) - Node 8: Offer alternatives (if not available) - ... (continues through 16 nodes) Questions: - Is this level of node granularity supported in Retell conversational flows? - Should we combine multiple conversation steps into fewer nodes? - What's the recommended number of nodes for a complex flow like appointment scheduling? - Can you share an example of a multi-node flow with function calls and conditional routing?
a
### Answer Yes, a 16-node conversational flow with this level of granularity is supported in Retell AI Conversation Flow. The platform is designed to handle complex scenarios with multiple nodes, including conversation nodes for dialogue, function nodes for API calls, and conditional routing using edges and transition logic [(1) ]() [(2) ]() . You can structure your flow with each discrete step as its own node (e.g., greeting, get caller type, get patient name, etc.) , and use function nodes at points where you want to call external APIs (like check_availability) . After a function node, you can route to different nodes based on the result using edge conditions [(1) ]() [(3) ]() [(2) ]() . There's no strict recommended maximum or minimum number of nodes; the documentation notes that breaking complex logic into individual nodes improves maintainability and predictability, especially for flows like appointment scheduling [(1) ]() [(2) ]() . You may combine steps if they are simple and logically belong together, but separating them is preferred for clarity and debugging. A typical multi-node flow with function calls and conditional routing would look like: - Conversation nodes for each information-gathering step (greeting, get patient name, etc.) - A function node (e.g., check_availability) for API calls - Edges from the function node with equation-based
​ To learn more, see the sources I considered: [[1] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[2] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[3] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
transition conditions, such as: - If {{check_availability.available}} == true → Node 7 (confirm time) - If {{check_availability.available}} == false → Node 8 (offer alternatives) [(1) ]() [(3) ]() This approach aligns with documented best practices for complex flows in Retell AI [(1) ]() [(3) ]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy Dynamic Variable Extraction Across Nodes What we need: Variables like
appointment_date
,
patient_name
,
date_of_birth
to persist across all nodes in the flow Current approach: - Define variables at flow level - Extract them in conversation node instructions - Reference them in later nodes Questions: - How do we ensure variables extracted in Node 3 are available in Node 10? - Is there special syntax needed to extract variables in a conversation node? - How do we update/override a variable if the user corrects information?
a
### Answer To ensure variables like appointment_date, patient_name, and date_of_birth persist across all nodes in your Retell AI Conversation Flow, you must use Extract Dynamic Variable Nodes—not Conversation Nodes—for variable extraction and updates. - Variables extracted in an Extract Dynamic Variable Node will be available to all subsequent nodes in the flow, so if you extract patient_name in Node 3, it will be accessible in Node 10 and beyond [(1) ]() [(2) ]() . - You cannot extract variables directly within Conversation Nodes; there is no supported syntax to do so in conversation node instructions [(1) ]() [(3) ]() [(2) ]() . - To update or override a variable (e.g., if the user corrects information) , add another Extract Dynamic Variable Node at the appropriate point in the flow. This node will overwrite the previous value for that variable [(1) ]() . Best practice: Place Extract Dynamic Variable Nodes immediately after the relevant conversation step to capture or update the variable as needed. Then, reference the variable in later nodes using the syntax {{variable_name}} [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Discord message from @q40478 on 2025-10-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1429479310925758515) [[3] Discord message from @renovia_70920 on 2025-10-30](https://discord.com/channels/1186424376300679209/1186462578310910112/1433525353967652947) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Equation vs Prompt Transition Conditions Questions: - When should we use
type: 'prompt'
vs
type: 'equations'
? - For prompt-based transitions, does the LLM evaluate the condition, or is it literal text matching? - For equation-based transitions, what operators are supported? (
==
,
!=
,
>
,
<
,
contains
, etc.?) - Can we combine multiple conditions? (AND/OR logic?)
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here are direct answers for transition conditions in Retell AI Conversation Flow: - Use type: 'equations' when you want to branch based on dynamic variables (like function results, extracted user data, or any variable you pass in) . Use type: 'prompt' when you want the LLM to evaluate whether the user's latest input matches an intent or pattern (e.g., “User said something about booking a meeting”) [(1) ]() . - For prompt-based transitions, the LLM evaluates the condition using its understanding of language and context—not literal string matching. Write these prompts as clear intent statements or descriptions of what the user might say , [(2) ]() . - For equation-based transitions, supported operators include: ==, !=, >, < (for numbers) , CONTAINS, NOT CONTAINS (for strings) , and existence checks like exists and not exists [(1) ]() , [(3) ]() . String comparisons do not require numeric input. Numerical operators require numeric input. - You can combine multiple equation conditions. By default, equations are evaluated top-to-bottom, and the agent takes the first true branch. You can also set the evaluation mode to “ANY” (default, any condition true) or “ALL” (all conditions must be true) [(1) ]() . For logical combinations like OR/AND, use multiple equations and adjust the evaluation mode accordingly.
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Transition condition in Conversation flow agent](https://discord.com/channels/1186424376300679209/1389012084276334724) [[3] Discord message from @mariag8602 on 2025-10-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1430614528017694881) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Node 6 calls
check_availability
function. We need to wait for the result before routing to the next node. Questions: - Do conversation nodes automatically wait for function results before evaluating edge conditions? - Is there a
wait_for_result
setting we need to configure? - How do we access function response fields in edge conditions? (e.g.,
{{check_availability.available}}
) ---
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Discord message from @jrok1308 on 2025-10-18](https://discord.com/channels/1186424376300679209/1186462578310910112/1429218557765484544) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
### Answer - Conversation nodes do not call functions, so they do not wait for function results—only Function Nodes actually execute functions and handle the result. - In Conversation Flow, after a Function Node runs, the platform automatically waits for the function to return its result before evaluating edge conditions and routing to the next node. There is no separate wait_for_result setting required for this; waiting for the function result is built-in behavior for Function Nodes [(1) ]() , [(2) ]() . - To access function response fields in edge conditions (such as in an equation transition) , use the variable pattern {{function_name.field_name}}. For your example, if the Function Node is named check_availability and the response is { "available": true }, you would reference {{check_availability.available}} in your transition conditions [(1) ]() , [(3) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Error Handling in Flows Scenarios we need to handle: - Function call fails (network error, timeout) - Function returns unexpected result - User wants to go back to previous step - User wants to start over Questions: - How do we handle function call failures in conversational flows? - Can we create error handling nodes? - How do we allow users to go backwards in the flow? - Is there a "restart flow" mechanism?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here's how error handling works in Retell AI Conversation Flow, based strictly on the available documentation: - Handling function call failures (network error, timeout) : The documentation does not provide explicit mechanisms for handling function call failures (like network errors or timeouts) within the flow logic itself. There is no mention of built-in error-handling nodes or a way to branch automatically on function call failure within the function node settings or edge conditions [(1) ]() . - Creating error handling nodes: You can create dedicated nodes in your flow (such as a conversation node for error messages) , but routing to them based on function call failures is not documented as a supported feature. Transition conditions are evaluated based on function results, not on error states [(2) ]() [(1) ]() . - Allowing users to go backwards in the flow: The documentation does not describe a built-in mechanism for users to navigate backwards to a previous node. All transitions are forward, based on transition conditions defined in the flow [(2) ]() . - "Restart flow" mechanism: There is no documented feature for restarting the flow from the beginning within the conversation flow framework [(2) ]() [(1) ]() . If you need to implement error handling, user back-navigation, or flow restart, these features are not documented as built-in capabilities. You could try to design your flow with global nodes or prompt-based transitions that listen
for user intent like "start over," but this is not explicitly documented as supported behavior.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
Best Practices for Complex Flows Questions: - What's the recommended approach for scheduling flows with multiple steps and function calls? - Should we use fewer nodes with more complex instructions, or many simple nodes? - How do you recommend handling "smart capture" of volunteered information (e.g., user says date/time before we ask)? - Any example flows we can reference for inspiration? --- @AI Evy
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here are best practices for building complex flows with multiple steps and function calls in Retell AI Conversation Flow: - Use many simple nodes, not fewer complex ones. Breaking down the flow into individual nodes for each step (e.g., greeting, collecting each piece of info, calling functions) gives you precise control, makes it easier to fine-tune and debug, and improves reliability. Each node should have a clear, focused purpose. If a node starts to handle multiple logic paths or gets too long, split it into smaller nodes [(1) ]() [(2) ]() . - For scheduling flows, use conversation nodes for collecting user input and function nodes for calling APIs or performing actions. After a function node, use edge transition conditions (like equations) to route based on the API response [(1) ]() [(2) ]() [(3) ]() . - For “smart capture” of volunteered information (user gives date/time before being asked) , structure your flow so that each relevant node extracts and stores the specific data point as soon as it appears. Separate nodes for data extraction (like dynamic variable nodes) help persist info across the flow. Place these nodes immediately after the conversation step where the info might be provided [(1) ]() [(2) ]() [(4) ]() . - There is no strict maximum on node count—flows with a high number of nodes are supported an
d encouraged for clarity and maintainability [(1) ]() [(2) ]() . - Example structure: Conversation nodes for each info-gathering step (greeting, get patient name, etc.) , function nodes for API calls (like check_availability) , and conditional routing using edges with equation-based conditions on function results [(1) ]() [(2) ]() [(3) ]() . References for inspiration and more details: - [Node Overview]() - [Retell AI’s Advanced Conversation Flow | Retell AI]() - [Create Conversation Flow]()
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[3] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy Testing Conversational Flows Questions: - How can we test flows without using production credits? - Is there a way to simulate function responses for testing? - Can we test individual nodes in isolation? - What's the best way to debug why an edge isn't transitioning? ---
a
### Answer The official documentation does not provide a built-in way to simulate function responses or test conversational flows without using production credits. There is also no documented feature for testing individual nodes in isolation or simulating function outputs within the Conversation Flow builder. The recommended approach for debugging edge transitions is to review the transition conditions and ensure they are correctly defined, as improper conditions are a common reason for nodes failing to transition [(1) ]() , [(2) ]() . To debug edge transitions, make sure your transition conditions (equations or prompts) are specific and accurately match the expected variables or user inputs. You can also observe the node highlighting in the dashboard during testing to see which node is currently active and how transitions occur [(1) ]() . Check out these potentially useful sources for more details: - [Step 3: Add transition conditions]() - [Node Overview]() - [Function Node Overview]() Would you like a general answer based on my knowledge instead?
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy Global Prompt vs Node Instructions Questions: - When should logic go in global_prompt vs node instructions? - Does the global_prompt apply to ALL nodes or just the start node? - How do node instructions override or extend the global prompt? - What's the order of precedence? (global → node → tool?)
a
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Discord message from @jayzpio on 2025-02-21](https://discord.com/channels/1186424376300679209/1186462578310910112/1342641434767130727) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer - Use the global_prompt for tone, identity, and general rules that should apply across the entire conversation flow. This acts as a default context for all nodes [(1) ]() [(2) ]() [(3) ]() [(4) ]() . - Node instructions are for specific actions or logic at each step. If you need custom behavior, instructions, or context that differs from the global prompt, define it in the node's instruction . - The global_prompt applies to all nodes unless a node has its own instruction. When both are present, the node instruction takes precedence and overrides the global prompt for that node [(4) ]() . - Order of precedence: Global Prompt (default) → Node Instruction (overrides global prompt for that node) . Tools are configured separately and invoked as part of node logic but do not override node instructions or the global prompt [(1) ]() [(2) ]() [(4) ]() .
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[3] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[4] Which takes precedence: The Global Prompt OR Nodes?](https://discord.com/channels/1186424376300679209/1400673644065325149) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "What is the correct format for the variables array in an Extract Dynamic Variable node? We're getting this error: request/body/nodes/1/variables/0 must be object Our current format is: { type: 'extract_dynamic_variables', variables: ['appointment_date', 'appointment_time'] } What should the variables array contain? Should each variable be an object with specific fields? Please provide an example of a complete Extract Dynamic Variable node."
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer The variables array in an Extract Dynamic Variable node must be an array of objects, not just an array of strings. Each variable object should include at least: - variable_name (string) - description (string) - variable_type (one of: "Text", "Number", "Enum", "Boolean") - (If "Enum") enum_options (array of strings) Example of a correct Extract Dynamic Variable node:
Copy code
json
{
  "type": "extract_dynamic_variables",
  "variables": [
    {
      "variable_name": "appointment_date",
      "description": "Date of the appointment",
      "variable_type": "Text"
    },
    {
      "variable_name": "appointment_time",
      "description": "Time of the appointment",
      "variable_type": "Text"
    }
  ]
}
[(1) ]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
message has been deleted
j
@AI Evy Query for Retell AI Support How do I programmatically set node positions (x, y coordinates) in a conversational flow via the API? Context: - I've successfully created 23 nodes using the SDK's conversationFlow.update() method - All nodes are clustered at position (0, 0) in the canvas - I want to programmatically arrange them in a logical flow layout Questions: 1. What property/field controls node position in the API? (e.g., position: {x: 100, y: 200}) 2. What are the coordinate units? (pixels, grid units, etc.) 3. Can you provide an example of updating a node with position data? 4. Is there a recommended spacing between nodes for readability? Example node structure I'm using: { id: 'conv_greeting', type: 'conversation', name: '1. Greeting', instruction: {...}, edges: [...] } What do I need to add to include positioning?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer To programmatically set node positions (x, y coordinates) in a Retell AI Conversation Flow via the API, use the begin_tag_display_position property for each component or node. This property controls the visual placement of nodes in the frontend editor. The coordinates are specified as an object with x and y values. Example of a node/component with position data:
Copy code
json
{
  "name": "Customer Information Collector",
  "nodes": [
    {
      "id": "collect_info",
      "type": "conversation",
      "instruction": {
        "type": "prompt",
        "text": "Ask the customer for their name and contact information."
      }
    }
  ],
  "start_node_id": "collect_info",
  "begin_tag_display_position": {
    "x": 100,
    "y": 200
  }
}
The coordinate units are not explicitly documented, but they are typically interpreted as pixel values in the frontend canvas [(1) ]() [(2) ]() . To update a node with position data, include the begin_tag_display_position field in your node or component definition when calling conversationFlow.update() or conversationFlow.create() . There is no documented recommendation for spacing between nodes, but setting distinct x, y values will help arrange nodes for readability on the canvas .
​ To learn more, see the sources I considered: [[1] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[2] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I need to position individual NODES within a single conversational flow via the API. Current situation: - I have 1 conversational flow with 23 nodes (all type: 'conversation', 'extract_dynamic_variables', 'function', 'end') - All nodes are clustered at position (0,0) in the canvas - I'm using conversationFlow.update() to update the flow I tried adding begin_tag_display_position to each node object like this: { id: 'conv_greeting', type: 'conversation', name: '1. Greeting', instruction: {...}, edges: [...], begin_tag_display_position: { x: 100, y: 100 } // ← This didn't work } Questions: 1. Is begin_tag_display_position the correct property for individual nodes, or is it only for components? 2. If not, what is the correct property to position individual nodes within a flow? 3. Can you provide an exact example showing how to position a single conversation node at coordinates (100, 200)? 4. Do I need to use a different API endpoint to update node positions? Please provide the exact JSON structure for positioning nodes within a conversational flow.
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) ​
### Answer Based on the documentation, begin_tag_display_position is shown as a property for components (sub-flows) and not for individual nodes themselves [(1) ]() [(2) ]() [(3) ]() . In the documented JSON structures, begin_tag_display_position appears at the component or flow level, not inside node objects. There is no example or explicit documentation showing begin_tag_display_position inside a single node to control its position on the canvas. To position a group of nodes (as a component/sub-flow) , you can use:
Copy code
json
{
  "name": "Customer Information Collector",
  "nodes": [
    {
      "id": "collect_info",
      "type": "conversation",
      "instruction": {
        "type": "prompt",
        "text": "Ask the customer for their name and contact information."
      }
    }
  ],
  "start_node_id": "collect_info",
  "begin_tag_display_position": {
    "x": 100,
    "y": 200
  }
}
[(1) ]() , [(2) ]() , [(3) ]() There is no documented property for positioning individual nodes directly within a flow. The begin_tag_display_position property is only shown for components or the top-level flow, not at the node level. There is also no alternative property or API endpoint documented for setting individual node positions. Summary: - begin_tag_display_position is not supported for individual nodes, only for components/groups. - No other property is documented for node-level positioning. - No API endpoint is documented for updating node positions individually.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Extract Dynamic Variable nodes are not auto-transitioning after extracting variables. Setup: - Node type: 'extract_dynamic_variables' - Has destination_node_id: 'conv_caller_type' - Does NOT have edges array Behavior: - The node successfully extracts variables (Tool Invocation shows success) - But flow stops and doesn't transition to the destination node Questions: 1. Is destination_node_id alone sufficient for Extract nodes to auto-transition? 2. Do Extract nodes need an edges array as well? 3. If yes, what transition_condition format is valid for Extract nodes? (type: 'always' returns error) 4. Or is there a different way to make Extract nodes auto-transition? Current node structure: { "id": "extract_greeting_info", "type": "extract_dynamic_variables", "name": "2. Extract Initial Info", "variables": [ {"name": "appointment_date", "description": "Date", "type": "string"} ], "destination_node_id": "conv_caller_type" } This node extracts variables but doesn't transition. What's the correct format?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Fine-tuning Examples missing destination_node_id in code](https://discord.com/channels/1186424376300679209/1391815224092262522) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[4] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[5] Discord message from @q40478 on 2025-10-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1429479310925758515) ​
Copy code
json
{
  "id": "extract_greeting_info",
  "type": "extract_dynamic_variables",
  "name": "2. Extract Initial Info",
  "variables": [
    {
      "variable_name": "appointment_date",
      "description": "Date",
      "variable_type": "Text"
    }
  ],
  "edges": [
    {
      "id": "edge_1",
      "transition_condition": {
        "type": "equation",
        "equation": "1 == 1"
      },
      "destination_node_id": "conv_caller_type"
    }
  ]
}
[(1) ]() , [(3) ]() , [(4) ]() , [(2) ]() Summary: - destination_node_id is not enough; use edges for transitions. - Provide an edges array with a transition_condition that always passes to auto-transition after extraction.
### Answer Based on the official documentation and community discussions: 1. destination_node_id alone is NOT sufficient for Extract Dynamic Variable nodes to auto-transition. The documentation does not specify destination_node_id as a standard property for node transitions; instead, transitions are handled by the edges array with transition conditions [(1) ]() [(2) ]() . 2. Extract nodes need an edges array to define how the flow should proceed after extraction. Transitions in Retell AI flows are managed via edges, not by a destination_node_id property [(1) ]() [(3) ]() [(4) ]() [(2) ]() . 3. For Extract Dynamic Variable nodes, use the edges array with a transition_condition. There is no official "always" type, but you can use a prompt-based or equation-based condition that always evaluates to true (e.g., prompt: "" or an equation like 1 == 1) [(3) ]() [(5) ]() . 4. To make Extract nodes auto-transition, add an edges array to the node. Example:
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy How do I programmatically update the visual position of individual nodes in a conversational flow? Context: - I have 23 nodes in a single conversational flow - All nodes were created via API using conversationFlow.update() - Nodes are correctly connected with edges, but visually clustered Previous attempt: - Tried adding begin_tag_display_position to individual node objects - This didn't work (nodes still clustered at origin) Questions: 1. Is there an API endpoint or property to update individual node positions on the canvas? 2. If begin_tag_display_position only works for components, is there an alternative for individual nodes within a flow? 3. Can node positions be bulk-updated via API, or must they be arranged manually in the UI? 4. If manual arrangement is required, is there an "auto-layout" feature to organize nodes automatically? Goal: Arrange 23 nodes in a logical flow layout without manually dragging each one.
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Based on the official documentation, there is no property or API endpoint documented for setting the visual position of individual nodes within a conversational flow. The begin_tag_display_position property is only shown for components (sub-flows) or the top-level flow, not for individual nodes themselves [(1) ]() [(2) ]() [(3) ]() . There are no examples or references to positioning nodes directly via the API. Summary: 1. There is no documented API property or endpoint to update individual node positions on the canvas. 2. begin_tag_display_position is only documented for components, not for nodes within a flow. 3. No bulk-update mechanism for node positions via API is documented; node arrangement appears to be manual in the UI. 4. There is no mention of an "auto-layout" feature for automatic arrangement of nodes. Nodes created or updated via API will appear clustered unless manually arranged in the UI. There is no documented programmatic method to arrange or update the visual position of individual nodes within a flow .
​ To learn more, see the sources I considered: [[1] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy How do I implement "smart capture" where the agent skips redundant questions if the user volunteers information early? Scenario: - User calls and says: "Hi, I need to schedule an appointment for tomorrow at 3pm" - My flow has separate nodes for asking date, then asking time - I want the agent to capture both immediately and skip to the next relevant node Questions: 1. Should I make Extract Dynamic Variable nodes "Global Nodes" with descriptions like "Jump here if user volunteers date/time"? 2. How do I ensure variables extracted from volunteered info persist throughout the entire flow? 3. Can conversation node transitions check if a variable is already populated before asking? (e.g., "If appointment_date is empty, ask for date. Otherwise skip to next node") 4. What's the best practice for handling partial volunteered information? (e.g., user says date but not time) 5. Should the global prompt instruct the agent to always listen for volunteered information? Example flow structure: Node 1: Greeting → Node 2: Extract Info (global?) → Node 3: Ask Date → Node 4: Ask Time How should this be architected for smart capture?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy Can conversation node transition conditions check if a dynamic variable is already populated? Use case: - I have a variable called "appointment_date" - Node 3 asks "What date would you like?" - But I want to skip this node if appointment_date was already captured earlier Questions: 1. Can I create a transition condition like: "If appointment_date is empty, proceed. Otherwise skip this node"? 2. What's the correct syntax for checking if a variable exists/is populated in an equation transition? 3. Is there a "skip node" transition type, or do I need to explicitly route to the next node? 4. Can prompt-based transitions detect if a variable is already set? Example: Node 3 (Ask Date) should auto-skip if appointment_date already has a value. How do I implement this?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here’s how to architect “smart capture” in Retell AI Conversation Flow, so the agent can skip redundant questions when users volunteer info up front: 1. Extract Dynamic Variable Nodes as Global Nodes: You can enable global nodes that automatically capture volunteered information, allowing the agent to jump to these nodes whenever the user provides relevant details (like date/time) at any point in the flow [(1) ]() , [(2) ]() . You can add example conversations to guide when to jump to a global node, such as when the user says, “I’d like to book tomorrow at 3pm” [(1) ]() . 2. Persistence of Extracted Variables: Variables extracted (using Extract Dynamic Variable nodes) are stored as dynamic variables and persist across the entire flow. These can be referenced in transition conditions or subsequent nodes [(2) ]() . 3. Conditional Transitions Based on Variable State: You can set up equation-based transition conditions in your nodes to check if a variable already exists. For example, before asking for a date, use:
Copy code
- {{appointment_date}} exists
​ To learn more, see the sources I considered: [[1] Major Platform Upgrades: Knowledge base, warm transfer, Voice & Analytics](https://www.retellai.com/changelog/major-platform-upgrades-knowledge-base-warm-transfer-voice-analytics) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[4] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[5] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
If the variable exists, transition directly to the next relevant node; otherwise, proceed to ask for the missing info [(3) ]() . 4. Handling Partial Volunteered Information: Structure your flow so each piece of information (date, time, etc.) is captured in its own Extract Dynamic Variable node. Use transition conditions to check which variables are still missing and only ask for those [(2) ]() . 5. Global Prompt for Listening to Volunteered Info: It is a best practice to include instructions in your global prompt for the agent to always listen for volunteered information and capture it as soon as possible [(4) ]() , [(5) ]() . Example Flow Structure: - Node 1: Greeting - Node 2: (Global) Extract Info Node (listens for date/time at any point) - Node 3: Ask Date (with transition: if date already exists, skip) - Node 4: Ask Time (with transition: if time already exists, skip) Summary: - Use global nodes for “jump here if user volunteers info” logic [(1) ]() . - Extracted variables persist and are available for all transitions [(2) ]() . - Use equation-type conditions to skip nodes if info is already captured [(3) ]() . - Place extract nodes immediately after likely user input points, and check for missing variables before asking questions. - Instruct the agent in the global prompt to capture volunteered info proactively [(5) ]() .
### Answer 1. Yes, you can create transition conditions to check if a dynamic variable like appointment_date is already populated and use that to control whether to proceed or skip a node. Equation transition conditions support variable existence checks and can branch your flow accordingly [(1) ]() . 2. The correct syntax for checking if a variable exists (is populated) in an equation transition is:
Copy code
{{appointment_date}} exists
To check if it is not populated:
Copy code
{{appointment_date}} does not exists
This will return true if the variable is defined (has a value) or not, respectively . 3. There is no special "skip node" transition type. You need to explicitly define transitions (edges) for each branch—route to the next appropriate node based on whether the variable exists or not. For example, one edge goes to the "Ask Date" node if appointment_date does not exist, and another skips to the next relevant node if it does . 4. Prompt-based transitions can also be used, but for checking variable existence specifically, equation conditions like above are recommended. Prompt conditions are useful if the check relies on information extracted by the LLM during the conversation, but for dynamic variable existence, equations are preferred . To auto-skip Node 3 (Ask Date) if appointment_date already has a value, set up equation transition conditions on the previous node or on Node 3 itself: - If {{appointment_date}} exists → transition to the node after "Ask Date" - If {{appointment_date}} does not exists → proceed to "Ask Date" Reference: [Step 3: Add transition conditions]()
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I need to implement skip logic in my conversational flow so that conversation nodes check if a variable already exists before asking the user for it. This is for "smart capture" functionality. Current Setup: - I have Extract Dynamic Variable nodes that can capture volunteered information - I marked them as Global Nodes so they can be triggered from anywhere - BUT the conversation nodes still ask questions even when variables are already populated What I Need: Each conversation node should have TWO transitions (in priority order): 1. Skip Transition (check first): If variable already exists → skip to next step 2. Ask Transition (fallback): If variable doesn't exist → ask the question Example - Node "Ask Date & Time": - Transition 1: IF
{{appointment_date}}
exists AND
{{appointment_time}}
exists → Skip to "Check Availability" node - Transition 2: ELSE → Go to "Extract Date & Time" node My Questions: 1. How do I add multiple transitions to a Conversation node? When I try to add a second transition, it seems to replace the first one. 2. What is the correct syntax for checking if a variable exists? I tried: - Type: Equation - Left:
{{appointment_date}}
- Operator:
exists
- Right: (empty) Is this correct? 3. For checking multiple variables (AND logic), do I: - Add multiple equations in a single transition? OR - Use a different operator? 4. I see a "Skip to nodes" toggle in the UI - is this different from transitions? When I enable it, it seems to remove the ability to add transitions. Which approach should I use for this skip logic? 5. Do transitions evaluate in the order they're listed? Should the "exists check" transition be listed FIRST before the "ask" transition? My Flow Structure: - Node 3 (Conversation): "Is this appointment for you or someone else?" - Should skip to Node 5 if
{{caller_type}}
exists - Otherwise go to Node 4 (Extract Caller Type) - Node 5 (Conversation): "What is the patient's full name?" - Should skip to Node 7 if
{{patient_name}}
exists - Otherwise go to Node 6 (Extract Patient Name) - Node 7 (Conversation): "What is this appointment for?" - Should skip to Node 9 if
{{visit_category}}
exists - Otherwise go to Node 8 (Extract Visit Reason) - Node 9 (Conversation): "What date and time would work best?" - Should skip to Node 11 if
{{appointment_date}}
exists AND
{{appointment_time}}
exists - Otherwise go to Node 10 (Extract Date & Time) - Node 16 (Conversation): "What is the patient's date of birth?" - Should skip to Node 18 if
{{date_of_birth}}
exists - Otherwise go to Node 17 (Extract DOB) Ideal Outcome: If a user says "I'd like to schedule a physical for tomorrow at 9am" in the greeting, the flow should: 1. Extract: appointment_date, appointment_time, visit_category via Global Extract node 2. Skip asking "What is this appointment for?" (already have visit_category) 3. Skip asking "What date and time?" (already have date and time) 4. Jump directly to the first question where we DON'T have the variable yet Please provide step-by-step instructions or screenshots showing how to configure this correctly.
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here’s how to implement skip logic (“smart capture”) in Retell AI Conversation Flow, based strictly on the documentation and community guidance: ### 1. How do I add multiple transitions to a Conversation node? You can add multiple transitions (“edges”) to a Conversation node by clicking the “+” button in the transition conditions editor. Each transition is evaluated in order, and the first one that evaluates to true is followed. If adding a second transition replaces the first, make sure you are clicking the “Add equation” (or “Add prompt”) button inside the transition editor—not overwriting an existing transition. Each transition appears as a separate row in the UI [(1) ]() . ### 2. What is the correct syntax for checking if a variable exists? For an equation condition to check if a variable exists, use:
Copy code
{{variable_name}} exists
So for appointment_date:
Copy code
{{appointment_date}} exists
This will evaluate to true if the variable is defined and has a value. To check if it’s not set:
Copy code
{{appointment_date}} does not exists
Leave the “Right” side empty; just use the “exists” operator as shown . ### 3. For checking multiple variables (AND logic) , do I add multiple equations in a single transition? Yes. To require that multiple variables exist (AND logic) , add multiple equations in a single transition and set the condition mode to “ALL” (instead of the default “ANY”) . This forces all conditions to be true before the transition fires. So for both appointment_date and appointment_time:
Copy code
- {{appointment_date}} exists
- {{appointment_time}} exists
Then set the mode to “ALL” . ### 4. Is “Skip to nodes” different from transitions? Yes. The “Skip to nodes” toggle is a separate feature that allows you to select a destination node to jump to after the agent finishes speaking the node’s content. When enabled, it removes the ability to add custom transition conditions. For complex skip logic (like smart capture) , use standard transitions with equation conditions. Only use “Skip to nodes” for simple, unconditional skips . ### 5. Do transitions evaluate in order? Should the “exists check” be listed first? Yes, transitions are evaluated from top to bottom, and the first one that evaluates to true is followed. Place your “skip” (exists check) transition at the top, followed by the fallback “ask” transition . --- #### Example: Node “Ask Date & Time” Transitions - Transition 1 (skip) : - Equations: -
{{appointment_date}} exists
-
{{appointment_time}} exists
- Mode: ALL - Destination: “Check Availability” node - Transition 2 (ask) : - No equation (or use
{{appointment_date}} does not exists
OR
{{appointment_time}} does not exists
, mode ANY) - Destination: “Extract Date & Time” node --- ### Step-by-Step Instructions 1. On your Conversation node, open the transitions editor. 2. Click “+” to add the first transition (skip logic) . - Add the equation(s) :
{{variable}} exists
- For multiple variables, add each as an equation and set condition mode to “ALL.” - Set the destination node to the appropriate “skip to” step. 3. Click “+” again to add the fallback transition. - Add equation(s) :
{{variable}} does not exists
(or leave blank for catch-all) - Set the destination node to the “ask” step. 4. Ensure the “skip” transition is listed first. 5. Do NOT enable “Skip to nodes” toggle if you want conditional transitions. --- ### Additional Notes - Transition
s will only work as intended if you cover all possible paths (e.g., both “exists” and “does not exists”) . - You can use prompt conditions if you want to check for user utterances, but for variable existence, equations are recommended . - Global nodes can be used for capturing volunteered info at any time; Conversation nodes should always check variable state before asking . --- Reference: - [Step 3: Add transition conditions]()
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy # Query for Retell AI Support - Date Parsing Issue ## Problem When testing my conversational flow, the agent is incorrectly calculating relative dates. Test scenario: - Current date: November 8, 2024 - User says: "next Wednesday at 10" - Expected: The agent should calculate the next Wednesday in November (November 13, 2024) - Actual: The agent checked availability for a date in May ## Current Setup I'm using these dynamic variables in my global prompt:
Copy code
{{current_date}}  // Should be YYYY-MM-DD format (e.g., 2024-11-08)
{{current_time}}  // Should be HH:MM format
{{current_day}}   // Should be day name (e.g., Friday)
In my global prompt, I have instructions like:
Copy code
**"Next week"** = 7 days from the same day
**"Next [weekday]"** = The next occurrence of that weekday

Example: Current = Friday, November 8, 2024
- "next Wednesday" = November 13, 2024
## Questions 1. Are the current_date/current_time/current_day variables automatically populated by Retell? - Or do I need to set them somewhere? - What format are they in? 2. How does the LLM calculate relative dates like "next Wednesday"? - Does it use the current_date variable? - Or does it use its own internal date knowledge? 3. Should I provide explicit date calculation instructions in the global prompt? - Or does Retell handle this automatically? 4. Is there a way to verify what values current_date, current_time, and current_day contain during a call? - For debugging purposes? 5. Could this be a timezone issue? - My office is in Hawaii (HST, UTC-10:00) - Could the LLM be using a different timezone? ## What I Need - Confirmation of how current date/time variables are populated - Best practice for ensuring accurate date parsing - How to debug date calculation issues - Whether I need to add any additional configuration ## Example Global Prompt Section Here's what I currently have:
Copy code
markdown
**Current Date:** {{current_date}} (YYYY-MM-DD format)
**Current Time:** {{current_time}} (HH:MM 24-hour format)
**Current Day:** {{current_day}} (e.g., Monday, Tuesday, etc.)
**Timezone:** Pacific/Honolulu (HST, UTC-10:00)

### Relative Date Parsing

**"Tomorrow"** = {{current_date}} + 1 day

**"Next [weekday]"** = The next occurrence of that weekday after today
- Example: If {{current_date}} = 2024-11-08 (Friday)
- "next Wednesday" = 2024-11-13
Is this the correct approach, or should I do something different? Thank you!
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
Summary / Best Practice - Use
{{current_time_Pacific/Honolulu}}
for Hawaii time. - Reference this variable in prompts and instruct the LLM to use it for all date calculations. - Provide explicit parsing rules in your prompt so the LLM doesn't fall back to its own logic. - For debugging, output the variable's value in the flow. - There are no system variables named
{{current_date}}
,
{{current_time}}
, or `{{current_day}}`; use the documented system variables as described above. References: : [Dynamic Variables]() [(2) ]() : [Platform Changelogs | Retell AI]() [(3) ]() : [Discord message from @webb_100 on 2025-10-20]()
### Answer ### 1. Are
current_date
,
current_time
,
current_day
variables automatically populated by Retell? No, Retell AI provides system default dynamic variables such as
{{current_time}}
(current time in America/Los_Angeles by default) ,
{{current_time_[timezone]}}
(time in a specified timezone) , and
{{current_calendar}}
, but there are no documented system variables named
{{current_date}}
,
{{current_time}}
(as only time) , or
{{current_day}}
[(1) ]() [(2) ]() [(3) ]() . You do not need to set the system defaults, but if you want date/time in a specific format or timezone, you must use the correct variable (e.g.,
{{current_time_America/Los_Angeles}}
, or for Hawaii:
{{current_time_Pacific/Honolulu}}
) . - Format: The default
{{current_time}}
returns a full timestamp string (e.g., “Thursday, March 28, 2024 at 11:46:04 PM PST”) [(1) ]() [(2) ]() . ### 2. How does the LLM calculate relative dates like "next Wednesday"? The LLM uses the value of the system dynamic variable you provide (e.g.,
{{current_time_Pacific/Honolulu}}
) as the "current time" reference [(1) ]() [(2) ]() [(3) ]() . If you do not provide this, it may default to America/Los_Angeles [(1) ]() [(2) ]() . The LLM parses relative dates based on the value in the variable—if your prompt refers to
{{current_time}}
or a timezone-specific variable, the LLM will use that
value as "today" [(1) ]() [(2) ]() [(3) ]() . ### 3. Should I provide explicit date calculation instructions in the global prompt? Yes, providing explicit instructions in the prompt is a best practice, especially if you want to control how relative dates are interpreted . This helps reduce ambiguity and ensures the LLM uses your intended logic for relative terms like "next Wednesday" [(3) ]() . ### 4. Is there a way to verify what values
current_date
,
current_time
, and
current_day
contain during a call? You can reference the system variable directly in a prompt or agent message to see its output (e.g., have the agent say "Current time is {{current_time_Pacific/Honolulu}}") for debugging [(1) ]() [(2) ]() [(3) ]() . There is no built-in debugger for custom variable names like
current_date
, but you can output the system variable to check its value. ### 5. Could this be a timezone issue? Yes, timezone mismatches are common causes of date calculation errors. The default timezone for
{{current_time}}
is America/Los_Angeles [(1) ]() [(2) ]() . To use Hawaii time, you must use
{{current_time_Pacific/Honolulu}}
. If you use a custom variable like
{{current_date}}
, it will not be auto-populated unless you set it yourself [(1) ]() . Always use the timezone-specific system variable for accuracy. --- ####
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Discord message from @webb_100 on 2025-10-20](https://discord.com/channels/1186424376300679209/1186462578310910112/1429967843805630625) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy # CRITICAL Query for Retell AI Support - "exists" Operator Behavior ## Problem I'm using skip logic with the
exists
operator, but it's not working as expected. Setup: I have an Extract Dynamic Variables node (Node 2) that tries to extract multiple variables:
Copy code
- appointment_date
- appointment_time
- visit_category
- detailed_reason
Later in the flow, Node 9 checks if all three exist before skipping to availability check:
Copy code
Transition (Skip to availability check):
  Type: Equation
  Equations:
    1. {{appointment_date}} exists
    2. {{appointment_time}} exists
    3. {{visit_category}} exists
  Mode: ALL
  Destination: Check Availability node
## The Issue Test scenario: - User says: "Hi can I make an appointment for my wife on next Wednesday at 10?" - This mentions: date (Wednesday), time (10), caller relationship (wife) - Does NOT mention: visit type/reason Expected behavior: - Node 2 extracts: appointment_date, appointment_time (✅) - Node 2 does NOT extract: visit_category (user didn't mention it) - Later, Node 9 checks if visit_category exists → FALSE - Node 9 asks "What is this appointment for?" (✅) Actual behavior: - Node 9 skip condition triggers (all three "exist") - Skips straight to availability check ❌ - But we don't have the visit type! ❌ ## Questions ### 1. What does
{{variable}} exists
actually check? Does it check if: - A) Variable is defined (has ANY value, including empty string) - B) Variable is defined AND non-empty - C) Variable was extracted in a previous node ### 2. What happens when Extract node can't find a variable? If user doesn't mention visit_category, does the Extract node: - A) Leave it undefined/null - B) Set it to empty string "" - C) Set it to some default value ### 3. Does "exists" return true for empty strings? If visit_category = "" (empty string), does
{{visit_category}} exists
return: - A) TRUE (it exists, even if empty) - B) FALSE (empty string counts as doesn't exist) ### 4. How can I check for "exists AND non-empty"? What's the correct syntax to check if a variable both exists AND has actual content? Option A:
Copy code
{{visit_category}} exists AND {{visit_category}} != ""
Option B:
Copy code
{{visit_category}} != ""  // Does this implicitly check exists?
Option C: Some other operator? ## What I Need Please provide: 1. ✅ Clear definition of what
exists
operator checks 2. ✅ How Extract nodes behave when they can't find a variable in user input 3. ✅ Correct syntax to check "variable has actual content" (not just exists) 4. ✅ Best practice for skip logic that ensures we have meaningful data, not just empty strings ## Context I'm implementing "smart capture" where: - Global Extract nodes try to capture volunteered information - Conversation nodes check if variables exist before asking - If exists → skip the question - If doesn't exist → ask normally I need skip logic to ONLY trigger when we have ACTUAL data, not just empty variables. ## Example Solution Request If the correct approach is:
Copy code
{{visit_category}} != ""
Instead of:
Copy code
{{visit_category}} exists
Please confirm this explicitly so I can update all my skip logic accordingly. Thank you!
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer ### 1. What does
{{variable}} exists
actually check?
{{variable}} exists
returns true if the variable is defined and has a value [(1) ]() . However, the documentation does not specify whether an empty string (
""
) counts as "has a value." Based on typical usage and the lack of further clarification,
exists
will return true if the variable is present—even if its value is empty. This means it does not guarantee the variable contains meaningful data . ### 2. What happens when an Extract node can't find a variable? If the user doesn't provide a value for a variable, the documentation states the
exists
check returns false if the variable is "undefined or has no value" . However, it does not explicitly state whether an empty string is considered "no value." There is no mention of default values being set by the Extract node if the user omits a variable . ### 3. Does
exists
return true for empty strings? This is not explicitly documented. The closest documentation says: - "`{{variable_name}} exists` – Returns true if the variable is defined and has a value" . But it does not specify what happens with empty strings. Therefore, if your extraction logic or LLM prompt could result in a variable being set to
""
,
exists
may still return true—leading to the skip logic triggering when it shouldn't . ### 4. How can I check for "exists AND non-empty"? The documentation supports equation conditions using string comparisons. You can check for non-empty values like this:
Copy code
{{visit_category}} != ""
This will return true if
visit_category
is not an empty string. If you want to be absolutely certain the variable both exists and is non-empty, you can combine:
Copy code
{{visit_category}} exists
{{visit_category}} != ""
and set the transition mode to
ALL
. ### 5. Best practice for skip logic to ensure meaningful data For robust skip logic, always check that the variable is both defined and not an empty string: - Use two equations in your transition: -
{{visit_category}} exists
-
{{visit_category}} != ""
- Set the mode to
ALL
(so both must be true) . This ensures the skip logic only triggers if you have actual, non-empty data. --- Summary Table: | Check | Purpose | Works for skip logic? | |---------------------------------|--------------------------------------------|----------------------| |
{{visit_category}} exists
| True if variable is defined (may be empty) | ❌ Not sufficient | |
{{visit_category}} != ""
| True if variable is non-empty | ✅ Sufficient | | Both + mode
ALL
| True if defined AND non-empty | ✅ Recommended | --- References: - [Step 3: Add transition conditions]()
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy # CRITICAL Query for Retell AI Support - "exists" Operator Behavior ## Problem I'm using skip logic with the
exists
operator, but it's not working as expected. Setup: I have an Extract Dynamic Variables node (Node 2) that tries to extract multiple variables:
Copy code
- appointment_date
- appointment_time
- visit_category
- detailed_reason
Later in the flow, Node 9 checks if all three exist before skipping to availability check:
Copy code
Transition (Skip to availability check):
  Type: Equation
  Equations:
    1. {{appointment_date}} exists
    2. {{appointment_time}} exists
    3. {{visit_category}} exists
  Mode: ALL
  Destination: Check Availability node
## The Issue Test scenario: - User says: "Hi can I make an appointment for my wife on next Wednesday at 10?" - This mentions: date (Wednesday), time (10), caller relationship (wife) - Does NOT mention: visit type/reason Expected behavior: - Node 2 extracts: appointment_date, appointment_time (✅) - Node 2 does NOT extract: visit_category (user didn't mention it) - Later, Node 9 checks if visit_category exists → FALSE - Node 9 asks "What is this appointment for?" (✅) Actual behavior: - Node 9 skip condition triggers (all three "exist") - Skips straight to availability check ❌ - But we don't have the visit type! ❌ ## Questions ### 1. What does
{{variable}} exists
actually check? Does it check if: - A) Variable is defined (has ANY value, including empty string) - B) Variable is defined AND non-empty - C) Variable was extracted in a previous node ### 2. What happens when Extract node can't find a variable? If user doesn't mention visit_category, does the Extract node: - A) Leave it undefined/null - B) Set it to empty string "" - C) Set it to some default value ### 3. Does "exists" return true for empty strings? If visit_category = "" (empty string), does
{{visit_category}} exists
return: - A) TRUE (it exists, even if empty) - B) FALSE (empty string counts as doesn't exist) ### 4. How can I check for "exists AND non-empty"? What's the correct syntax to check if a variable both exists AND has actual content? Option A:
Copy code
{{visit_category}} exists AND {{visit_category}} != ""
Option B:
Copy code
{{visit_category}} != ""  // Does this implicitly check exists?
Option C: Some other operator? ## What I Need Please provide: 1. ✅ Clear definition of what
exists
operator checks 2. ✅ How Extract nodes behave when they can't find a variable in user input 3. ✅ Correct syntax to check "variable has actual content" (not just exists) 4. ✅ Best practice for skip logic that ensures we have meaningful data, not just empty strings ## Context I'm implementing "smart capture" where: - Global Extract nodes try to capture volunteered information - Conversation nodes check if variables exist before asking - If exists → skip the question - If doesn't exist → ask normally I need skip logic to ONLY trigger when we have ACTUAL data, not just empty variables. ## Example Solution Request If the correct approach is:
Copy code
{{visit_category}} != ""
Instead of:
Copy code
{{visit_category}} exists
Please confirm this explicitly so I can update all my skip logic accordingly. Thank you!
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer ### 1. What does
{{variable}} exists
actually check? The
{{variable}} exists
operator returns true if the variable is defined and has a value. However, the documentation does not explicitly state whether an empty string (
""
) is counted as "has a value" or "no value." The most direct statement is: - "`{{variable_name}} exists` – Returns true if the variable is defined and has a value" [(1) ]() . From this, you should assume that
exists
returns true if the variable is present—even if its value is an empty string. It does not guarantee the variable contains meaningful data . ### 2. What happens when Extract node can't find a variable? If the user does not mention a variable, the documentation does not specify if the Extract node leaves the variable undefined/null or sets it to an empty string. There is no reference to a default value being set by the Extract node in this case [(2) ]() [(3) ]() . This means the variable may be undefined or
""
(empty string) , depending on how the extraction logic or LLM prompt is configured. ### 3. Does "exists" return true for empty strings? This is not explicitly documented. The documentation says
exists
is true if "the variable is defined and has a value" [(1) ]() , but does not clarify what happens for empty strings. If your extraction logic sometimes sets a variable to
""
,
exists
may still return true—so skip logic could trigger even when the variable is empty . ### 4. How can I check for "exists AND non-empty"? The documentation supports equation conditions using string comparisons. You can check for non-empty v
alues like this:
Copy code
{{visit_category}} != ""
This will return true if
visit_category
is not an empty string . If you want to be absolutely certain the variable both exists and is non-empty, you can combine:
Copy code
{{visit_category}} exists
{{visit_category}} != ""
Set the transition mode to
ALL
. ### 5. Best practice for skip logic For robust skip logic, always check that the variable is both defined and not an empty string: - Use two equations in your transition: -
{{visit_category}} exists
-
{{visit_category}} != ""
- Set the mode to
ALL
. This ensures your skip logic only triggers if you have actual, non-empty data. --- #### Summary Table | Check | Purpose | Works for skip logic? | |---------------------------------|--------------------------------------------|----------------------| |
{{visit_category}} exists
| True if variable is defined (may be empty) | ❌ Not sufficient | |
{{visit_category}} != ""
| True if variable is non-empty | ✅ Sufficient | | Both + mode
ALL
| True if defined AND non-empty | ✅ Recommended | --- References: : [Step 3: Add transition conditions]() [(2) ]() : [Extract Dynamic Variables]() [(3) ]() : [Extract Dynamic Variable Node]()
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[3] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here’s a concise summary for skip logic and the
exists
operator in Retell AI, strictly per documentation: 1. What does
{{variable}} exists
check?
- It returns true if the variable is defined and has a value. The docs do not specify whether an empty string (
""
) is considered “has a value.” So,
exists
may be true even if the variable is empty, and is not sufficient by itself to guarantee meaningful data [(1) ]() . 2. How do Extract nodes behave if a value isn’t found? - The documentation does not specify if the variable is left undefined or set to
""
(empty string) if not found. There is no mention of a default value being set for missing variables [(2) ]() [(3) ]() . 3. Does
exists
return true for empty strings?
- Not explicitly documented. If your extraction logic or LLM prompt sets a variable to
""
,
exists
may still return true [(1) ]() . 4. How do I check for “exists AND non-empty”? - Use both conditions in your transition, with mode set to `ALL`:
Copy code
{{visit_category}} exists
     {{visit_category}} != ""
This ensures the skip logic only triggers if the variable is both defined and not empty . 5. Best practice for skip logic: - Always check both
exists
and
!= ""
for variables that must have actual content before skipping a question . Summary Table: | Check | Purpose | Works for skip logic? | |---------------------------------|--------------------------------------------|----------------------| |
{{visit_category}} exists
| True if variable is defined (may be empty) | ❌ Not sufficient | |
{{visit_category}} != ""
| True if variable is non-empty | ✅ Sufficient | | Both + mode
ALL
| True if defined AND non-empty | ✅ Recommended | References: : [Step 3: Add transition conditions]() [(2) ]() : [Extract Dynamic Variables]() [(3) ]() : [Extract Dynamic Variable Node]()
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[3] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "I have Extract Dynamic Variables nodes with both: - destination_node_id field (e.g., 'conv_caller_type') - Edges with always-true conditions (e.g., {{1}} == "1") Questions: - Do Extract nodes need edges at all? - Should they only use destination_node_id? - If an Extract node has BOTH destination_node_id AND an edge, which one is used? - Are the edges redundant or necessary?"
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Based on the official documentation, here’s what applies to Extract Dynamic Variable nodes in Retell AI Conversation Flow: - Extract Dynamic Variable nodes are used to extract information and store it as a dynamic variable; they are not intended for direct conversation with the user [(1) ]() . - The documentation does not specify a required use of edges for Extract nodes, nor does it show any requirement for a destination_node_id field or edges for these nodes . - There is no mention of a destination_node_id property for Extract nodes in the official docs; instead, Extract nodes are described by variable name, description, type, and options . - Edges are generally used to define transitions between nodes, but for Extract nodes, the documentation does not clarify if edges are needed, nor what happens if both destination_node_id and edges are present . Summary for your questions: - There is no explicit documentation that Extract Dynamic Variable nodes require edges . - The docs do not mention a destination_node_id property for Extract nodes . - Behavior when both destination_node_id and edges are present is not documented . - It is not documented whether edges are redundant or necessary for Extract nodes . Check out the Extract Dynamic Variable Node documentation for more details: [Extract Dynamic Variable Node]() If you want a general best-practice answer based on Retell AI usage, let me know.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "After a test call, how can I see what values were extracted for each variable? - Is there a call log showing variable values? - Can I enable debug mode to trace extraction? - How can I verify if visit_category was extracted as empty string or a hallucinated value?"
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer After a test call, you can see what values were extracted for each variable by checking the call object returned by the Retell API. The extracted variables are stored in the collected_dynamic_variables field, which you can access using the Get Call API. Example response:
Copy code
json
"collected_dynamic_variables": {
  "last_node_name": "Test node"
}
This field will contain the extracted values for your dynamic variables at the end of the call. You can retrieve this by calling the retrieve method for the call ID:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('YOUR_CALL_ID') ;
console.log(callResponse.collected_dynamic_variables) ;
[(1) ]() - There is no explicit "debug mode" documented for tracing variable extraction, but reviewing the collected_dynamic_variables in the call log is the primary way to verify what was captured. - To check if visit_category was extracted as an empty string or a hallucinated value, look at the value returned in collected_dynamic_variables. If it's an empty string, it will appear as such; if the LLM hallucinated a value, that value will be present in the field. For more details, see: [Get Call]()
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Our check_availability function is being skipped entirely. The flow goes from conversation → extract → SKIP function → soft-lock. Questions: 1. Does check_availability function node have wait_for_result set to true or false? 2. Can you show me the exact routing configuration for Node 11 (func_check_availability)? 3. Are there transition conditions that could cause the function to be bypassed? 4. How do success_edge and else_edge work on function nodes? Do I need to explicitly configure them? 5. If a transition condition evaluates to true BEFORE wait_for_result completes, can it skip the function entirely?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here are direct answers based on documentation: 1. Does check_availability function node have wait_for_result set to true or false? - This depends on your configuration. If “Wait for Result” is enabled, the agent waits for the function to finish before transitioning. If disabled, it transitions immediately after invoking the function (unless “Speak during execution” is on, in which case it waits for the agent to finish speaking) . You need to check your node’s settings to confirm which is set [(1) ]() . 2. Can you show me the exact routing configuration for Node 11 (func_check_availability) ? - I do not have access to your specific flow or configuration. However, routing from a function node is controlled by transition conditions. You can define transitions that depend on the function result or other variables. Attach conversation nodes after your function node to handle the result [(1) ]() [(2) ]() . 3. Are there transition conditions that could cause the function to be bypassed? - Yes. If transitions are set up to skip the function node based on certain conditions, or if the previous node routes directly past it, the function node could be bypassed. Ensure your edges and transition conditions are set up so the agent always enters the function node when it should [(2) ]() [(3) ]() . 4. How do success_edge and else_edge work on function nodes? Do I need to explicitly configure them? - The documentation does not use the terms “success_edge” or “else_edge.” For function nodes, you define transitions out of the node based on the fun
ction result or other conditions. You must explicitly create these transitions if you want specific behavior based on function success or failure [(1) ]() [(2) ]() . 5. If a transition condition evaluates to true BEFORE wait_for_result completes, can it skip the function entirely? - If “Wait for Result” is ON, the agent will only transition once the function result is ready (and, if “Speak during execution” is ON, when the agent is done talking) . If “Wait for Result” is OFF, the transition occurs as soon as the function is invoked—potentially before the function completes [(1) ]() . If your transition conditions are set up in a way that allows skipping, then yes, the function node could be skipped or exited early [(1) ]() [(2) ]() . Check your function node’s “Wait for Result” and “Speak during execution” settings, and review all incoming and outgoing transitions to ensure correct routing.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[3] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy We have 7 Extract Dynamic Variable nodes in a 23-node flow. This seems excessive based on documentation that says "extract nodes are not intended for conversation." Questions: 1. What's the recommended maximum number of extract nodes for an appointment scheduling flow? 2. Should we consolidate multiple extract nodes into fewer conversation nodes that gather data naturally? 3. Is there a performance or routing penalty for having too many extract nodes? 4. When should we use extract nodes vs. letting conversation nodes gather data naturally?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here are direct answers based strictly on Retell AI documentation and relevant sources: 1. There is no documented recommended maximum number of Extract Dynamic Variable nodes for an appointment scheduling flow. The documentation does not specify a limit or best practice for the number of extract nodes to use in a flow [(1) ]() [(2) ]() . 2. The documentation states that Extract Dynamic Variable nodes are not intended for conversation with the user—they are used to extract and store information as dynamic variables [(1) ]() . It does not provide guidance on consolidating extract nodes versus using conversation nodes for data gathering. There is no explicit recommendation to consolidate extract nodes or to prefer conversation nodes for information capture [(1) ]() [(2) ]() . 3. There is no mention in the official documentation of a performance or routing penalty for having many extract nodes. However, community reports indicate that having multiple extract nodes extracting the same variable may cause issues, and some users have found improved reliability by consolidating extraction into a single node [(3) ]() . There is no official statement about general performance or routing degradation with a high number of extract nodes [(1) ]() [(3) ]() . 4. Extract Dynamic Variable nodes should be used to extract information from the conversation and store it as a var
iable, not to interact with the user directly [(1) ]() . Conversation nodes are designed for user interactions and dialogue [(2) ]() . The documentation suggests using extract nodes when you need to pull information from user utterances, and conversation nodes when you want to ask questions or engage in dialogue [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[3] Stuck in Extract Variable Node](https://discord.com/channels/1186424376300679209/1417156559330476142) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy We have 7 nodes marked as Global Nodes for "smart capture." Could these be interfering with the normal flow path? Questions: 1. When a user's input matches BOTH a global node condition AND a local edge transition, which takes priority? 2. Could global extract nodes be "catching" the flow before it reaches the availability check function? 3. What's the recommended number of global nodes in a typical flow? 4. How can we debug which transition/global node is actually being triggered? Query 4: Skip Logic Interference We have skip logic that checks {{variable}} != "" to bypass questions if data already exists. Could this be bypassing function nodes too? Questions: 1. Can skip logic conditions on conversation nodes prevent downstream function nodes from executing? 2. If all variables exist (date, time, visit_category), and skip logic routes directly from Node 9 → Node 15, does it skip Node 11 (function)? 3. Should function nodes ALWAYS be in the main path, never skippable via logic? 4. How do we ensure critical functions (availability check, booking) always execute?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer ### Global Nodes & Transition Priority 1. When a user's input matches BOTH a global node condition AND a local edge transition, which takes priority? If user input matches a global node condition, the agent will transition to the global node. If not, it evaluates local edges. So, global nodes have higher priority when their condition is met—the agent transitions into the global node; otherwise, it follows local transitions [(1) ]() . 2. Could global extract nodes be "catching" the flow before it reaches the availability check function? Yes. If a global node's condition matches the user input, the agent transitions to the global node, which can intercept the flow before downstream nodes (like your function node) are reached [(1) ]() [(2) ]() . 3. What's the recommended number of global nodes in a typical flow? There is no documented recommended number of global nodes. The documentation states global nodes are useful for handling unexpected situations or key steps (like objection handling) , but does not prescribe a limit [(2) ]() [(3) ]() . 4. How can we debug which transition/global node is actually being triggered? When testing in the dashboard (audio or text) , you can see which node is highlighted in real time, allowing you to determine the current node and observe how/when transitions occur. This helps identify if a global node or a local edge is being triggered [(1) ]() [(2) ]()
. --- ### Skip Logic & Function Node Execution 1. Can skip logic conditions on conversation nodes prevent downstream function nodes from executing? Yes. If skip logic conditions (e.g.,
{{variable}} != ""
) route the flow past a function node, that function node will be skipped and not executed [(1) ]() [(4) ]() . 2. If all variables exist and skip logic routes Node 9 → Node 15, does it skip Node 11 (function) ? Yes. If the transition logic bypasses Node 11, the function node will not run. Transitions control the path the agent takes, so nodes not on the selected path are skipped . 3. Should function nodes ALWAYS be in the main path, never skippable via logic? There is no explicit documentation requiring function nodes to be on the main path or forbidding them from being skipped. To ensure critical functions always execute, structure your transitions so the function node cannot be bypassed [(4) ]() [(2) ]() . 4. How do we ensure critical functions (availability check, booking) always execute? Configure your transitions so that, regardless of skip logic for data capture, the flow always passes through the function node. Avoid transition paths that allow bypassing these nodes . ---
j
@AI Evy We have skip logic that checks {{variable}} != "" to bypass questions if data already exists. Could this be bypassing function nodes too? Questions: 1. Can skip logic conditions on conversation nodes prevent downstream function nodes from executing? 2. If all variables exist (date, time, visit_category), and skip logic routes directly from Node 9 → Node 15, does it skip Node 11 (function)? 3. Should function nodes ALWAYS be in the main path, never skippable via logic? 4. How do we ensure critical functions (availability check, booking) always execute?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer 1. Yes, skip logic conditions (e.g., using {{variable}} != "") on conversation nodes can cause the flow to bypass downstream function nodes. If the transition logic routes the flow past a function node, that node will not execute [(1) ]() , [(2) ]() . 2. If all variables exist and your skip logic sends the flow directly from Node 9 to Node 15, Node 11 (the function node) will be skipped and not run. Transitions define the exact path, so nodes not on the chosen path are not executed [(1) ]() , [(2) ]() . 3. There is no explicit documentation requiring function nodes to always be on the main path or forbidding them from being skippable. However, to guarantee that a critical function (like availability check or booking) always executes, you should structure your transitions so the flow must pass through the function node and cannot bypass it . 4. To ensure critical functions always execute, configure your transitions so that, regardless of skip logic for data capture, the flow always routes through the function node. Avoid transition paths that allow bypassing these nodes [(1) ]() , [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Node Overview](https://docs.retellai.com/build/conversation-flow/node) ​
j
@AI Evy We implemented a validation loop where Node 9 can loop back to Node 3 if variables are missing. This creates complex routing. Questions: 1. Are validation loops (going backwards in the flow) an anti-pattern in Retell? 2. Should we rely on the LLM to naturally re-ask for missing information instead? 3. What's the recommended pattern for "collect all required data before proceeding"? 4. Can validation loops cause routing confusion that skips function calls?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here are concise, documentation-based answers to your validation loop and routing questions: 1. Are validation loops (going backwards in the flow) an anti-pattern in Retell? - The documentation does not explicitly label validation loops as an anti-pattern. However, it emphasizes that each node should handle a specific, focused piece of conversation logic and that breaking down complex paths into smaller nodes can improve reliability and make debugging easier. Loops that create complex or hard-to-follow flows may make your conversation harder to debug and maintain, which the docs recommend avoiding [(1) ]() [(2) ]() . 2. Should we rely on the LLM to naturally re-ask for missing information instead? - The documentation recommends using conversation nodes to explicitly prompt for missing information, rather than relying solely on the LLM’s natural behavior. This gives you more control and predictability in the flow . 3. What's the recommended pattern for "collect all required data before proceeding"? - Use a sequence of conversation nodes for each required data point, with transition conditions (such as
{{variable}} != ""
) to check if data exists before proceeding. Only route forward when all required variables are present and non-empty. This ensures you collect everything before moving to the next step, such as a function call [(3) ]() [(2) ]() . 4. Can validation loops cause routing confusion that skips function calls? - Yes. If your routing logic allows the flow to loop or skip past nodes (including function nodes) , those nodes will not be executed. Always ensure your transitions are structured so that critical
function nodes cannot be bypassed by loopbacks or skip logic .
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Our flow has become overcomplicated (23 nodes, 7 extract nodes, skip logic, validation loops). We need to simplify. Questions: 1. Can you review our flow export and recommend which nodes to consolidate? 2. What's a typical node count for appointment scheduling with availability check? 3. Should we use fewer, multi-turn conversation nodes instead of many single-purpose nodes? 4. Are there Retell example flows for appointment scheduling we can reference?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer 1. I can't review flow exports directly. 2. There is no documented typical node count for appointment scheduling or availability check flows. The documentation does not specify an ideal number of nodes for such flows [(1) ]() [(2) ]() . 3. The documentation suggests using conversation nodes for user interaction and extract nodes only when you need to extract information as a variable, not for direct conversation [(1) ]() . It does not explicitly recommend multi-turn conversation nodes over many single-purpose nodes, but it notes that breaking down complex logic into smaller nodes can improve reliability and maintainability . 4. For appointment scheduling, Retell AI provides example use cases and describes adding “Check Availability” and “Book Appointments” functions to your agent, but does not provide downloadable example flows [(3) ]() [(2) ]() [(4) ]() . You can review the step-by-step setup in these resources: - [AI Scheduling Assistant with Cal.com | Retell AI]() - [AI Appointment Scheduling with Voice AI Booking Assistant]() - [Retell AI Appointment Setter | Smart Scheduling for Businesses]()
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] AI Appointment Scheduling with Voice AI Booking Assistant](https://www.retellai.com/features/book-appointments) [[3] AI Scheduling Assistant with Cal.com | Retell AI](https://www.retellai.com/blog/cal-coms-preset-tools) [[4] Retell AI Appointment Setter | Smart Scheduling for Businesses](https://www.retellai.com/ai-appointment-setter) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) [[3] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[4] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "How do we prevent extract_dynamic_variables nodes from inferring/hallucinating values when variables should be left empty? Our visit_category variable has 'DO NOT infer' in description but still gets populated when user doesn't mention it."
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer There is no documented way to force Extract Dynamic Variable nodes in Retell AI to leave a variable empty instead of inferring or hallucinating a value if the user does not mention it. Adding instructions like "DO NOT infer" in the description is not guaranteed to prevent the LLM from populating the field—descriptions are used for prompt context, but the extraction behavior can still result in values being set even if not explicitly mentioned by the user [(1) ]() [(2) ]() . The documentation does not specify a method to strictly enforce that a variable remains empty unless the user provides a value. As a result, the LLM may still infer or hallucinate based on conversation context . Check out these potentially useful sources: [Extract Dynamic Variable Node]() , [Extract Dynamic Variables]() , [Dynamic Variables]() If you want a general answer or best-practice workaround, let me know.
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "What's the best practice in Retell AI for handling conversational context from earlier nodes? Scenario: User says 'appointment for my wife' in their first message. Later, after checking availability, we need to collect patient details. How do we avoid re-asking 'Who is this appointment for?' Options we're considering: 1. Extract caller relationship early (but risk hallucination like other variables) 2. Use context-aware conversation node prompt that checks conversation history 3. Some other Retell-specific pattern for carrying context? Currently using conversation node with detailed instructions to check conversation history. Is this the recommended approach, or is there a better way?"
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Retell AI documentation recommends structuring conversation flows to avoid redundant prompts and leverage context, but it does not specify an automated mechanism for carrying context between nodes beyond variable extraction and conversation node design [(1) ]() [(2) ]() [(3) ]() . Here’s how the documented patterns apply to your scenario: - Use Extract Dynamic Variable nodes to capture early context such as “appointment for my wife,” but be aware that extraction nodes may hallucinate values if the user does not state them explicitly [(4) ]() . There is no documented way to force these variables to remain empty unless provided by the user. - Conversation nodes are used for multi-turn, context-aware interactions and can include instructions to reference previously captured variables or context [(1) ]() [(2) ]() . You can design prompts in these nodes to check for the presence of variables (e.g., if relationship is already known, do not ask again) . - The recommended approach is to set up your flow so that each required data point is only collected if its variable is empty. Use transition conditions (e.g., {{relationship}} == "") to determine whether to prompt for missing info, and otherwise proceed without re-asking [(2) ]() [(3) ]() . There is no Retell-specific automated context-passing feature beyond these standa
rd node and variable mechanisms. Using conversation nodes with detailed prompts that check for existing variables is the documented best practice for context handling in multi-step flows [(1) ]() [(2) ]() [(3) ]() .
​ To learn more, see the sources I considered: [[1] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[2] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[3] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[4] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "In an Extract Dynamic Variables node, if we're extracting 4 related variables (original_date, original_time, new_date, new_time) and the user says: 'I need to move my Thursday 8:30 appointment to Friday at 2pm' Will the extract node correctly distinguish between: - original_date (Thursday) vs new_date (Friday) - original_time (8:30) vs new_time (2pm) Or should we use separate extract nodes for original vs new to avoid confusion?"
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer The documentation does not specify whether a single Extract Dynamic Variable Node will reliably distinguish between multiple related variables (such as original_date vs new_date and original_time vs new_time) when the user provides them in one utterance [(1) ]() . Extract nodes are designed to extract information and store it as dynamic variables, but there is no explicit guidance on handling closely related variables with potentially ambiguous input. There is also no documented requirement or best practice stating that you must use separate extract nodes for each group of related variables to avoid confusion . However, since extract nodes are not intended for conversation and can be prone to hallucination or misattribution if the user's input is ambiguous, you may experience reliability issues in such cases . If precise extraction is critical, you may want to design your conversation flow so that the user confirms or clarifies each variable separately, which can be managed by using multiple extract nodes or structuring prompts to reduce ambiguity . But this is not explicitly stated as a requirement or recommendation in the official documentation. Check out these potentially useful sources: [Extract Dynamic Variable Node]() , [Extract Dynamic Variables]() If you want a general answer or best-practice workaround, let me know.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
"If we create separate conversation flows (conversation_flow_schedule and conversation_flow_reschedule), can variables be shared between them? For example, if the greeting in the schedule flow detects reschedule intent, can we transition to the reschedule flow while preserving any variables already extracted? Or are conversation flows completely isolated in terms of variable scope?"
@AI Evy "If we create separate conversation flows (conversation_flow_schedule and conversation_flow_reschedule), can variables be shared between them? For example, if the greeting in the schedule flow detects reschedule intent, can we transition to the reschedule flow while preserving any variables already extracted? Or are conversation flows completely isolated in terms of variable scope?"
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer There is no documentation stating that dynamic variables or context are shared across separate conversation flows in Retell AI. Each conversation flow is designed to manage its own variables and logic independently. The documentation describes dynamic variables as being set and used within a conversation flow, and does not mention cross-flow variable sharing or scope extension between distinct flows [(1) ]() . Based on available information, conversation flows should be considered isolated in terms of variable scope. Check out these potentially useful sources: [Dynamic Variables]() , [List Conversation Flows]() , [Components]() If you want a general answer or best-practice workaround, let me know.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy "When extracting dates from user utterances like 'Thursday' or 'next Friday', should the extract node description reference context variables like {{current_date}} and {{current_day}} to help with inference? Example description: 'Extract the date. Use {{current_date}} (YYYY-MM-DD) and {{current_day}} (Monday/Tuesday/etc) to infer the specific date. If user says "Thursday" and today is Monday, infer this Thursday. If user says "next Thursday", infer next week's Thursday.' Or is this handled automatically by the LLM?"
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer The documentation does not specify whether referencing context variables like {{current_date}} and {{current_day}} in the extract node description will improve date extraction accuracy for utterances like "Thursday" or "next Friday" [(1) ]() [(2) ]() . Extract Dynamic Variable nodes can use descriptions to provide guidance for what value should be extracted, but there is no explicit statement that referencing other dynamic variables in the description will influence the LLM's behavior in this way . Dynamic variables such as {{current_time}} and {{current_day}} are available and can be referenced in prompts or tool descriptions, but the documentation does not confirm that including them in an extract node's description will automatically help the LLM infer dates as you described [(2) ]() . The LLM's ability to infer context from dynamic variables is not explicitly documented for extract node descriptions. In summary: referencing {{current_date}} or {{current_day}} in the description is not documented as a required or recommended practice, nor is it guaranteed to affect behavior. The extraction logic is primarily handled by the LLM, and there are no explicit instructions in the documentation about this specific use case [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I need to get the tool_id values for all custom tools/functions in my Retell account. Specifically, I'm looking for these tools: 1. check_availability (checks calendar availability) 2. reschedule_appointment (reschedules existing appointment) 3. notify_booking_start (sends notification when booking starts) 4. schedule_appointment (creates new appointment) 5. verify_patient_identity (verifies patient in database) 6. cancel_appointment (cancels existing appointment) Questions: 1. What API endpoint lists all tools in my account? 2. Does the response include tool_id, name, description, and parameters? 3. Can I filter by tool type (e.g., only custom tools, not built-in)? Please provide the exact API call I should use to retrieve all tool IDs.
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer You can use the Get MCP Tools endpoint to list tools (including custom tools) for a specific agent in Retell AI. The response includes the name, description, and inputSchema (parameters) for each tool, but it does not explicitly show a "tool_id" field—tools are referenced by their name. Here’s the exact API call using the JavaScript SDK:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const mcpToolDefinitions = await client.mcpTool.getMcpTools('oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD', {
  mcp_id: 'mcp-server-1',
}) ;
console.log(mcpToolDefinitions) ;
[(1) ]() - Endpoint: GET /get-mcp-tools/{agent_id} - The response includes: name, description, and inputSchema (parameters) for each tool . - There is no documented filter parameter for tool type (custom vs. built-in) ; all MCP tools for the agent are returned together .
​ To learn more, see the sources I considered: [[1] Get MCP Tools](https://docs.retellai.com/api-references/get-mcp-tools) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy For Extract Dynamic Variable nodes in conversation flows, I need to confirm: 1. What's the exact JSON structure for an extract node? 2. Required fields: type, variables, edges? 3. For the 'variables' array, what are the required fields for each variable object? (name, type, description, options?) 4. What 'type' values are valid for variables? (string, number, boolean, array?) 5. How should edges be structured for extract nodes to guarantee transition? (We've been using: {type: "equation", equations: [{left: "1", operator: "==", right: "1"}]}) For Function nodes: 1. Required fields: type, tool_id, wait_for_result, speak_during_execution? 2. How to configure edges that transition based on function success/failure? 3. Can function nodes call multiple tools in sequence, or only one at a time? For Conversation nodes: 1. Required fields: type, instruction, edges? 2. How to configure global nodes? (is there a global_node_setting field?) 3. What's the correct structure for prompt-based transition conditions?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here’s what is documented for each node type in Retell AI conversation flows: --- Extract Dynamic Variable Node 1. Exact JSON structure: There is no full JSON example in the docs, but the documented structure for an extract node includes: - `type`:
"extract_dynamic_variable"
- `variables`: array of variable objects (see below) - `edges`: array of transition edges Each variable object includes
name
,
description
,
type
, and, if type is
"enum"
, an
options
array [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() . 2. Required fields: -
type
-
variables
-
edges
Each variable requires at least
name
,
description
, and
type
[(1) ]() . 3. Variables array required fields: -
name
-
description
-
type
If
type
is
"enum"
, include
options
. 4. Valid variable type values: -
"text"
-
"number"
-
"enum"
-
"boolean"
(These are the only documented types; there is no mention of
"string"
or
"array"
.) 5. Edge structure to guarantee transition: A common pattern is:
Copy code
json
{
  "type": "equation",
  "equations": [
    { "left": "1", "operator": "==", "right": "1" }
  ]
}
This always evaluates true and guarantees the transition [(4) ]() . --- Function Nodes 1. Required fields: -
type
-
tool_id
wait_for_result
and
speak_during_execution
can be included, but are not documented as required [(2) ]() [(3) ]() . 2. Transition edges based on success/failure: No explicit documentation on edge structure for function result-based transitions. Edges are arrays attached to the node, but no standard for success/failure branching is documented . 3. Multiple tools in sequence: Function nodes are documented to execute a single tool per node. There is no documentation supporting calling multiple tools in sequence from one function node . --- Conversation Nodes 1. Required fields: -
type
-
instruction
-
edges
(for transitions) [(2) ]() [(3) ]() [(4) ]() 2. Global nodes/global_node_setting: There is a documented
global_node_setting
field, but its required structure and usage are not detailed in the sources [(1) ]() . 3. Prompt-based transition conditions: For prompt-based transitions, edges typically look like:
Copy code
json
{
  "id": "edge_1",
  "transition_condition": {
    "type": "prompt",
    "prompt": "Customer wants to book appointment"
  },
  "destination_node_id": "book_appointment"
}
This pattern is supported for routing based on user input [(7) ]() [(3) ]() [(4) ]() . --- If you need exact, full JSON examples for each node type, see the API references: - [Create Conversation Flow]() - [Update Conversation Flow]() - [Node Overview]() - [Extract Dynamic Variable Node]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy For a reschedule flow, I'm using these variable names: - original_date (the date they're moving FROM) - original_time (the time they're moving FROM) - new_date (the date they're moving TO) - new_time (the time they're moving TO) Questions: 1. Are there any reserved variable names I should avoid? 2. Can variable names contain underscores? (original_date vs originalDate) 3. Is there a maximum length for variable names? 4. Are variable names case-sensitive? 5. Do variables need to be predefined somewhere, or are they created dynamically as extract nodes use them? Also: - Can two different extract nodes in the same flow extract to the SAME variable name (e.g., both Node 2 and Node 4 extract "original_date")? - If yes, does the second extraction overwrite the first?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Here is what is documented for dynamic variable naming and behavior in Retell AI: 1. There is no documentation listing reserved variable names you must avoid. The docs specify you create variables by providing a name, description, type, and (for enums) options, but do not mention any reserved words [(1) ]() [(2) ]() . 2. Variable names can contain underscores. Examples in the documentation and user discussions use names like original_date, appointment_date, and current_calendar, demonstrating underscores are valid . 3. There is no documented maximum length for variable names. The docs describe a “short name” for reference but do not specify a character limit [(1) ]() . 4. There is no documentation stating if variable names are case-sensitive. The examples use lowercase with underscores, but case sensitivity is not explicitly addressed [(1) ]() [(2) ]() . 5. Variables are created dynamically as you define them in extract nodes or use them in conversation flows. There’s no requirement to predefine all variables elsewhere—they are defined and described as part of each extract node configuration . Regarding extracting to the same variable name in multiple nodes: - You can configure multiple extract nodes to extract to the same variable name (e.g., both Node 2 and Node 4 extract "original_date") . The second extraction will overwrite the previous value for that variable in the flow context, as each extraction sets the variable to the most recent extracted value [(1) ]() [(3) ](
els/1186424376300679209/1186462578310910112/1429479310925758515) .
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Discord message from @q40478 on 2025-10-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1429479310925758515) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy For my agent's global prompt: 1. What API endpoint updates an agent's global prompt? 2. What field name stores the global prompt? (global_prompt, agent_prompt, system_prompt?) 3. Is there a character limit for the global prompt? 4. Can I use markdown formatting in the global prompt? 5. How do context variables work? ({{current_date}}, {{current_time}}, etc.) - Are these automatically populated by Retell? - What context variables are available? - Can I create custom context variables? Please provide the exact API call to update an agent's global prompt.
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer 1. The API endpoint for updating an agent is PATCH /update-agent/{agent_id} [(1) ]() . 2. The field name for the agent's global/system prompt is not explicitly documented as global_prompt or agent_prompt in the update agent API. The global_prompt field is referenced in conversation flow objects, not in the agent object [(2) ]() [(3) ]() [(1) ]() [(4) ]() . 3. There is no documented character limit for the global prompt in the agent or conversation flow APIs . 4. Markdown formatting support in the global prompt is not documented in the sources . 5. For context variables: - Variables like {{current_date}}, {{current_time}}, etc., are referenced as dynamic variables and can be set as default_dynamic_variables in a conversation flow, and can be referenced throughout the flow [(2) ]() [(3) ]() [(4) ]() . - The documentation shows custom context variables can be created by defining them in the default_dynamic_variables object when creating or updating a conversation flow . - There is no explicit list of built-in context variables or confirmation of which ones are always automatically populated, but examples include company_name and support_hours set in default_dynamic_variables . The exact API call to update an agent is:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { agent_name: 'Jarvis' }) ;
console.log(agentResponse.agent_id) ;
[(1) ]() For conversation flows, the global_prompt is set within the flow object, not on the agent itself [(2) ]() [(3) ]() [(4) ]() .
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[3] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[4] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I'm building a custom web chat integration using the Retell AI REST API (not the official widget) and need to properly handle chat session lifecycle. Please provide documentation and examples for: 1. **Get Chat Status Endpoint**: - What is the exact API endpoint to check if a chat session is still active? - What are the possible values for chat_status? - Request format and required headers - Response format with example JSON 2. **End Chat Endpoint**: - What is the exact API endpoint to manually end a chat session? - Is it PATCH /end-chat or something else? - Request parameters required (just chat_id or others?) - When should I call this endpoint? - Response format with example JSON 3. **Chat Session Expiration**: - How long is a chat session valid? - Is there an auto-close timeout for inactive chats? - How can I configure this timeout? - What happens when a session expires? 4. **Error Responses**: - When I call /create-chat-completion with an invalid or expired chat_id, what error code and message do I get? - Are there specific error codes for: * Session expired * Chat already ended * Invalid chat_id 5. **Chat Completion Detection**: - When an agent naturally ends a conversation (says goodbye), does the chat_status automatically change to "ended"? - Or does it remain "ongoing" until I explicitly call the end-chat endpoint? - How do I detect when the agent has finished helping the user? Please provide code examples using the REST API endpoints (POST /create-chat, POST /create-chat-completion, etc.) showing: - How to check chat status - How to properly end a chat - How to handle expired session errors I'm using fetch() in a TypeScript/Deno edge function.
@AI Evy PHI/PII Protection: - For a medical practice (HIPAA compliance), what is the recommended setting? - If I use "everything_except_pii", what specific PHI fields are automatically redacted? - Can I still retrieve call analysis and dynamic variables with "everything_except_pii"?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer ### Answer ## PHI/PII Protection for HIPAA Compliance ### Recommended Setting for Medical Practices For healthcare organizations requiring HIPAA compliance, Retell AI supports building HIPAA-compliant voice agents, but you'll need an Enterprise plan and a signed *Business Associate Agreement (BAA) * [(1) ]() . Retell AI provides comprehensive support to help healthcare companies navigate HIPAA compliance, including risk assessments, policy development, training, data encryption, and access controls [(2) ]() . To request a BAA, send an email to support@retellai.com with the signer name and email address [(3) ]() . ### Data Storage Settings The
data_storage_setting
field controls how PHI/PII is handled [(4) ]() [(5) ]() : - **`"everything"`**: Stores all data - **`"everything_except_pii"`**: Excludes PII when possible - **`"basic_attributes_only"`**: Stores only metadata For HIPAA compliance,
"everything_except_pii"
is the recommended setting as it automatically redacts sensitive information while preserving operational data . ### What Gets Redacted with "everything_except_pii" Retell's PII Redaction automatically detects and removes sensitive details including [(6) ]() : - Names - Addresses - Dates of birth (DOBs) - Passwords - PINs When PII redaction is enabled, you'll have access to scrubbed versions of transcripts and recordings [(4) ]() [(5) ](
ferences/get-call) : - `scrubbed_transcript_with_tool_calls`: Transcript without PII - `scrubbed_recording_url`: Recording without PII - `scrubbed_recording_multi_channel_url`: Multi-channel recording without PII ### Call Analysis and Dynamic Variables Availability Yes, you can still retrieve call analysis and dynamic variables with
"everything_except_pii"
. The call response includes [(5) ]() : - `call_analysis`: Contains call_summary, user_sentiment, call_successful, and custom_analysis_data - `retell_llm_dynamic_variables`: The dynamic variables passed to the agent - `collected_dynamic_variables`: Variables extracted during the call Post-call analysis fields are populated for connected calls where conversation happened [(7) ]() . Custom post-call analysis fields will not be populated for non-connected calls or calls without conversation . **
​ To learn more, see the sources I considered: [[1] HiPAA Compliance](https://discord.com/channels/1186424376300679209/1384610468043165878) [[2] Retell AI’s Voice Agents: HIPAA Compliance and BAAs | Retell AI](https://www.retellai.com/blog/do-retell-ais-voice-agents-have-hipaa-compliance-and-baas) [[3] BAA for HIPAA Compliance](https://discord.com/channels/1186424376300679209/1328413653992476805) [[4] List Calls](https://docs.retellai.com/api-references/list-calls) [[5] Get Call](https://docs.retellai.com/api-references/get-call) [[6] Secure AI Conversations with Retell AI PII Redaction Tool | Retell AI | Retell AI](https://www.retellai.com/blog/introducing-retell-ai-pii-redaction-data-security-made-easy) [[7] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy I'm working with Retell's chat agent integration and have questions about data storage settings and API access for chat channel agents vs voice channel agents. MAIN QUESTIONS: 1. API ENDPOINTS FOR CHAT AGENTS: When I use the GET /get-agent/{agent_id} endpoint with a chat channel agent ID, I receive an "Invalid agent channel" error. However, the same endpoint works fine for voice channel agents. Question: Is there a different API endpoint specifically for chat channel agents? Or does the /get-agent endpoint only support voice channel agents? 2. LISTING CHAT AGENTS: When I call GET /list-agents, I only see voice channel agents in the response. My chat agent does not appear in this list, even though it exists and is working (I can see chat sessions in the dashboard). Question: How do I list chat channel agents via the API? Is there a separate endpoint or a channel filter parameter I should use? 3. DATA STORAGE SETTINGS FOR CHAT AGENTS: In the Retell dashboard UI: - For voice agents: I can see and modify "Security & Fallback Settings" → "Data Storage Settings" - For chat agents: This settings section does NOT appear in the dashboard UI Question: How do I configure data_storage_setting for chat channel agents? Can I: a) Update it via the PATCH /update-agent/{agent_id} endpoint even though GET doesn't work? b) Is there a different endpoint for updating chat agents? c) Will this setting be added to the dashboard UI for chat agents in the future? 4. ENABLING TRANSCRIPT STORAGE WITH PHI REDACTION: I want to configure my chat agent with: - data_storage_setting: "everything_except_pii" - PHI/PII redaction enabled for healthcare compliance (HIPAA) Question: What is the correct way to enable transcript storage with automatic PHI redaction for chat agents? What fields should I include in the API request? 5. TRANSCRIPT PROCESSING TIMELINE: Question: After a chat session ends, how long does it typically take for transcripts to be processed and appear in the dashboard? - Is it immediate? - 1-5 minutes? - 5-10 minutes? - Longer? 6. TRANSCRIPT RETROACTIVITY: Question: If I change data_storage_setting from "basic_attributes_only" to "everything_except_pii", does this: a) Apply to all future chat sessions only (not retroactive)? b) Also process transcripts for past chat sessions? 7. CHAT CHANNEL VS VOICE CHANNEL AGENTS: Question: What are the key differences between chat channel agents and voice channel agents in terms of: - API endpoint access - Available configuration options - Data storage capabilities - Dashboard UI features CONTEXT: - Integration type: Web chat using REST API (Supabase Edge Functions) - Use case: Medical appointment scheduling - Industry: Healthcare (HIPAA compliance required) - Current observation: Some chat sessions show transcripts, others don't - Goal: Ensure all future chats store transcripts with PHI automatically redacted Please provide specific API endpoints, request body examples, and any documentation links related to managing chat channel agents.
a
Copy code
json
{
  "data_storage_setting": "everything_except_pii"
}
### Answer --- ## 1. API ENDPOINTS FOR CHAT AGENTS The
GET /get-agent/{agent_id}
endpoint and
GET /list-agents
endpoint are documented for retrieving agent information [(1) ]() [(2) ]() . However, based on community reports, these endpoints only return voice channel agents [(3) ]() . When users attempt to use
GET /list-agents
to retrieve chat agents, the API returns an empty array even when chat agents exist . When chat agents are created alongside voice agents, only the voice agent data is returned . There is no separate documented API endpoint specifically for retrieving individual chat agent configurations in the provided sources. --- ## 2. LISTING CHAT AGENTS The
GET /list-agents
endpoint does not return chat agents . A community member confirmed this behavior: they created multiple chat agents, but
GET /list-agents
returned only voice agents . There is no documented filter parameter or separate endpoint for listing chat agents in the official API documentation provided [(1) ]() [(2) ]() . --- ## 3. DATA STORAGE SETTINGS FOR CHAT AGENTS The
data_storage_setting
field is documented in the Create Agent and List Agents API references . This field controls how Retell stores sensitive data (transcripts, recordings, logs) . Valid values are : - `"everything"`: Store all data including transcripts, recordings, and logs - `"everything_except_pii"`: Store data without PII when PII is detected - `"basic_attributes_only"`: Store only basic attributes; no transcripts/recordings/logs **However, there is no documentation confirming whether these settings apply to c
hat agents or how to configure them via API for chat agents specifically.** The documentation does not address: - Whether
PATCH /update-agent/{agent_id}
works for chat agents - A separate endpoint for updating chat agents - Future dashboard UI support for chat agent data storage settings --- ## 4. ENABLING TRANSCRIPT STORAGE WITH PHI REDACTION For HIPAA-compliant healthcare use cases, Retell AI requires an Enterprise plan and a signed *Business Associate Agreement (BAA) * [(4) ]() [(5) ]() [(6) ]() . To request a BAA, email
support@retellai.com
with the signer name and email address [(5) ]() . For data storage with PHI redaction, the recommended setting is
data_storage_setting: "everything_except_pii"
[(1) ]() [(2) ]() . This setting automatically redacts sensitive information including names, addresses, dates of birth, passwords, and PINs [(4) ]() . The documentation does not provide specific guidance on configuring this setting for chat agents or the exact API request body structure for chat agents. For voice agents, you would include this field in the agent creation or update request [(1) ]() [(2) ]() :
ing
data_storage_setting
for chat agents - BAA signing for HIPAA compliance - Clarification on transcript processing and retroactivity Check out these potentially useful sources: [Create Agent]() , [List Agents]() , [Retell AI's Voice Agents: HIPAA Compliance and BAAs]() If you'd like a general answer based on common API patterns, let me know. ---
--- ## 5. TRANSCRIPT PROCESSING TIMELINE The documentation does not specify the processing timeline for chat transcripts after a session ends. --- ## 6. TRANSCRIPT RETROACTIVITY The documentation does not address whether changing
data_storage_setting
applies retroactively to past chat sessions or only to future sessions.
However, for voice agents, one community discussion mentioned that some users retrieve data with the setting off, then use the update call API to remove data from the dashboard after pulling it [(6) ]() . This suggests settings changes are not retroactive. --- ## 7. CHAT CHANNEL VS VOICE CHANNEL AGENTS Based on community reports [(3) ]() : - **API endpoint access**:
GET /list-agents
and
GET /get-agent/{agent_id}
only work for voice agents, not chat agents - **Available configuration options**: Not documented for chat agents specifically - **Data storage capabilities**: Not explicitly documented for chat agents - **Dashboard UI features**: Data storage settings UI is not available for chat agents in the dashboard The official documentation does not provide a comprehensive comparison between chat and voice channel agents. --- ## Summary The available documentation does not fully address chat agent API access, configuration, or data storage management. Key gaps include: - No documented endpoint for retrieving or listing chat agents - No confirmation that
data_storage_setting
applies to chat agents - No guidance on configuring PHI redaction specifically for chat agents - No information on transcript processing timelines or retroactivity I recommend reaching out to Retell AI support at
support@retellai.com
for:
- Confirmation of API endpoints for chat agents - Guidance on configur
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy how much is an enterprise plan?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer Based on the available sources, Retell AI's Enterprise plan uses a tiered credit-based pricing model [(1) ]() . Enterprise Tier One requires purchasing $3,000 in credits each month in advance . These credits are deducted based on each call you make . If your usage exceeds $3,000, additional calls are charged at the same rate . Tier 1 pricing for each component: - API with 11labs voice: $0.084/min (originally $0.100/min) - (Optional) Retell LLM 3.5: $0.016/min (originally $0.020/min) - (Optional) Retell LLM 4.0: $0.200/min - (Optional) Retell Twilio: $0.010/min Concurrent calls: Enterprise Tier One includes 30 concurrent calls across your entire account . For detailed enterprise plan information or to discuss higher tiers, you can: - Fill out the form at: - Email: founders@retellai.com
​ To learn more, see the sources I considered: [[1] enterprise plan](https://discord.com/channels/1186424376300679209/1266048688887955577) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy do you NEED an enterprise level account for hipaa compliance or does signing a BAA with retell do just fine?
a
### Answer --- ### Answer Yes, you need an Enterprise plan to build HIPAA-compliant voice agents with Retell AI [(1) ]() . The Enterprise plan is required in addition to signing a Business Associate Agreement (BAA) . According to the sources, you can build HIPAA-compliant medical voice agents with Retell, but you'll need an Enterprise plan plus a signed BAA . Simply signing a BAA alone is not sufficient—the Enterprise tier is a prerequisite for HIPAA compliance . For healthcare organizations requiring HIPAA compliance, Retell AI supports building HIPAA-compliant voice agents, but you'll need an Enterprise plan and a signed Business Associate Agreement (BAA) [(2) ]() [(3) ]() . To request a BAA, send an email to support@retellai.com with the signer name and email address [(2) ]() . --- **
​ To learn more, see the sources I considered: [[1] HiPAA Compliance](https://discord.com/channels/1186424376300679209/1384610468043165878) [[2] Retell AI’s Voice Agents: HIPAA Compliance and BAAs | Retell AI](https://www.retellai.com/blog/do-retell-ais-voice-agents-have-hipaa-compliance-and-baas) [[3] Automating First Notice-of-Loss Calls: How Retell AI Insurance Agent Cuts Claims Intake Time 53% vs. Legacy IVR (2025 Benchmark)](https://www.retellai.com/resources/retell-ai-insurance-agent-faster-claims-intake) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy why cant i change the basic attributes and everything except pii data settings in chat agentS?
a
### Answer Based on the available documentation, the
data_storage_setting
field is documented for agents in the Create Agent, Update Agent, and List Agents API references [(1) ]() [(2) ]() [(3) ]() . This field controls how Retell stores sensitive data with three valid options:
"everything"
,
"everything_except_pii"
, and
"basic_attributes_only"
. However, the documentation does not explicitly address whether these settings apply to chat channel agents specifically, or explain why the UI might not display these options for chat agents . The API references show this field as part of the agent object structure, but there's no separate documentation distinguishing behavior between voice and chat channel agents . The
data_storage_setting
can be configured when creating or updating an agent via the API [(1) ]() [(2) ]() . For example, when creating an agent, you can include:
Copy code
json
{
  "data_storage_setting": "everything_except_pii"
}
[(1) ]() And when updating an agent using the Update Agent endpoint (
PATCH /update-agent/{agent_id}
) , you can modify this setting [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { agent_name: 'Jarvis' }) ;
console.log(agentResponse.agent_id) ;
The documentation does not explain why the dashboard UI might not show data storage settings for chat agents, or whether there are technical limitations preventing these settings from being modified for chat channel agents specifically [(1) ]() [(2) ]() [(3) ]() . For clarification on chat agent-specific configuration limitations and why the UI doesn't display these options, I recommend contacting Retell AI support at support@retellai.com. Check out these potentially useful sources: [Create Agent]() , [Update Agent]() , [Data Storage Settings - Retell AI]() ---
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] List Agents](https://docs.retellai.com/api-references/list-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
j
@AI Evy I'm using your Web Chat SDK with agent ID: agent_b0f35ce907bd85ac196afdaef5 Issue: - Chat conversations are completing successfully - However, transcripts are empty: "transcript": "" - Data storage setting is: "basic_attributes_only" Questions: 1. How do I programmatically update a WEB CHAT agent's data_storage_setting via API? 2. The /update-agent/{agent_id} endpoint returns "Invalid agent channel" for web chat agents 3. Is there a separate endpoint for web chat agents (e.g., /update-agent-web/)? 4. Or must this be changed through the dashboard only? Current API attempt: PATCH https://api.retellai.com/update-agent/agent_b0f35ce907bd85ac196afdaef5 Response: {"status":"error","message":"Invalid agent channel"} Please provide: - Correct API endpoint for updating web chat agents - Documentation link - Example request body Thank you!
a
### Answer --- Based on the available documentation, the
PATCH /update-agent/{agent_id}
endpoint is documented for updating agents [(1) ]() , and the
data_storage_setting
field is part of the agent configuration [(1) ]() [(2) ]() [(3) ]() . However, the documentation does not explicitly address web chat agents or explain why you're receiving an "Invalid agent channel" error when attempting to update a web chat agent via this endpoint. The standard Update Agent endpoint is:
Copy code
PATCH /update-agent/{agent_id}
[(1) ]() And the
data_storage_setting
field accepts these values [(1) ]() [(2) ]() : - `"everything"`: Store all data including transcripts, recordings, and logs - `"everything_except_pii"`: Store data without PII when PII is detected - `"basic_attributes_only"`: Store only basic attributes; no transcripts/recordings/logs Example using the Retell SDK:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { agent_name: 'Jarvis' }) ;
console.log(agentResponse.agent_id) ;
[(1) ]() --- However, the documentation does **not**: - Confirm whether
/update-agent/{agent_id}
works for web chat agents - Provide a separate endpoint for web chat agents - Explain the "Invalid agent channel" error for web chat agents - Document any channel-specific API differences Since you're encountering an "Invalid agent channel" error specifically with your web chat agent ID (
agent_b0f35ce907bd85ac196afdaef5
) , and the standard agent update endpoint is not working, I recommend contacting Retell AI support at support@retellai.com for: - Confirmation of the correct API endpoint for updating web chat agents - Clarification on whether web chat agents can be updated programmatically via API - Guidance on changing
data_storage_setting
for web chat agents to enable transcript storage Check out these potentially useful sources: [Update Agent]() , [Create Agent]() , [List Agents]() If you'd like a general answer based on common API patterns, let me know. --- **
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] List Agents](https://docs.retellai.com/api-references/list-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Question 1: Cantonese Support Verification Does Retell AI's multilingual mode support Cantonese (zh-HK) with automatic language detection? Our use case: Medical receptionist for Hawaii-based OB/GYN practice serving English, Mandarin, and Cantonese speakers. We see zh-CN (Mandarin) is supported, but Cantonese is not explicitly listed in auto-detection languages. Specific questions: 1. Is zh-HK auto-detected in multilingual mode? 2. If not, can we explicitly set Cantonese via API? 3. Which TTS providers offer the best Cantonese voice quality for medical applications? 4. Should we implement manual language selection ("Press 1 for English, 2 for Mandarin, 3 for Cantonese") or rely on auto-detection? Question 2: Medical Vocabulary for Chinese Does Retell AI's "medical vocabulary setting" work for Chinese languages (Mandarin and Cantonese)? Our needs: - Accurate transcription of Chinese medical terms (產科, 婦科, 懷孕, etc.) - Proper pronunciation of Chinese patient names - Understanding of Chinese anatomical/clinical terminology If not built-in, should we: 1. Use Boosted Keywords exclusively? (Limited to 100 keywords) 2. Provide pronunciation guides in the prompt using pinyin? 3. Include medical term examples in the global prompt? Question 3: Mandarin vs Cantonese Auto-Detection How does Retell AI distinguish between Mandarin (zh-CN) and Cantonese (zh-HK) when both use Chinese characters but are not mutually intelligible? Scenario: - Caller says: "我想預約" (I want to make an appointment) - This phrase is identical in written Mandarin and Cantonese - BUT pronunciation is completely different - Mandarin: "Wǒ xiǎng yùyuē" - Cantonese: "Ngo5 soeng2 jyu6 joek3" Questions: 1. Does auto-detection analyze pronunciation/phonetics or just transcribed text? 2. Should we explicitly ask callers which dialect they speak? 3. What happens if auto-detection chooses wrong dialect? 4. Can the agent switch dialects mid-call if it detects an error? Question 4: Boosted Keywords for Chinese Characters Can Retell AI's Boosted Keywords feature accept Chinese characters, or only romanization (pinyin)? Example keywords we need to boost: - Chinese characters: 王, 李, 張, 懷孕, 產科, 預約 - Pinyin romanization: Wang, Li, Zhang, huaiyun, chanke, yuyue - English equivalents: pregnancy, obstetrics, appointment Which format yields best transcription accuracy for: 1. Chinese patient surnames spoken by native speakers? 2. Medical terms in Mandarin/Cantonese? 3. Code-switching scenarios (mixing English and Chinese)? Question 5: Performance & Best Practices What are best practices for building a trilingual (English/Mandarin/Cantonese) healthcare receptionist on Retell AI? Our requirements: - HIPAA compliance ✓ - Appointment booking with calendar integration - 24/7 availability - Elderly patient demographic (may speak slowly, have accents) - Medical terminology accuracy >95% Specific questions: 1. Should we write the global prompt in English with Chinese examples, or duplicate sections in all three languages? 2. Recommended temperature settings for multilingual medical agents? 3. Any latency optimizations for real-time language detection? 4. Case studies or examples of similar multilingual healthcare implementations? 5. Recommended testing protocol before production deployment?
a
Thanks for the follow-up, @jrok1308. I'll get back to you soon.
### Answer --- ## Question 1: Cantonese Support Verification Based on the available documentation, Retell AI's multilingual support currently covers English, Spanish, French, German, Hindi, Russian, Portuguese, Japanese, Italian, and Dutch (using Nova 3) [(1) ]() . Additionally, the platform supports Romanian, Danish, Finnish, Greek, Indonesian, Norwegian, Slovak, Swedish, Bulgarian, and Hungarian . Cantonese (zh-HK) is not explicitly listed in the documented supported languages [(1) ]() [(2) ]() . The documentation shows you can select the language the agent will understand through the dashboard, and you need to write in the prompt something like "respond in Spanish" for the agent to respond in a specific language [(2) ]() . Recommendations for your use case: 1. Manual language selection may be more reliable than auto-detection for Cantonese, given it's not explicitly listed in supported languages 2. You can explicitly set language via API using the
language
field when creating an agent [(3) ]() 3. For TTS providers, the documentation does not specify which providers offer the best Cantonese voice quality --- ## Question 2: Medical Vocabulary for Chinese The documentation mentions Boosted Keywords as the primary mechanism for improving transcription accuracy of specific terms [(4) ]() [(5) ]() [(2) ]() . Boosted Keywords provide biases toward certain words, making them easier to recognize, with
common use cases including brand names and people's names [(4) ]() . Key points: - Support for up to 100 custom keywords - Boosted Keywords help with domain-specific terms like medical terminology [(5) ]() - The documentation does not explicitly confirm whether the "medical vocabulary setting" works for Chinese languages Recommended approach: 1. Use Boosted Keywords for critical medical terms (within the 100-keyword limit) [(4) ]() [(5) ]() 2. Include medical term examples in the global prompt [(2) ]() 3. Consider using pronunciation guides in your prompts --- ## Question 3: Mandarin vs Cantonese Auto-Detection The documentation does not provide specific details on how Retell AI distinguishes between Mandarin and Cantonese dialects. However, there are relevant insights from community discussions: A user working on a language learning use case noted that they needed bilingual Hindi-English and Spanish-English support, and the transcription became "quite weak for the second language" when selecting one language [(6) ]() . The Retell team response indicated they were evaluating "true multilingual ASR like whisper" and that what was being requested was "code switching within the call" . This suggests: 1. Auto-detection may analyze transcribed text rather than pronunciation/phonetics 2. Explicitly asking callers which dialect they speak may be more reliable 3. The platform may not currently distinguish between mutually unintelligible dialects that share written fo
rms --- ## Question 4: Boosted Keywords for Chinese Characters The documentation states that Boosted Keywords "provides some biases towards certain words, making it easier to get recognized" [(4) ]() [(2) ]() . Common examples include brand names and people's names [(4) ]() . However, the documentation does not specify: - Whether Boosted Keywords accept Chinese characters or only romanization - Which format yields best transcription accuracy for Chinese patient surnames - Best practices for code-switching scenarios From a Discord discussion, one user noted that when prompts were written in German, the agent would sometimes switch from English to German mid-sentence, and the recommendation was to write "prompts in English, an instruction to speak in the other language, and examples in the other language" [(7) ]() . --- ## Question 5: Performance & Best Practices Based on the documentation, here are the relevant best practices for building multilingual agents: Global Prompt Strategy: From community feedback, the recommended approach is to write prompts in English with instructions to speak in the target language, plus examples in that language . This suggests writing your global prompt in English with Chinese examples rather than duplicating sections in all three languages. Speech Settings for Elderly Patients: - **Responsiveness**: Set it lower if you want the agent to respond slower, which can be useful when talking to elderly patients [(4) ]() [(2) ](
com/build/conversation-flow/global-setting) . Reducing responsiveness by 0.1 adds 0.5 seconds of agent wait time - **Interruption Sensitivity**: Set it lower if you want the agent to be more resilient to background speech Boosted Keywords: - Use for medical terminology and patient names (up to 100 keywords) [(4) ]() [(5) ]() [(2) ]() Knowledge Base: - Supply context to agents via documents, URLs, and texts [(4) ]() [(2) ]() HIPAA Compliance: You already have HIPAA compliance, which requires an Enterprise plan and a signed Business Associate Agreement (BAA) [(8) ]() . Testing: The documentation mentions Simulation Testing for both single and multi-prompt agents, allowing you to write user prompts to quickly simulate full conversations and run multiple test cases at once [(1) ]() . --- ## Summary The available documentation does not fully address Cantonese-specific support or detailed multilingual dialect handling. Key gaps include: - No explicit confirmation of Cantonese (zh-HK) support in auto-detection - No specification of how the platform distinguishes between Mandarin and Cantonese - No guidance on Chinese character support in Boosted Keywords - Limited multilingual healthcare implementation examples I recommend contacting Retell AI support at support@retellai.com for: - Confirmation of Cantonese language support and auto-detection capabilities - Guidance on Boosted Keywords format for Chinese cha
racters - Best practices for trilingual healthcare implementations - Case studies or examples of similar deployments Check out these potentially useful sources: [Step 2: Configure the basic settings]() , [Platform Changelogs]() , [Increase transcription accuracy]() If you'd like a general answer based on common multilingual AI patterns, let me know. --- **
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[3] Create Agent](https://docs.retellai.com/api-references/create-agent) [[4] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[5] Increase transcription accuracy](https://docs.retellai.com/reliability/wrong-transcript) [[6] Multilingual or Bilingual Transcription](https://discord.com/channels/1186424376300679209/1230269781161279508) [[7] Discord message from @kiexperten_60638 on 2025-05-05](https://discord.com/channels/1186424376300679209/1294891368505937952/1368883583053201518) [[8] How Multilingual Voice AI Drives Global Sales Growth | Retell AI | Retell AI](https://www.retellai.com/blog/multilingual-voice-ai-on-global-sales-growth) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.