jrok1308
11/08/2025, 12:13 AMAI Evy
11/08/2025, 12:14 AMAI Evy
11/08/2025, 12:14 AMjson
{
"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.AI Evy
11/08/2025, 12:14 AMAI Evy
11/08/2025, 12:14 AMjrok1308
11/08/2025, 12:14 AMAI Evy
11/08/2025, 12:14 AMAI Evy
11/08/2025, 12:15 AMjson
{
"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) ]() .AI Evy
11/08/2025, 12:15 AMAI Evy
11/08/2025, 12:15 AMjrok1308
11/08/2025, 12:16 AMAI Evy
11/08/2025, 12:16 AMAI Evy
11/08/2025, 12:16 AMAI Evy
11/08/2025, 12:16 AMAI Evy
11/08/2025, 12:16 AMAI Evy
11/08/2025, 12:23 AMjrok1308
11/08/2025, 12:23 AMAI Evy
11/08/2025, 12:24 AMAI Evy
11/08/2025, 12:24 AMPOST <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]()AI Evy
11/08/2025, 12:24 AMjrok1308
11/08/2025, 1:01 AMcheck_availability.available == true go to Node 7, else go to Node 8)
What we've tried:
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 EvyAI Evy
11/08/2025, 1:01 AMAI Evy
11/08/2025, 1:01 AMjavascript
{
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) ]() .AI Evy
11/08/2025, 1:01 AMAI Evy
11/08/2025, 1:01 AMjrok1308
11/08/2025, 1:02 AMcheck_availability, Node 12 should call verify_patient_identity)
Current approach:
Put function call instruction in the node's text:
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?AI Evy
11/08/2025, 1:02 AMAI Evy
11/08/2025, 1:02 AMAI Evy
11/08/2025, 1:02 AMAI Evy
11/08/2025, 1:02 AMAI Evy
11/08/2025, 1:02 AMjrok1308
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMjrok1308
11/08/2025, 1:03 AMappointment_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?AI Evy
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMAI Evy
11/08/2025, 1:03 AMjrok1308
11/08/2025, 1:09 AMtype: '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?)AI Evy
11/08/2025, 1:09 AMAI Evy
11/08/2025, 1:09 AMAI Evy
11/08/2025, 1:09 AMAI Evy
11/08/2025, 1:09 AMjrok1308
11/08/2025, 1:09 AMcheck_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}})
---AI Evy
11/08/2025, 1:09 AMAI Evy
11/08/2025, 1:10 AMAI Evy
11/08/2025, 1:10 AMAI Evy
11/08/2025, 1:10 AMjrok1308
11/08/2025, 1:10 AMAI Evy
11/08/2025, 1:10 AMAI Evy
11/08/2025, 1:11 AMAI Evy
11/08/2025, 1:11 AMAI Evy
11/08/2025, 1:11 AMAI Evy
11/08/2025, 1:11 AMjrok1308
11/08/2025, 1:12 AMAI Evy
11/08/2025, 1:12 AMAI Evy
11/08/2025, 1:12 AMAI Evy
11/08/2025, 1:12 AMAI Evy
11/08/2025, 1:12 AMAI Evy
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMjrok1308
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMjrok1308
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMAI Evy
11/08/2025, 1:13 AMjrok1308
11/08/2025, 1:15 AMAI Evy
11/08/2025, 1:15 AMAI Evy
11/08/2025, 1:16 AMjson
{
"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) ]()AI Evy
11/08/2025, 1:16 AMAI Evy
11/08/2025, 1:16 AMjrok1308
11/08/2025, 1:44 AMAI Evy
11/08/2025, 1:44 AMAI Evy
11/08/2025, 1:44 AMjson
{
"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 .AI Evy
11/08/2025, 1:44 AMAI Evy
11/08/2025, 1:44 AMjrok1308
11/08/2025, 1:48 AMAI Evy
11/08/2025, 1:48 AMAI Evy
11/08/2025, 1:48 AMAI Evy
11/08/2025, 1:48 AMjson
{
"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.AI Evy
11/08/2025, 1:48 AMjrok1308
11/08/2025, 2:03 AMAI Evy
11/08/2025, 2:03 AMAI Evy
11/08/2025, 2:03 AMAI Evy
11/08/2025, 2:03 AMjson
{
"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.AI Evy
11/08/2025, 2:03 AMAI Evy
11/08/2025, 2:03 AMjrok1308
11/08/2025, 10:13 PMAI Evy
11/08/2025, 10:13 PMAI Evy
11/08/2025, 10:13 PMAI Evy
11/08/2025, 10:14 PMAI Evy
11/08/2025, 10:14 PMjrok1308
11/08/2025, 10:37 PMAI Evy
11/08/2025, 10:37 PMjrok1308
11/08/2025, 10:38 PMAI Evy
11/08/2025, 10:38 PMAI Evy
11/08/2025, 10:38 PM- {{appointment_date}} existsAI Evy
11/08/2025, 10:38 PMAI Evy
11/08/2025, 10:38 PMAI Evy
11/08/2025, 10:38 PMAI Evy
11/08/2025, 10:38 PM{{appointment_date}} exists
To check if it is not populated:
{{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]()AI Evy
11/08/2025, 10:38 PMAI Evy
11/08/2025, 10:38 PMjrok1308
11/08/2025, 11:36 PM{{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.AI Evy
11/08/2025, 11:36 PMAI Evy
11/08/2025, 11:36 PM{{variable_name}} exists
So for appointment_date:
{{appointment_date}} exists
This will evaluate to true if the variable is defined and has a value. To check if it’s not set:
{{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:
- {{appointment_date}} exists
- {{appointment_time}} existsAI Evy
11/08/2025, 11:36 PM{{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
- TransitionAI Evy
11/08/2025, 11:36 PMAI Evy
11/08/2025, 11:36 PMAI Evy
11/08/2025, 11:36 PMjrok1308
11/09/2025, 12:50 AM{{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:
**"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:
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!AI Evy
11/09/2025, 12:50 AMAI Evy
11/09/2025, 12:51 AM{{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]()AI Evy
11/09/2025, 12:51 AMcurrent_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 thatAI Evy
11/09/2025, 12:51 AMcurrent_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.
---
####AI Evy
11/09/2025, 12:51 AMAI Evy
11/09/2025, 12:51 AMjrok1308
11/09/2025, 12:58 AMexists operator, but it's not working as expected.
Setup:
I have an Extract Dynamic Variables node (Node 2) that tries to extract multiple variables:
- appointment_date
- appointment_time
- visit_category
- detailed_reason
Later in the flow, Node 9 checks if all three exist before skipping to availability check:
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:
{{visit_category}} exists AND {{visit_category}} != ""
Option B:
{{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:
{{visit_category}} != ""
Instead of:
{{visit_category}} exists
Please confirm this explicitly so I can update all my skip logic accordingly.
Thank you!AI Evy
11/09/2025, 12:58 AMAI Evy
11/09/2025, 12:59 AM{{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:
{{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:
{{visit_category}} exists
{{visit_category}} != ""AI Evy
11/09/2025, 12:59 AMALL .
### 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]()AI Evy
11/09/2025, 12:59 AMAI Evy
11/09/2025, 12:59 AMjrok1308
11/09/2025, 8:31 PMexists operator, but it's not working as expected.
Setup:
I have an Extract Dynamic Variables node (Node 2) that tries to extract multiple variables:
- appointment_date
- appointment_time
- visit_category
- detailed_reason
Later in the flow, Node 9 checks if all three exist before skipping to availability check:
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:
{{visit_category}} exists AND {{visit_category}} != ""
Option B:
{{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:
{{visit_category}} != ""
Instead of:
{{visit_category}} exists
Please confirm this explicitly so I can update all my skip logic accordingly.
Thank you!AI Evy
11/09/2025, 8:31 PMAI Evy
11/09/2025, 8:32 PM{{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 vAI Evy
11/09/2025, 8:32 PMAI Evy
11/09/2025, 8:32 PM{{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:
{{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]()AI Evy
11/09/2025, 8:32 PMAI Evy
11/09/2025, 8:32 PMAI Evy
11/09/2025, 8:32 PMAI Evy
11/09/2025, 8:33 PMexists 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`:
{{visit_category}} exists
{{visit_category}} != ""AI Evy
11/09/2025, 8:33 PMexists 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]()AI Evy
11/09/2025, 8:33 PMAI Evy
11/09/2025, 8:33 PMjrok1308
11/09/2025, 9:05 PMAI Evy
11/09/2025, 9:05 PMAI Evy
11/09/2025, 9:06 PMAI Evy
11/09/2025, 9:06 PMAI Evy
11/09/2025, 9:06 PMjrok1308
11/09/2025, 9:06 PMAI Evy
11/09/2025, 9:06 PMAI Evy
11/09/2025, 9:06 PMjson
"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:
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]()AI Evy
11/09/2025, 9:06 PMAI Evy
11/09/2025, 9:06 PMjrok1308
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMjrok1308
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMAI Evy
11/09/2025, 10:26 PMjrok1308
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PM{{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 .
---jrok1308
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PMAI Evy
11/09/2025, 10:28 PMjrok1308
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PM{{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 criticalAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMjrok1308
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:29 PMAI Evy
11/09/2025, 10:33 PMAI Evy
11/09/2025, 10:33 PMjrok1308
11/09/2025, 11:53 PMAI Evy
11/09/2025, 11:53 PMAI Evy
11/09/2025, 11:54 PMAI Evy
11/09/2025, 11:54 PMAI Evy
11/09/2025, 11:54 PMjrok1308
11/10/2025, 12:19 AMAI Evy
11/10/2025, 12:19 AMAI Evy
11/10/2025, 12:19 AMAI Evy
11/10/2025, 12:19 AMAI Evy
11/10/2025, 12:19 AMjrok1308
11/10/2025, 10:48 PMAI Evy
11/10/2025, 10:48 PMAI Evy
11/10/2025, 10:49 PMAI Evy
11/10/2025, 10:49 PMAI Evy
11/10/2025, 10:49 PMjrok1308
11/10/2025, 10:49 PMjrok1308
11/10/2025, 10:49 PMAI Evy
11/10/2025, 10:49 PMAI Evy
11/10/2025, 10:49 PMAI Evy
11/10/2025, 10:49 PMAI Evy
11/10/2025, 10:50 PMjrok1308
11/10/2025, 10:50 PMAI Evy
11/10/2025, 10:50 PMAI Evy
11/10/2025, 10:51 PMAI Evy
11/10/2025, 10:51 PMAI Evy
11/10/2025, 10:51 PMjrok1308
11/10/2025, 11:04 PMAI Evy
11/10/2025, 11:04 PMAI Evy
11/10/2025, 11:05 PMjavascript
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 .AI Evy
11/10/2025, 11:05 PMAI Evy
11/10/2025, 11:05 PMjrok1308
11/10/2025, 11:07 PMAI Evy
11/10/2025, 11:07 PMAI Evy
11/10/2025, 11:08 PM"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:
json
{
"type": "equation",
"equations": [
{ "left": "1", "operator": "==", "right": "1" }
]
}AI Evy
11/10/2025, 11:08 PMtype
- 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:
json
{
"id": "edge_1",
"transition_condition": {
"type": "prompt",
"prompt": "Customer wants to book appointment"
},
"destination_node_id": "book_appointment"
}AI Evy
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMjrok1308
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMAI Evy
11/10/2025, 11:08 PMjrok1308
11/10/2025, 11:10 PMAI Evy
11/10/2025, 11:10 PMAI Evy
11/10/2025, 11:11 PMAI Evy
11/10/2025, 11:11 PMjavascript
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) ]() .AI Evy
11/10/2025, 11:11 PMAI Evy
11/10/2025, 11:11 PMjrok1308
11/18/2025, 1:18 AMjrok1308
11/18/2025, 11:08 PMAI Evy
11/18/2025, 11:08 PMAI Evy
11/18/2025, 11:09 PMdata_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) ](AI Evy
11/18/2025, 11:09 PM"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 .
**AI Evy
11/18/2025, 11:09 PMAI Evy
11/18/2025, 11:09 PMAI Evy
11/19/2025, 12:28 AMjrok1308
11/19/2025, 12:28 AMAI Evy
11/19/2025, 12:29 AMjson
{
"data_storage_setting": "everything_except_pii"
}AI Evy
11/19/2025, 12:29 AMGET /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 cAI Evy
11/19/2025, 12:29 AMPATCH /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) ]() :AI Evy
11/19/2025, 12:29 AMdata_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.
---AI Evy
11/19/2025, 12:29 AMAI Evy
11/19/2025, 12:29 AMdata_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 configurAI Evy
11/19/2025, 12:29 AMjrok1308
11/19/2025, 12:38 AMAI Evy
11/19/2025, 12:38 AMAI Evy
11/19/2025, 12:39 AMAI Evy
11/19/2025, 12:39 AMAI Evy
11/19/2025, 12:39 AMAI Evy
11/19/2025, 12:40 AMjrok1308
11/19/2025, 12:40 AMAI Evy
11/19/2025, 12:40 AMAI Evy
11/19/2025, 12:40 AMAI Evy
11/19/2025, 12:40 AMAI Evy
11/20/2025, 1:14 AMjrok1308
11/20/2025, 1:15 AMAI Evy
11/20/2025, 1:15 AMdata_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:
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) ]() :
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) ;AI Evy
11/20/2025, 1:15 AMAI Evy
11/20/2025, 1:15 AMAI Evy
11/20/2025, 1:15 AMAI Evy
11/20/2025, 1:17 AMjrok1308
11/20/2025, 1:17 AMAI Evy
11/20/2025, 1:17 AMPATCH /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:
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:
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) ;AI Evy
11/20/2025, 1:17 AM/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.
---
**AI Evy
11/20/2025, 1:17 AMAI Evy
11/20/2025, 1:17 AMjrok1308
11/20/2025, 5:33 AMAI Evy
11/20/2025, 5:33 AMAI Evy
11/20/2025, 5:34 AMlanguage 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, withAI Evy
11/20/2025, 5:34 AMAI Evy
11/20/2025, 5:34 AMAI Evy
11/20/2025, 5:34 AMAI Evy
11/20/2025, 5:34 AMAI Evy
11/20/2025, 5:34 AMAI Evy
11/20/2025, 5:34 AM