anton333_50203
08/14/2025, 12:43 AMAI Evy
08/14/2025, 12:43 AMAI Evy
08/14/2025, 12:44 AMwebhook_url parameter [(2) ]() [(3) ]() . You can verify this is properly configured by checking your agent settings - the webhook URL binds webhook events for the specific agent and will ignore the account level webhook for that agent [(3) ]() .
Post-Call Analysis Dependency:
Post-call analysis data will not be populated for non-connected calls and calls where no conversation happened [(4) ]() . Ensure your calls are actually connecting and include meaningful conversation content.
Potential Compatibility Issue:
There's a known issue where inbound webhook URLs at the phone number level may conflict with agent-level webhook events (call_started, call_ended, call_analyzed) [(5) ]() . If you're using both an inbound call webhook and agent-level webhooks, this could prevent the post-call workflow from triggering properly.
Verification Steps:
1. Confirm your webhook endpoint returns a 2xx status code
2. Check that calls are fully connected with actual conversation content
3. Verify you're not using conflicting webhook configurations at both phone number and agent levels
4. ReviAI Evy
08/14/2025, 12:44 AMAI Evy
08/14/2025, 12:44 AMAI Evy
08/14/2025, 12:44 AManton333_50203
08/14/2025, 1:00 AManton333_50203
08/14/2025, 1:00 AMAI Evy
08/14/2025, 1:00 AMAI Evy
08/14/2025, 1:00 AMwebhook_url parameter [(1) ]() [(2) ]() . The system binds webhook events for the specific agent to the specified URL and ignores the account level webhook for that agent [(2) ]() [(3) ]() .
javascript
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
webhook_url: "<https://webhook-url-here%22>
}) ;
[(4) ]()
Since duplicating the agent fixed the problem, the new agent likely has a clean configuration state. This is actually a useful troubleshooting approach - sometimes recreating resources can resolve underlying configuration issues that aren't easily identifiable.
For future reference, you can verify your agent's webhook configuration by retrieving the agent details to confirm the webhook_url is properly set [(5) ]() . The webhook system expects successful responses and handles real-time call data transmission for events like call analysis [(6) ]() .AI Evy
08/14/2025, 1:00 AMAI Evy
08/14/2025, 1:00 AManton333_50203
08/14/2025, 10:34 AMAI Evy
08/14/2025, 10:34 AMAI Evy
08/14/2025, 10:34 AMWhen user states his name and phone number, please extract the information by calling the `extract_user_details` function.AI Evy
08/14/2025, 10:34 AM{{variable_name}} syntax, which you can use in prompts, begin messages, tool descriptions, and other parts of your agent configuration [(3) ]() .AI Evy
08/14/2025, 10:34 AMAI Evy
08/14/2025, 10:34 AManton333_50203
08/14/2025, 1:46 PMAI Evy
08/14/2025, 1:46 PMAI Evy
08/14/2025, 1:47 PM{{variable_name}} syntax throughout your agent [(1) ]() . However, the instruction "SET {{job_summary}}" seems incorrect - you don't manually "set" variables in prompts. Instead, the Extract Dynamic Variables tool automatically populates them when the function is called .
Recommended Approach:
1. Configure your Extract Dynamic Variables tool with a variable named "job_summary"
2. Update your prompt to clearly instruct when to call the extraction function
3. Ensure "opt out sensitive data" is disabled [(2) ]()
4. Test the flow and check the call logs for the extracted variables
The extracted variables will be automatically populated when the function is triggered, not through manual "SET" instructions in the prompt.AI Evy
08/14/2025, 1:47 PMAI Evy
08/14/2025, 1:47 PMAI Evy
08/14/2025, 1:47 PMWhen user states his name and phone number, please extract the information by calling the `extract_user_details` function.anton333_50203
08/14/2025, 1:57 PMAI Evy
08/14/2025, 1:57 PMAI Evy
08/14/2025, 1:57 PMerror_llm_websocket_open - LLM websocket did not open between Retell server and your backend, likely because the Custom LLM URL is incorrect or your LLM server is unreachable
- error_llm_websocket_lost_connection - LLM websocket connection broke during the call
- error_llm_websocket_runtime - LLM websocket received a closing signal other than 1000 from your server
- error_llm_websocket_corrupt_payload - LLM websocket received unspecified payload
Troubleshooting Steps:
1. **Verify WebSocket URL**: Ensure your Custom LLM URL is correct and accessible [(1) ]() . If testing locally, use ngrok to generate a production URL forwarding to your local endpoints
2. **Check Server Response**: Your WebSocket server must properly handle the communication protocol . The server should send the first message as an empty response to let the user speak first
3. **Validate LLM Integration**: If you're using a custom LLM, ensure your integration is properly streaming responses [(3) ]() . The system expects responses when interaction_type is "response_required"
4. **Response Format**: Ensure your server sends properly formatted RetellResponse objects with the corAI Evy
08/14/2025, 1:57 PMAI Evy
08/14/2025, 1:57 PMAI Evy
08/14/2025, 1:57 PManton333_50203
08/14/2025, 1:58 PMAI Evy
08/14/2025, 1:58 PMAI Evy
08/14/2025, 1:58 PMAI Evy
08/14/2025, 1:58 PMAI Evy
08/14/2025, 1:58 PManton333_50203
08/14/2025, 2:00 PMAI Evy
08/14/2025, 2:00 PMAI Evy
08/14/2025, 2:00 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) ;AI Evy
08/14/2025, 2:00 PMAI Evy
08/14/2025, 2:01 PManton333_50203
08/14/2025, 2:03 PMAI Evy
08/14/2025, 2:03 PMAI Evy
08/14/2025, 2:04 PMjavascript
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',
}) ;
console.log(agentResponse.agent_id) ;
[(2) ]()
Remove Custom Functions First:
Based on a similar case in the community, removing custom functions can restore functionality [(3) ]() . One user experienced the exact same "Internal Server Error" and found that "removing the custom functions restored the chat model" .
Try Different Models:
The same user also tried switching models (GPT-4, Gemini, 4o) but the issue persisted until they removed the custom functions .
Systematic Debugging:
1. Remove all custom functions from your agent
2. Simplify your prompt to the most basic version
3. Test with minimal configuration
4. Add components back one by one
Emergency Contact:
Given your deadline, you should also reach out directly to support:
- Visit [Contact Sales]()
- Visit [)
The pattern from the community suggests that custom functions are often the culprit for these internal server errors .AI Evy
08/14/2025, 2:04 PMAI Evy
08/14/2025, 2:04 PManton333_50203
08/14/2025, 2:06 PMAI Evy
08/14/2025, 2:06 PMAI Evy
08/14/2025, 2:07 PM///## Identity
You are a friendly AI assistant for Retell AI.
///## Task & Goals
Ask for the user's name and wait for their response.
2. **Check Your Agent Type**: If you're using a multi-prompt agent, ensure your state transitions are properly defined [(2) ]() . For name collection, you might need explicit transition logic :
Ask for user's name.
- if user provides name, transition to next_state.
- if user refuses, call function end_call to hang up politely.AI Evy
08/14/2025, 2:07 PMAI Evy
08/14/2025, 2:07 PMAI Evy
08/14/2025, 2:07 PManton333_50203
08/14/2025, 4:30 PMAI Evy
08/14/2025, 4:30 PMAI Evy
08/14/2025, 4:31 PMUser responds to question of their age
- User said something about booking a meeting
2. **Split Complex Nodes**: If your name collection node has multiple instructions, split it into separate nodes [(1) ]() . For example, if a node contains instructions to collect customer name, phone number, and address, the agent might inconsistently ask for only some of this information .
3. **Add Transition Finetune Examples**: To help the model understand your expectations, add transition finetune examples . This can help the agent recognize when the user has successfully provided their name.
4. **Adjust LLM Temperature**: If the agent's responses are inconsistent, try adjusting the LLM temperature . Lower temperature can make responses more consistent.
Debugging Steps:
1. **Review Transition Conditions**: Ensure they precisely match your intended triggers . Consider prompt engineering or breaking down complex conditions into multiple simpler ones .
2. **Make Conditions More Flexible**: Make transition conditions more flexible and general . The agent might be too strict in recognizing valid name responses.
3. **Check Node Instructions**: Make node instructions more flexible and let the model handle the dAI Evy
08/14/2025, 4:31 PMAI Evy
08/14/2025, 4:31 PM- {{user_name}} != ""
This ensures the agent only transitions once the name variable is populated.AI Evy
08/14/2025, 4:31 PM