https://retellai.com/?utm_source=discord&utm_medium=seo logo
i created a webhook put it in the agent setting bu...
# ❓・ai-evy-support
s
i created a webhook put it in the agent setting but its still not working? @AI Evy
a
Thanks for tagging me @sunny1952_36896. I'll look through relevant sources and get back to you shortly.
### Answer To troubleshoot your webhook issue, let's check a few key areas: 1. Webhook URL Configuration Ensure your webhook URL is properly set in the agent configuration [(1) ]() [(2) ]() . The webhook URL should be accessible and respond with a 2xx status code [(3) ]() . 2. Webhook Timeout Settings The webhook has a default timeout of 10000 milliseconds (10 seconds) [(1) ]() [(2) ]() . If your endpoint takes longer to respond, consider optimizing it or adjusting the
webhook_timeout_ms
parameter . 3. Test Your Endpoint Test your webhook endpoint locally first. Here's an example test using curl [(3) ]() :
Copy code
bash
curl --location 'localhost:8080/webhook' \
--header 'Content-Type: application/json' \
--data '{
 "event": "call_ended",
 "call": {
 "call_type": "phone_call",
 "from_number": "+12137771234",
 "to_number": "+12137771235",
 "direction": "inbound",
 "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
 "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "call_status": "registered",
 "metadata": {},
 "retell_llm_dynamic_variables": {
 "customer_name": "John Doe"
 },
 "start_timestamp": 1714608475945,
 "end_timestamp": 1714608491736,
 "disconnection_reason": "user_hangup",
 "transcript": "...",
 "opt_out_sensitive_data_storage": false
 }
}'
4. Webhook Retry Logic The webhook has a timeout of 10 seconds and will retry up to 3 times if no success status (2xx) is received [(4) ]() . 5. For Chat Agents Specifically If you're using a chat agent, check the webhook execution logs after triggering the chat [(5) ]() . 6. Make Endpoint Publicly Accessible If testing locally, use a tool like ngrok to make your endpoint publicly accessible [(3) ]() . If these steps don't resolve the issue, check that your endpoint is returning the correct HTTP status codes and that there are no network connectivity issues.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
i did that but still not workign @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
### Answer Since you've tried the basic troubleshooting steps, let's check some additional webhook configuration details: Webhook Event Triggers Verify which events your webhook should receive [(1) ]() . Retell AI supports three webhook events: -
call_started
- Triggered when a new call begins -
call_ended
- Triggered when a call completes, transfers, or encounters an error -
call_analyzed
- Triggered when call analysis is complete **Important Note**: If the call did not connect (like dial failed) , the
call_started
webhook event will not be triggered . Webhook Registration Options You have two ways to register webhooks [(2) ]() : - Account level webhook - Set up through system settings' webhooks tab for events related to any agent under your account - Agent level webhook - Set up through the dashboard's agent detail page **Key Point**: If you set an agent level webhook, account level webhooks will not be triggered for that agent . Webhook Timeout Controls Recent updates allow you to control webhook timeouts for both workspace-level and agent-level webhooks with a default of 5 seconds [(3) ]() . You can adjust this if your endpoint needs more time to process requests. Webhook Response Requirements Your endpoint must return a successful status code (2xx) [(1) ]() . The webhook will retry up to 3 times if no success status is received within the timeout period. Sample Webhook Handler Here's the exact Node.js example from the documentation [(2) ]() :
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
 const {event, call} = req.body;
 switch (event) {
 case "call_started":
 console.log("Call started event received", call.call_id) ;
 break;
 case "call_ended":
 console.log("Call ended event received", call.call_id) ;
 break;
 case "call_analyzed":
 console.log("Call analyzed event received", call.call_id) ;
 break;
 default:
 console.log("Received an unknown event:", event) ;
 }
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
If you're still having issues, try making a test web call in the dashboard to verify the webhook triggers correctly .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Setup guide](https://docs.retellai.com/features/register-webhook) [[3] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
well i am doing this with chat first to test i am integrating webhook with Make. but no response when putting in the url https://hook.us1.make.com @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
### Answer Based on your setup with Make.com for chat agents, there are a few specific considerations for webhooks with chat agents. Chat Agent Webhook Issue There appears to be a known issue with agent webhook URLs not working properly on chat agents [(1) ]() . A user reported that their webhook URL works well on voice agents but not on chat agents . Make.com URL Requirements Your Make.com webhook URL appears incomplete. Make.com webhook URLs typically need the full path including your scenario identifier. The URL should look something like: ` Chat Agent Configuration When creating a chat agent, you can set the webhook URL in the agent configuration [(2) ]() . The webhook URL should be set using the
webhook_url
parameter [(2) ]() [(3) ]() :
Copy code
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>
}) ;
[(2) ]() Webhook Timeout The default webhook timeout is 10000 milliseconds (10 seconds) [(2) ]() [(3) ]() . You can adjust this using the
webhook_timeout_ms
parameter if Make.com needs more time to process the request. Testing Steps 1. Ensure your Make.com webhook URL is complete with the scenario key 2. Test the Make.com webhook directly to verify it's accessible 3. Check if the webhook works with voice agents first to isolate the issue 4. Verify that Make.com is returning a 2xx HTTP status code [(1) ]() Given the reported issue with chat agent webhooks , you might want to test with a voice agent first to confirm your Make.com integration is working properly.
​ To learn more, see the sources I considered: [[1] Agent Webhook URL not Working on Chat Agent](https://discord.com/channels/1186424376300679209/1392005885210919003) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.