https://retellai.com/?utm_source=discord&utm_medium=seo logo
: I am getting this error in detail Logs on retell...
# ❓・ai-evy-support
n
@AI Evy : I am getting this error in detail Logs on retell agent : error: Error encountered in LLM call: Failed to get response from any LLM provider: Operation timed out
a
Thanks for tagging me @nsakv. I'll look through relevant sources and get back to you shortly.
### Answer Based on the Discord forum discussions, this "Operation timed out" error occurs when LLM response times consistently exceed the timeout threshold [(1) ]() . This is a known issue that can affect live customer calls, causing agents to go silent mid-conversation . Here are the recommended solutions for addressing LLM timeouts: Immediate Solutions: - Use Fast Tier to provide more consistent latency and higher availability by directing LLM calls to a dedicated resource pool - Switch to an alternative LLM provider - Wait for your current provider to resolve performance issues Preventive Measures: To avoid agent silence during timeouts, you can implement fail-safe mechanisms : - Configure a warm transfer to a live agent when LLM doesn't respond within the timeout window - Set up predefined prompts like "One moment please..." to play during timeouts - Add reminders or callbacks in the agent flow so users aren't left hanging Important Note: Fast Tier reduces the likelihood of timeouts but doesn't completely eliminate them . The platform recommends implementing backup strategies to ensure smooth user experiences when timeouts occur . If you're experiencing widespread call failures like in the July 14th incident mentioned in the forums [(2) ]() , this may indicate a broader infrastructure issue that requires contacting Retell AI support directly.
​ To learn more, see the sources I considered: [[1] 🚨 URGENT: Fast Tier Agent Went Silent Mid-Call Due to LLM Timeouts](https://discord.com/channels/1186424376300679209/1407005808041918539) [[2] this morning all of my calls started to fail.](https://discord.com/channels/1186424376300679209/1394324743615811665) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @nsakv. I'll get back to you soon.
n
@AI Evy How to Add reminders or callbacks in the agent flow so users aren't left hanging ?
a
[(4) ]() For more advanced callback functionality after each message, you can use the metadata event to pass extra data along with each response, as discussed in the community [(5) ]() .
### Answer Based on the Retell AI documentation, you can configure reminders to prevent users from being left hanging during agent silence using the
reminder_trigger_ms
and
reminder_max_count
parameters [(1) ]() [(2) ]() [(3) ]() . Here's how to set up reminders in your agent configuration:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
 reminder_trigger_ms: 10000,
 reminder_max_count: 2,
}) ;
[(1) ]() Key Parameters: - `reminder_trigger_ms`: Triggers a reminder to the agent to speak if the user has been silent for the specified duration after some agent speech [(1) ]() [(2) ]() [(3) ]() . The default value is 10000 ms (10 seconds) - `reminder_max_count`: Controls how many times the agent will remind the user when unresponsive . The default value is 1 (remind once) , and you can set it to 0 to disable reminders You can also update an existing agent with these settings:
Copy code
javascript
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { 
 reminder_trigger_ms: 10000,
 reminder_max_count: 2 
}) ;
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy : How to Configure a warm transfer to a live agent when LLM doesn't respond within the timeout window
a
Thanks for the follow-up, @nsakv. I'll get back to you soon.
### Answer ### Configuring Warm Transfer as an LLM Timeout Failsafe Based on the Retell AI documentation, you can configure a warm transfer to a live agent as a backup when LLM timeouts occur. Here's how to set it up: For Single Multi Prompt Agents: 1. Add Transfer Call Tool [(1) ]() Click "+ Add" in the tools section and select "Transfer Call" from the dropdown menu . 2. Configure Basic Settings Define specific conditions under which the call should be transferred, such as when the LLM fails to respond . For the transfer destination, you can choose between a static number (e.164 or SIP URI) , or the value of a dynamic variable . 3. Update the Prompt Enhance the agent's understanding by incorporating the transfer call conditions into the prompt . Include specific instructions such as: "If the user is angry or frustrated, use the transfer_call tool to transfer the conversation to a human agent" . 4. Configure Transfer Type Choose warm transfer for LLM timeout scenarios . After the call is transferred to the destination number, the AI agent attempts to first detect if the other side is a human, then speaks private and public messages . For Conversation Flow Agents: Configure the Call Transfer Node with warm transfer settings [(2) ]() : - Set the transfer destination to a number in e.164 format, or a SIP URI in the format of
sip:username@domain
- Choose warm transfer as the transfer type Essential Warm Transfer Settings: Configure these settings for reliable transfers [(1) ]() [(2) ]() : - **Agent detection timeout**: The maximum amount of
time the AI agent will wait to determine whether the transfer target is a human . The default timeout is 30 seconds - **Enable human detection**: When enabled, the agent will check if a human is present after the transfer target answers - **Auto-greet**: If enabled, the agent will immediately say "Hello" when the transfer target picks up - **Whisper message (optional) **: A message spoken privately to the transfer target before connecting them to the original caller - **Three-way message (optional) **: A message spoken to both the transfer target and the original caller once the connection is established Troubleshooting Tips: If warm transfers aren't working properly, ensure you have [(3) ]() : - Transfer destination properly configured (phone number in E.164 format or SIP URI) - Agent detection timeout increased from the default 30 seconds if needed - Whisper message configured (optional - spoken privately to transfer target) Additionally, verify that human detection is working properly and test by increasing the agent detection timeout setting [(4) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.