https://retellai.com/?utm_source=discord&utm_medium=seo logo
- I am building the Outbound Call AI Voice Agent U...
# ❓・ai-evy-support
j
@AI Evy - I am building the Outbound Call AI Voice Agent Using Conversational flow. FLow is working fine but during Confirming the status for mutliple items, I am observing very huge latency between the vendor and agent conversation. Approx 10-15 seconds silent call goes once vendor reply back for question ask related to item by Agent. Why this is happening? Even i am using GPT 4.0 (fast) and GPT 4.1 (fast) in this conversational flow? This is the only point where my agent lacks allot.
a
Thanks for tagging me @jcloe_80373. I'll look through relevant sources and get back to you shortly.
### Answer The 10-15 second latency you're experiencing during status confirmations in your Conversation Flow agent is concerning, especially when using GPT-4.1 models which are designed for reduced latency [(1) ]() . Based on the available documentation, GPT-4.1 provides "highly natural conversation flow with reduced latency" and is optimized for faster exchanges. The platform typically achieves sub-800ms end-to-end latency according to general Retell AI capabilities. For your specific latency issue during multi-item status confirmations, there are several potential factors to investigate: Agent Configuration Settings: The
responsiveness
parameter controls how responsive your agent is, with values ranging from [0,1] [(2) ]() . Lower values mean less responsive agents (wait more, respond slower) , while higher values mean faster exchanges . Ensure this is set appropriately for your use case. Conversation Flow Structure: Since you're using Conversation Flow, the latency might be related to complex node transitions or function calls during the status confirmation process [(3) ]() . Each node in your flow can execute specific functions, and if these involve external API calls or database queries, they could contribute to the delay . Model Processing: While GPT-4.1 offers improved efficiency and lower latency compute usage [(1) ]() , processing multiple items simultaneously might still cause delays depending on the complexity of your prompts and the amount of context being processed. I don't have specific troubleshooting steps for this exact latency issue in the available source
s. For detailed debugging of your Conversation Flow setup, I'd recommend: Visit [Contact Sales]() or [) for technical support. Would you like a general answer based on my knowledge about potential causes and solutions for this type of latency issue?
​ To learn more, see the sources I considered: [[1] Smarter AI Phone Calls with ChatGPT-4.1 | Retell AI | Retell AI](https://www.retellai.com/blog/chatgpt-4-1-ai-phone-calling-retell) [[2] Get Agent](https://docs.retellai.com/api-references/get-agent) [[3] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I call functional api once only, when agent get status for all work items. Now if i am looking at responsiveness. This is set to 0.3.
@AI Evy - I call functional api once only, when agent get status for all work items. Now if i am looking at responsiveness. This is set to 0.3.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer The issue you're experiencing might be related to your
responsiveness
setting of 0.3, which is quite low and could be contributing to the latency. According to the documentation,
responsiveness
controls how responsive the agent is, with values ranging from [0,1] [(1) ]() [(2) ]() [(3) ]() . Lower values mean less responsive agents (wait more, respond slower) , while higher values mean faster exchanges (respond when it can) . If unset, the default value 1 will apply . With your current setting of 0.3, your agent is configured to be much less responsive than the default, which could explain the 10-15 second delays you're experiencing after the vendor replies. This setting essentially makes the agent wait longer before responding. Additionally, there was a known issue documented where Conversation Flow agents could potentially stay silent after function nodes [(4) ]() . This occurred when a function and response happened at the same time, due to a message order issue before feeding to the LLM . While this specific issue was resolved, it suggests that timing around function calls in Conversation Flow can be sensitive. To potentially resolve your latency issue, consider: 1. Increasing the
responsiveness
value
- Try setting it closer to 1.0 (the default) for faster exchanges [(1) ]() [(2) ]() [(3) ]() 2. Testing different responsiveness values between 0.5-1.0 to find the optimal balance for your use case Since yo
u mentioned the latency specifically occurs during status confirmation for multiple items and you're only calling the functional API once, the low responsiveness setting is likely the primary culprit for the delays.
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[4] Conversation Flow agent potentially stay silent after function node](https://retell.discourse.group/t/conversation-flow-agent-potentially-stay-silent-after-function-node/135) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy - In my Oubound Call Voice agent, I am using conversational flow with mutliple node, Here in this flow i am using different LLM GPT 4.0 - Fast model on each node, Now my question is Do i need to give prompt on every node to manage the state of variables. Because At node where Agent ask the question to user related to Item status. and current index increase. And once get the status then move to next node where I am also using GPT 4.0 LLM model?
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer Based on the Retell AI documentation, you don't need to manage state variables manually in each node's prompt when using Conversation Flow [(1) ]() . The system handles variable state management automatically across nodes. In Conversation Flow, you can use default dynamic variables that are accessible throughout the entire flow [(2) ]() . These variables can be referenced across all nodes without needing to explicitly pass them in each node's prompt .
Copy code
javascript
"default_dynamic_variables": {
  "company_name": "Retell Inc",
  "support_hours": "9 AM - 5 PM"
}
The key benefits of Conversation Flow for your use case are [(1) ]() : - Each node focuses on one specific task - **State management**: Tracking multiple variables throughout the conversation - More predictable agent behavior For your specific scenario where you're tracking item status and current index, the Conversation Flow framework automatically maintains context between nodes . When you transition from the node where the agent asks about item status to the next node, the system preserves the conversation state and any dynamic variables that were updated . You can also configure different LLM models per node using the
model_choice
parameter [(3) ]() , which you're already doing with GPT-4.0 Fast on each node . The recommended approach is to define your variables once at the flow level and let the system handle state management automatically, rather than trying to manage state through individual node prompts [(2) ]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[3] 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 to set up the retell AI voice agent Outbound call for United state region? How many regions do we have in retell AI voice agent set or for twilio? I assume this would be the key factor for latency.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer ### Answer You're absolutely correct that region setup can be a key factor for latency. Based on the available documentation, Retell AI supports outbound calling in the US region, and you can set this up through their platform or by integrating with Twilio. For Retell AI Direct Setup: Retell AI provides outbound calling capabilities for the United States [(1) ]() . The platform offers a pay-as-you-go model with no platform fees, charging $0.07+ per minute for AI Voice Agents . You can purchase phone numbers directly from Retell AI for outbound campaigns [(2) ]() . For Twilio Integration: Retell AI supports seamless integration with Twilio telephony systems [(3) ]() . When using Twilio, you can configure your setup to use localized termination URIs near your region to reduce latency [(4) ]() . For international dialing setup, you can search "geo" to find the "Voice Geographic Permissions" setting in Twilio . Latency Optimization: The documentation confirms that network architecture optimization is crucial for reducing latency [(5) ]() . Key technical drivers for optimizing fast voice-to-voice response times include network architecture, AI model performance, and voice processing logic . Using localized infrastructure helps minimize network-level delays. Regional Considerations: For production deployments, implementing edge computing to reduce geographic latency is recommended . Rete
ll AI consistently delivers responses within their target 800ms range, demonstrating the platform's focus on optimized voice processing . I don't have specific information about the exact number of regions available in Retell AI or detailed regional configuration steps in the available sources. For comprehensive regional setup guidance and specific region availability: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge about regional setup best practices for voice AI systems?
​ To learn more, see the sources I considered: [[1] Cost Model Deep-Dive: Running 10,000 Outbound AI Phone Calls per Day in the US (Retell vs Twilio vs Dialpad)](https://www.retellai.com/resources/outbound-ai-caller-cost-breakdown) [[2] AI Phone Numbers: How to Buy & Set Up | Retell AI](https://www.retellai.com/blog/how-to-buy-an-ai-phone-number-a-guide-on-your-options-and-providers) [[3] Retell AI vs. Bland AI: Best Voice Agent? | Retell AI](https://www.retellai.com/blog/retell-ai-vs-bland-ai-choose-the-right-voice-agent-for-your-business) [[4] I’m trying to use a toll-free number (connected from Twilio through a SIP trunk)](https://retell.discourse.group/t/i-m-trying-to-use-a-toll-free-number-connected-from-twilio-through-a-sip-trunk/127) [[5] Sub-Second Latency Showdown: Retell AI vs. Synthflow vs. Twilio Voice Assistants (2025 Benchmarks)](https://www.retellai.com/resources/sub-second-latency-voice-assistants-benchmarks) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy -> How i can reduce the payload data for post request? Now In my request I have everything included in my POST request which i receive on my N8N Node. How i can pass only required captured information? In my node where i capture the information. this is the format:
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer When Retell AI sends a request to your custom function endpoint (like your N8N node) , the request body includes the function name, call object, and arguments [(1) ]() . The call object contains extensive information including real-time transcript up to the time the request is sent . To reduce the payload and pass only required captured information to your N8N node, you should use response variables in your Custom Function configuration . Set Response Variables to Extract Only What You Need: In your Custom Function node configuration, you can extract specific values from the API response and save them as dynamic variables for later use . This allows you to capture only the information you need rather than receiving the entire payload. For example, if your API returns:
Copy code
json
{
  "properties": {
    "user": {
      "name": "John Doe",
      "age": 26
    }
  }
}
You can configure response variables to extract only
user.name
and save it as
{{user_name}}
for use later in the conversation . This way, instead of processing the entire response payload, you're extracting and storing only the specific data points you need. Additional Optimization Options: 1. **Query Parameters**: You can define query parameters with static or dynamic variable values that get appended to your endpoint URL . This allows you to pass specific data through the URL rather than in the request body. 2. **Request Headers**: You can define custom headers with static or dynamic variable values . This provides another way to pass specific information without bloating the request body. 3. **Parameter Schema**: For POST, PATCH, and PUT requests, define your parameters using JSON schema format to specify exactly which fields should be included . The key is to structure your Custom Function to extract and pass forward only the specific data points you need, rather than carrying the entire call object through your workflow.
​ 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
Is there any limitation for input payload that we pass to LLM? Does huge payload pass during initiate the call may cause latency?
@AI Evy -> Is there any limitation for input payload that we pass to LLM? Does huge payload pass during initiate the call may cause latency?
a
### Answer ### Answer Yes, large input payloads can significantly impact latency in your Retell AI voice agent. Latency Impact: Latency is a significant challenge in voice agent development [(1) ]() . Achieving a round-trip response time of less than half a second can be difficult, especially when the agent needs to perform intricate logic or make multiple LLM calls . The more data you pass to the LLM, the longer it takes to process, which directly impacts response times. LLM Selection and Context: The LLM you choose determines how smart, fast, and relevant your AI voice agent sounds, with different models ranging in latency, context retention, and ability to handle specialized vocabulary [(2) ]() . Choosing an LLM that balances context length with responsiveness, especially for support or outbound sales, reduces latency issues that would otherwise end up hurting call operations . Best Practices for Reducing Payload Size: Based on the thread context and general Retell AI architecture, when you initiate a call with a large payload (such as extensive dynamic variables or context) , the LLM needs to process all that information before generating responses. This processing time adds to your overall latency. To minimize latency: 1. Keep initial payloads lean - Only pass essential information needed for the call initiation 2. Use dynamic variables strategically - Load data on-demand through custom functions rather than passing everything upfront 3. Optimize context - The LLM processes the entire context window, so unnecessary data in your initial payload increases processing time I don't have specific documentation on exact payload size limits for Retell AI's LLM input in the available sources. F
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
or detailed information about payload limitations and optimization strategies specific to your use case: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge about LLM token limits and payload optimization best practices? ---
​ To learn more, see the sources I considered: [[1] Troubleshooting AI Voice Agent Issues | Retell AI](https://www.retellai.com/blog/troubleshooting-common-issues-in-voice-agent-development) [[2] 2025 B2B Guide to AI Phone Calls & Voice Agents | Retell AI | Retell AI](https://www.retellai.com/blog/b2b-guide-to-ai-phone-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy -> I have total 17 work order items, and pass all in payload, but only capture status for 14 work orders? Why this is happened.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer --- ### Answer The issue where your agent only captures 14 out of 17 work order items likely stems from LLM context limitations and prompt token limits. LLM Prompt Token Limit: The LLM prompt token limit is set to 32,768 tokens [(1) ]() . If your payload with 17 work order items exceeds this limit or approaches it, the LLM may truncate or fail to process all items, resulting in incomplete data capture. Large Payload Impact: As discussed earlier, passing large payloads can cause processing issues. When you pass all 17 work order items in the initial payload, the LLM needs to process this entire context. If the combined size of your prompt instructions, conversation history, and the 17-item payload approaches or exceeds the token limit, the model may not be able to process all items effectively. Debugging Recommendations: Based on the Conversation Flow debug guide, when your agent isn't following instructions within a node, you should [(2) ]() : 1. Split the node into multiple nodes - Instead of processing all 17 items in one node, consider breaking this into smaller chunks 2. Change the node model - If instructions are concise but the agent struggles, try using a more capable LLM model for this node 3. Adjust the LLM temperature - If responses are inconsistent, try adjusting the LLM temperature Recommended Solution: Instead of passing all 17 work order items in the initial payload, consider: 1. Batch Processing - Process items in smaller groups (e.g., 5-7 items at a time) across multiple conversation nodes 2. Load Data On-Demand - Use custom functions to fetch work order details only when needed, rather than loading everything upfront 3. Response Variables - Use response variables in your Custom
Function configuration to extract and store only specific values from API responses, rather than processing entire payloads [(3) ]() I don't have specific documentation about the exact cause of missing 3 work orders in your scenario. For detailed troubleshooting of this specific issue: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge about handling large datasets in conversational AI systems? ---
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) [[3] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy -> But how much the Size of the input payload send to LLM ? Any numbers?
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available documentation, here are the specific token limits for Retell AI: LLM Prompt Token Limit: The LLM prompt token limit is 32,768 tokens [(1) ]() . This limit applies to the combined size of your prompt, conversation history, and any dynamic variables or context you pass to the LLM. Retell LLM Specific Limit: For the Retell LLM specifically, there's a maximum token length limit of 8,192 tokens . For multi-state prompts, this includes the longest state plus the general prompt . Context Size Discussion: According to a community discussion, using over 33,000 tokens can significantly reduce stability, causing the LLM to become confused and respond inaccurately [(2) ]() . The engineers recommend that prompt size should generally remain below 8,000 tokens to ensure optimal performance . Larger prompts also increase latency and costs . For Your 17 Work Order Items: Given that you're passing 17 work order items and only capturing 14, you're likely approaching or exceeding these token limits. The exact token count depends on: - The size of each work order item's data - Your prompt instructions - Conversation history - Dynamic variables To determine your actual payload size, you'd need to count the tokens in your complete prompt. I don't have specific documentation about exact payload size calculations or monitoring tools in the available sources. For detailed token counting tools and optimization strategies specific to your use case: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge about token counting and payload optimization strategies? ---
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] Prompt exceeds the limit of 32768 tokens, please contact support if you need longer context.](https://discord.com/channels/1186424376300679209/1432544872421789789) ​
j
@AI Evy -> Calculate the total token + payload tokens = 12970 According to documentation mentioned 32000 Then why it skipp the information and capture only 14 items data, i am passing 17 items in total.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer Based on your calculation of 12,970 tokens (well below the 32,768 token limit [(1) ]() [(2) ]() ) , the issue likely isn't the overall token limit but rather how the LLM processes and retains information during the conversation. Potential Causes for Missing 3 Items: 1. LLM Context Window Management - Even though you're within the token limit, LLMs can struggle with maintaining attention across long lists of items. The model may lose focus on items toward the end of a long payload, especially during multi-turn conversations where the context grows with each exchange. 2. Conversation Flow Node Processing - In Conversation Flow, each node processes information independently. If your status capture happens across multiple turns or nodes, the conversation history grows with each exchange, potentially pushing earlier items out of the effective context window. 3. Model-Specific Limitations - Different models handle long-context scenarios differently. Even GPT-4.1 (fast) , while optimized for speed, may have practical limitations in tracking multiple discrete items through a conversation. Recommended Solutions: 1. Batch Processing Approach - Instead of processing all 17 items in one pass, break them into smaller batches (e.g., 5-6 items per batch) . This ensures the LLM can focus on a manageable subset at a time. 2. Structured Data Capture - Use Custom Functions with explicit response variables to capture each item's status individually, rather than relying on the LLM to track all items in its context [(3) ]() [(4) ]() . 3. Prompt Optimization - According to community discussions, even though the technical limit is 32,768 toke
ns, prompts should ideally stay below 8,000 tokens for optimal performance and stability [(5) ]() [(6) ]() . While your 12,970 tokens is within the hard limit, it may be affecting the model's ability to process all items reliably. 4. Test with Different Models - Try testing with different LLM models in your Conversation Flow nodes to see if one handles the full 17-item payload more reliably [(3) ]() [(4) ]() . The token limit isn't the issue here—it's more about how effectively the LLM can process and retain all 17 items during the conversation flow. Breaking your workflow into smaller, more manageable chunks will likely resolve the missing items issue.
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] Understand concurrency & limits](https://docs.retellai.com/deploy/concurrency) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) [[4] List Retell LLMs](https://docs.retellai.com/api-references/list-retell-llms) [[5] Prompt exceeds the limit of 32768 tokens, please contact support if you need longer context.](https://discord.com/channels/1186424376300679209/1432544872421789789) [[6] Discord message from @sanava.ai on 2025-07-24](https://discord.com/channels/1186424376300679209/1186462578310910112/1398030646735278140) ​
j
@AI Evy -> I am also analyse the Payload tokens - 6769 and approx 10000 hard prompt tokens provide to LLM as prompt (instructions).
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Prompt exceeds the limit of 32768 tokens, please contact support if you need longer context.](https://discord.com/channels/1186424376300679209/1432544872421789789) [[2] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) ​
### Answer Your analysis shows 6,769 payload tokens + ~10,000 prompt tokens = ~16,769 total tokens, which is well within the 32,768 token limit [(1) ]() . However, this doesn't explain why you're only capturing 14 out of 17 items. The Real Issue - Prompt Size Best Practices: According to the community discussion, while the technical limit is 32,768 tokens, prompts should generally remain below 8,000 tokens to ensure optimal performance . Using over 33,000 tokens can significantly reduce stability, causing the LLM to become confused and respond inaccurately . Larger prompts also increase latency and costs . Your 10,000-token prompt instruction is above the recommended 8,000-token threshold, which could be causing the LLM to struggle with processing all 17 items reliably. Recommended Solutions: 1. Reduce Your Prompt Size - The Prompt Engineering Guide emphasizes structuring prompts into clear sections [(2) ]() . Break your 10,000-token prompt into more concise instructions focused on specific tasks . 2. Use Conversation Flow Architecture - When handling complex logic or multiple tools, Conversation Flow agents are recommended over trying to manage everything in a single prompt . Each node focuses on one specific task, making state management easier and behavior more predictable . 3. Explicit Tool Calling Instructions - Define clear triggers for when tools should be called, rather than relying on lengthy prompt instructions . This reduces prompt size while improving reliability. 4. Batch Processing - Instead of processing all 17 items with one massive prompt, split the work across multiple Conversation Flow nodes, each with smaller, focused prompts. The issue isn't the token limit itself—it's that you
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r prompt size exceeds the recommended best practice threshold, which affects the LLM's ability to reliably process all items in your payload.
j
@AI Evy -> Only the issue I am facing is Delay when user respond and Voice agent took 3-4 seconds to speak? I build the Voice Agent using Conversation flow with multiple node? How i can manage that?
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer --- ### Answer A 3-4 second delay between user response and agent speech is significantly above acceptable latency thresholds and indicates a serious performance issue. Production voice AI agents typically aim for 800ms or lower latency to maintain conversational flow [(1) ]() . Retell AI consistently delivers responses within their target 800ms range . Root Causes Based on Your Thread Context: Given your earlier analysis showing ~16,769 total tokens (6,769 payload + 10,000 prompt tokens) , combined with processing 17 work order items across multiple Conversation Flow nodes, several factors are contributing to this latency: 1. Oversized Prompts - Your 10,000-token prompt instructions exceed the recommended 8,000-token threshold for optimal performance [(2) ]() . Larger prompts increase latency and costs . 2. Large Payload Processing - Achieving a round-trip response time of less than half a second can be difficult, especially when the agent needs to perform intricate logic or make multiple LLM calls [(3) ]() . Your 17-item payload requires significant processing time. 3. LLM Model Selection - The LLM you choose determines how smart, fast, and relevant your AI voice agent sounds, with different models ranging in latency [(2) ]() . Immediate Solutions: 1. Change to a Faster LLM Use a more efficient language model to reduce response time and improve performance [(3) ]() . In your Conversation Flow nodes, you can choose a different model using the LLM setting [
(4) ]() . 2. Change to a Faster TTS Implement a faster text-to-speech system for quicker audio output and smoother conversations [(3) ]() . 3. Reduce Prompt Size Break your 10,000-token prompt into more concise instructions focused on specific tasks [(2) ]() . The Prompt Engineering Guide emphasizes structuring prompts into clear sections :
Copy code
///## Identity
You are a friendly AI assistant for [Company Name].
Your role is to [specific purpose].
You have expertise in [relevant domains].
///## Style Guardrails
Be concise: Keep responses under 2 sentences unless explaining complex topics.
Be conversational: Use natural language, contractions, and acknowledge what the caller says.
Be empathetic: Show understanding for the caller's situation.
///## Response Guidelines
Return dates in spoken form: Say "January fifteenth" not "1/15".
Ask one question at a time: Avoid overwhelming the caller with multiple questions.
Confirm understanding: Paraphrase important information back to the caller.
///## Task Instructions
[Specific steps the agent should follow]
​ To learn more, see the sources I considered: [[1] Sub-Second Latency Showdown: Retell AI vs. Synthflow vs. Twilio Voice Assistants (2025 Benchmarks)](https://www.retellai.com/resources/sub-second-latency-voice-assistants-benchmarks) [[2] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) [[3] Troubleshooting AI Voice Agent Issues | Retell AI](https://www.retellai.com/blog/troubleshooting-common-issues-in-voice-agent-development) [[4] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) ​
4. Optimize Conversation Flow Architecture When handling complex logic or multiple tools, each node focuses on one specific task, making state management easier and behavior more predictable . Split your workflow so each node has smaller, focused prompts rather than one massive 10,000-token instruction. 5. Batch Process Your 17 Items Instead of processing all 17 work order items in one pass, break them into smaller batches (e.g., 5-6 items per batch) across multiple nodes. This ensures the LLM can focus on a manageable subset at a time, reducing processing latency. 6. Enable Skip Response When Appropriate For nodes where you don't need user input (like disclaimers or status updates) , enable Skip Response in the node settings [(4) ]() . When enabled, the agent will transition to the next node immediately after speaking, without waiting for user response . Technical Optimization: Latency optimization requires addressing network architecture, AI model performance, and voice processing logic [(1) ]() . Key strategies include: - Edge deployment to reduce geographic latency - Connection pooling for faster API responses - Predictive caching for common queries - Streaming protocols for real-time audio processing The 3-4 second delay you're experiencing is primarily caused by your oversized prompt and large payload. Focus on reducing your prompt size below 8,000 tokens and implementing batch processing for your 17 items across multiple focused nodes. --- **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy -> Payload is small now Only pass 6 to 8 items, Still there is lag i see and observed.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
message has been deleted
j
@AI Evy -> Payload is small now only pass 6 to 8 items in request while initiate the call from agent to user, Still there is lag i see and observed.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer Since you've reduced your payload to 6-8 items and still experience lag, the issue likely stems from other factors beyond payload size. Here are additional troubleshooting steps: 1. Optimize Your Prompt Instructions Your 10,000-token prompt is still above the recommended 8,000-token threshold [(1) ]() . Focus on making your prompts more concise by using sectional structure : - Break large prompts into focused sections for better LLM comprehension - Keep instructions clear and direct - Remove unnecessary verbosity 2. LLM Model Selection Try switching to a faster LLM model in your Conversation Flow nodes [(2) ]() . Different models have varying latency characteristics : - Change to a faster LLM to reduce response time - Test different models to find the optimal balance between capability and speed 3. TTS Optimization Implement a faster text-to-speech system for quicker audio output . The TTS layer can contribute significantly to overall latency [(3) ]() . 4. Network and Processing Delays Latency occurs at multiple points in the voice automation stack : - Speech Recognition Processing (ASR) : Time to transcribe spoken words - Response Generation: Time for the LLM to craft a reply - Speech Synthesis (TTS) : Time to convert text back to audio - Network Transmission: Delays in cloud-based systems 5. Conversation Flow Architecture When handling complex logic or multiple tools, Conversation Flow provides better control [(4) ]() : - Ensure each node has focused, specific instructions - Minimize the number of transitions between nodes - Use the **Skip
Response** setting where user input isn't needed 6. Custom Function Optimization If you're using custom functions (like your N8N integration) , ensure: - Your endpoint responds quickly - You're not making unnecessary API calls - Response processing is optimized Since you've already reduced the payload and are still seeing 3-4 second delays, I recommend systematically testing each of these factors. The target latency for conversational AI should be under 800ms [(5) ]() . For detailed performance analysis and optimization specific to your setup: Visit [Contact Sales]() or [) Would you like a general answer about additional latency optimization techniques? ---
j
@AI Evy -> Let me give you flow information I have node which handle the iteration over items, and when user say Confirm or any other statuses like ETA change, Cancel then pass to extract Node and loop back to Node where agent ask questions to vendor for work items and capture the status, reasons. Now how i make sure or debug the delay while agent speak.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer \### Answer Your iterative loop architecture with extraction nodes may be causing cumulative latency. Here's how to debug and optimize the delay: Debugging the Delay: 1. Check Call Analytics Review your call's latency metrics in the dashboard [(1) ]() : - `llm_latency`: Time the LLM takes to generate responses - `e2e_latency`: End-to-end latency from user speech to agent response - Compare these metrics across different nodes in your flow 2. Identify the Problem Node When the agent isn't responding as expected, use the Conversation Flow debug guide approach : - Review node transitions in the call logs to identify where delays occur - Check if delays happen consistently at the extraction node or the loop-back node - Verify that transition conditions are triggering correctly 3. Test with Chat Testing Confirm that all transition logic is correct using chat testing . If the issue only happens in calls (not chat) , it's likely related to real-time processing overhead . Optimization Strategies: 1. Split Complex Nodes If a node contains instructions to collect multiple pieces of information, the agent might inconsistently handle them . Split your extraction node into multiple focused nodes : - One node for status extraction - Separate nodes for reason extraction - Individual nodes for ETA changes 2. Adjust LLM Temperature If the agent's responses are inconsistent, try adjusting the LLM temperature . Lower temperatures can improve consistency but may reduce conversational naturalness . 3. Change Node Model If instructions are concise but the agent struggles to follow them, try using a more capable LLM model for the problematic node . 4. Optimize Loop Architecture Your loop-back pattern may be accumulating context with each iteration, increasing processi
ng time. Consider: - Using Skip Response for nodes that don't need user input - Minimizing the conversation history passed between iterations - Resetting context at the start of each item iteration if possible 5. Add Conversation Finetune Examples To achieve a specific response style and improve transition reliability, add conversation finetune examples . This helps the model understand your expectations for the loop behavior . Known Issue Alert: There was a resolved incident where Conversation Flow agents would stay silent after function nodes due to a message order issue [(2) ]() . While this was fixed, if you're experiencing similar behavior (agent going silent after your extraction node) , it may be related . Systematic Debugging Steps: 1. Enable detailed logging for your call 2. Identify which specific node transition causes the delay 3. Test that node in isolation using the LLM Playground 4. Measure latency at each step: user input → extraction → loop-back → next question 5. Compare latency metrics between successful and problematic calls The iterative nature of your flow means context accumulates with each loop, potentially causing the LLM to process increasingly large context windows. Focus on keeping each node's instructions concise and consider resetting or minimizing context between iterations. ---
​ To learn more, see the sources I considered: [[1] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) [[2] Conversation Flow agent potentially stay silent after function node](https://retell.discourse.group/t/conversation-flow-agent-potentially-stay-silent-after-function-node/135) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
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] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) [[2] Troubleshooting AI Voice Agent Issues | Retell AI](https://www.retellai.com/blog/troubleshooting-common-issues-in-voice-agent-development) [[3] Latency](https://www.retellai.com/glossary/latency) [[4] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[5] Inside Retell AI Receptionist's Large Language Model Intent Engine: 92% Accuracy and 50% Fewer Unnecessary Escalations](https://www.retellai.com/resources/retell-ai-receptionist-understands-calls-better) ​
j
I set the equation {{ci} = "4" why this is not trigger? I also tried the prompt transition still that not works.
@AI Evy I set the equation {{ci} = "4" why this is not trigger? I also tried the prompt transition still that not works.
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer --- ### Answer Your equation condition has a syntax error. You're using a single equals sign (
=
) when you should use a *double equals sign (
==
) *
for comparison [(1) ]() . Change your equation from: -
{{ci}} = "4"
To: -
{{ci}} == "4"
The documentation explicitly shows that equation conditions use the double equals operator for comparisons :
Copy code
- {{user_age}} > 18
- {{current_time}} > 9 AND {{current_time}} < 18
- {{user_location}} == "New York"
- {{user_location}} != "New York"
- "New York, Los Angeles" CONTAINS {{user_location}}
- "New York, Los Angeles" NOT CONTAINS {{user_location}}
- {{user_age}} < 18 OR {{user_location}} == "New York"
- {{name}} exists
Additional Troubleshooting Steps: 1. Verify Variable Exists - Ensure your
{{ci}}
variable is actually being set before this transition. You can add a check using
{{ci}} exists
to confirm . 2. Check Variable Type - All values in dynamic variables must be strings [(2) ]() . Make sure your
{{ci}}
variable contains the string
"4"
and not the number
4
. 3. Test Transition Order - Equation conditions are evaluated from top to bottom, and the system transitions on the first condition that evaluates to true [(1) ]() . Ensure no earlier equation condition is triggering before your
{{ci}} == "4"
check. 4. Review Call Logs - Check your call analytics to see what value
{{ci}}
actually contains when the transition should trigger . If the transition still doesn't work after fixing the syntax, the issue may be that the
{{ci}}
variable isn't being set correctly in your loop. Community members have reported similar issues with transition conditions not triggering as expected [(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] Discord message from @mariag8602 on 2025-10-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1430614528017694881) [[3] conversation flow doesn't transition correctly](https://discord.com/channels/1186424376300679209/1342666714248118343) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy : Agent Does not handle if user become silent in call. Agent should ask to user "Are you there?"
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
### Answer Based on the available sources, I don't have direct documentation about configuring user silence detection or timeout handling in Conversation Flow agents. The sources provided focus on conversation flow structure, node configuration, and transition conditions [(1) ]() [(2) ]() [(3) ]() [(4) ]() , but don't explicitly cover user silence timeout settings. However, I can point you to potentially relevant configuration areas: Global Settings Configuration: In the global settings, you can configure speech settings including responsiveness and interruption sensitivity [(3) ]() . These settings control how the agent responds to speech patterns, though they don't specifically address user silence timeouts. Potential Approaches: 1. Transition Conditions - You might be able to set up a transition condition based on time or user inactivity, though the documentation shows equation-based transitions like
{{user_age}} > 18
or
{{current_time}} > 9
[(1) ]() [(2) ]() , not explicit silence detection. 2. Node-Level Configuration - Each conversation node has various settings including block interruptions and skip response options [(4) ]() , but silence handling isn't explicitly documented in these settings. For detailed guidance on implementing user silence detection with prompts like "Are you there?": Visit [Contact Sales](
ai.octolane.com/) or [) Would you like a general answer based on my knowledge about handling user silence in conversational AI systems? ---
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] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[3] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[4] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) ​
j
@AI Evy -> If user speak very softly, how i can make sure the Voice agent list properly?
a
Thanks for the follow-up, @jcloe_80373. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[2] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[3] Get Agent](https://docs.retellai.com/api-references/get-agent) [[4] Update Agent](https://docs.retellai.com/api-references/update-agent) [[5] Speech Recognition Quality Issue](https://discord.com/channels/1186424376300679209/1224173869758414899) [[6] Speech Not Recognised - Please help 🙏](https://discord.com/channels/1186424376300679209/1348293712181989502) ​
### Answer ### Answer When users speak very softly, you can optimize your agent's speech recognition through several configuration options: 1. Adjust Speech Settings In your global settings, configure the Responsiveness parameter [(1) ]() [(2) ]() . Lower responsiveness adds wait time before the agent responds, giving the system more time to capture soft speech [(1) ]() . Reducing responsiveness by 0.1 adds 0.5 seconds of agent wait time . You can also adjust Interruption Sensitivity [(1) ]() [(2) ]() [(3) ]() [(4) ]() . Setting it lower makes the agent more resilient to background speech and can help with capturing quieter inputs [(1) ]() [(2) ]() . This controls how fast the agent gets interrupted by user interruptions [(1) ]() . 2. Use Boosted Keywords Configure Boosted Keywords to bias the transcriber model toward specific words you expect [(1) ]() [(2) ]() [(3) ]() [(4) ]() . This provides biases towards certain words, making them easier to recognize [(1)
]() [(2) ]() . Common use cases include brand names and people's names . 3. Select Appropriate STT Mode Choose between
fast
or
accurate
STT modes [(3) ]() [(4) ]() . The
accurate
mode may perform better with soft speech, though it trades some latency for improved transcription quality . 4. Consider Denoising Mode Set the denoising_mode to either
noise-cancellation
or
noise-and-background-speech-cancellation
. This can help isolate the user's voice from background noise, which is particularly helpful when speech is soft . Community Experience: Users have reported similar issues with speech recognition quality, particularly with soft or single-word responses [(5) ]() [(6) ]() . One community member noted that adjusting Input Sensitivity (lowering interruption sensitivity slightly) and rephrasing prompts to encourage longer responses helped improve recognition [(6) ]() . Another user found that boosted_keywords helped instruct the transcriber model to have a bias for specific words and pick them up in transcription [(5) ]() . ---
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.