https://retellai.com/?utm_source=discord&utm_medium=seo logo
Error: Invalid webhook response format (make workf...
# ❓・bug-report
s
Hi there, Webhook response is giving correct JSON output, all data fields are string. I removed call summary and created a new agent but still didn't work. { "call_inbound": { "dynamic_variables": { "name": "Susan", "business_name": "Hooman Bakery", "city": "Vancouver", "industry": "Bakery", } } } But in call history - data tab, it shows no extracted variables, Detail log gives error for incorrect format for webhook response.
o
What are you using to send the data
s
Make
@Omar Ashraf | Community Lead would really appreciate your help Omar
o
I'm checking it right now .
s
Thank you very much !
I've been stuck on this for two days now, I'm so annoyed lol
@Omar Ashraf | Community Lead do you know by when I may get a response?
o
I did try it with n8n works fine every time.
s
wonder what I'm doing wrong
everything checks out
o
when i try it with make.com it doesn't work if i copied the the same exact payload that you send me here
it only works when
when i copied the code from the docs and edit it with the same variables you provided https://docs.retellai.com/features/inbound-call-webhook#response
This is very wierd from make.com
You are doing nothing wrong.
just copy the code from the link i give you and edit inside the node in make.com
s
Copy code
{
  "call_inbound": {
    "override_agent_id": "agent_12345",
    "override_agent_version": 1,
    "dynamic_variables": {
      "customer_name": "John Doe"
    },
    "metadata": {
      "random_id": "12345"
    }
  }
}
so put this in?
Yes put and edit inside make.com , remove the override agent id and version and edit the variables to fit your needs but don't use ChatGPT or anything because it could be copying something that we don't see and make the code fail which is very weird in make btw.
s
It worked
That's super wierd, but anyway. I want to say I'm very grateful for your help @Omar Ashraf | Community Lead
Thank you !
o
You are welcome.
s
Sorry @Omar Ashraf | Community Lead , I have a question and hoping you can help
from inbound call that's triggering webhook, how can I pass down the call transcript?
o
Hello @samira_04165
You want to send script to the call , or you want to get the call transcript after the call ends?
s
I want the get the transcript after call ends, so I have a timer after webhook response. But I can't pass down the variables from webhook
I have to use the Retel AI (make an API call) ?
the transcript from webhook won't actually carry the transcript
o
So i get the first part you want to get the call transcript after the call ends , you can do that easily with retell webhooks at the agent level , so when you put your webhook at the agent level it sends 3 webhooks , 1- Call started -> when the call start 2- call ended -> when the call ends 3- call analyzed -> also when the call ends but this is important one because it carries details about the call including the call transcript you want .
You can use make/n8n etc..
s
Retell webhooks at the agent level...so in this case the inbound call is connecting to make webhook and not retell AI module
so my question is how to connect retell AI modules and which module to connect to make webhook
o
I don't know what do you mean but modules
s
so each step I mean
o
but i will give you simple step by step to get the transcript from the call
s
ok thanks
so dealing with inbound call connected to webhook in mak
make
o
1- Create a webhook in your platform(make/n8n) other than the one you are using for the inbound webhook
2- put this webhook in the retell agent level not the phone number level so at the agent it self
then each call you will get 3 webhook as i told you , you will need to filter for the last one which called call_analyzed that is the one have the transcription then you can do what ever you want with it.
s
thanks Omar. Can you explain what you mean by retell agent level
o
at the agent it self
i will show you an image
s
Also how to trigger the webhook, so say whenever inbound call = "my number" for example and so everytime it's an inbound, it triggers this scenario ?
oh i see
o
The inbound webhook will trigger before the call.
s
I understand this is the webhook for sendin g data out
I wasn't using this until now
I was only using the one for inbound call webhook, and trying to use the same scenario to get the transcript
So in conlcusion, Build a new scenario, create new webook and put URL in screenshot
o
You can use the same scenario but you will have to filter on the webhooks , better to use a new one to be easier .
s
yes makes sense
just didn't understand how the 3 webhooks work
I thought each webhook get's one response
o
Good, try it and let me know if you need any help.
s
Can you please send a link to how the 3 webhooks work?
I guess this is only for this one webhook for inbound call data transfer right?
Thank you very much again, Omar. Your support is amazing
o
You can also use @AI Evy it's very good Will help you understand the documents , if something is not clear enough let me know.
a
Thanks for tagging me @Omar Ashraf | Community Lead. I'll look through relevant sources and get back to you shortly.
### Answer Based on the conversation, I can help clarify how Retell AI's webhook system works for getting call transcripts. Omar is correct about the three webhook events. Retell AI supports three webhook event types that are triggered sequentially for each call [(1) ]() : 1.
call_started
- Triggered when a new call begins with basic call information 2.
call_ended
- Triggered when a call completes, transfers, or encounters an error with all fields from the call object except
call_analysis
3.
call_analyzed
- Triggered when call analysis is complete with full call data including the
call_analysis
object For getting the transcript, you want the
call_analyzed
webhook since it contains the complete transcript data . The webhook payload will include the transcript in multiple formats : -
transcript
- Basic transcription as a string [(2) ]() [(3) ]() -
transcript_object
- Transcript with timestamps and utterance details -
transcript_with_tool_calls
- Transcript including tool call invocations and results To set this up: 1. **Agent-level webhook**: Set the webhook URL in your agent configuration using the
webhook_url
field [(4) ]() [(5) ]() . This binds webhook events for that specific agent to your specified URL and ignores the account-level webhook for that agent . 2. **Webhook timeout**: The webhook has a 10-second timeout and will retry up to 3 times if no success status (2xx) is received [(1) ]() . 3. **Event filtering**: In your Make.com scenario, filter for the
call_analyzed
event type to get the transcript data .
The webhook will POST the payload containing the event type and call object to your endpoint . You'll need to filter for
"event": "call_analyzed"
to capture the transcript data specifically.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy I followed step 1 and 2 but webhook is not responding
a
Thanks for the follow-up, @samira_04165. I'll get back to you soon.
Copy code
json
{
 "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": "...",
 "transcript_object": [ [Object], [Object], [Object], [Object] ],
 "transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
 "opt_out_sensitive_data_storage": false
 }
}
If the webhook still isn't responding after checking these items, the issue is likely with your endpoint configuration or network accessibility rather than Retell AI's webhook system.
### Answer When webhooks aren't responding, here are the key troubleshooting steps based on Retell AI's webhook specifications: Webhook Requirements & Timeout Behavior [(1) ]() The webhook will POST the payload to your endpoint with a 10-second timeout . If no success status (2xx) is received within 10 seconds, the webhook will be retried up to 3 times . Debugging Steps: 1. **Check your endpoint response**: Ensure your webhook endpoint returns a successful status code (2xx) . No body is expected in the response . 2. **Verify webhook URL configuration**: Make sure the webhook URL is properly set at the agent level and is accessible. 3. **Review call logs**: You can check the detailed call logs in Retell AI to see if your webhook has been invoked [(2) ]() . Webhooks work reliably, so it's likely a configuration issue . 4. **Test with a simple call**: Make a test call to trigger the webhook events and monitor your endpoint for incoming requests. Expected Webhook Events [(1) ]() Remember that you should receive three webhook events in sequence: -
call_started
- When the call begins -
call_ended
- When the call completes -
call_analyzed
- When analysis is complete (contains the transcript) Sample Webhook Payload Structure
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Webhook problems](https://discord.com/channels/1186424376300679209/1372226274705277080) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @samira_04165. I'll get back to you soon.
s
@AI Evy I guess in retell shows it works. Just not responding in make 2025-09-11 00:48:33.222 call_ae0c9a2ea35b51d08c61215b00d info: triggering inbound call webhook 2025-09-11 00:48:33.889 call_ae0c9a2ea35b51d08c61215b00d info: inbound call webhook response: { call_inbound: { dynamic_variables: { name: 'Payam',
a
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on your logs, the inbound call webhook is working correctly in Retell AI. The issue appears to be that you're mixing up two different webhook types: 1. Inbound Call Webhook - This is what's working in your logs and is used to send dynamic variables TO Retell AI before the call starts [(1) ]() 2. Agent-level Call Event Webhook - This is what you need to receive the transcript data FROM Retell AI after the call ends You need to set up a separate webhook URL at the agent level to receive the three webhook events (
call_started
,
call_ended
, and
call_analyzed
) . The
call_analyzed
event contains the transcript data you're looking for . Here's the correct setup process 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() ;
}) ;
The webhook expects a successful status code (2xx) response with no body expected [(1) ]() . Make sure your Make.com scenario is configured to return a 2xx status code when receiving the webhook events.
o
If you still struggle with it let me know @samira_04165.
s
I think I am
Sorry
@Omar Ashraf | Community Lead I'm not even checking any events yet, just simple want to connect make to retell
I have the Agent level webhook URL connected to make webhook
new webhook
o
you don't get the webhook ?
s
no
o
did you made a call ?
s
In logs, retell is firing
o
not a text chat
s
and I get all 3 calls
in the log
yes
a couple
o
show me the detail logs for this call.
s
2025-09-11 00:48:33.222 call_ae0c9a2ea35b51d08c61215b00d info: triggering inbound call webhook 2025-09-11 00:48:33.889 call_ae0c9a2ea35b51d08c61215b00d info: inbound call webhook response: { call_inbound: { dynamic_variables: { name: 'Payam', business_name: 'Soft digital', city: 'Vancouver', industry: 'electronics', last_conversation: "Please provide the transcript you'd like me to summarize." }, metadata: { random_id: 'agent_28a89ae404b689e94cb8f8b0f0' } } } 2025-09-11 00:48:34.120 call_ae0c9a2ea35b51d08c61215b00d info: Starting call: call_ae0c9a2ea35b51d08c61215b00d 2025-09-11 00:48:35.119 call_ae0c9a2ea35b51d08c61215b00d info: Webhook triggered for call_started 2025-09-11 00:48:36.164 call_ae0c9a2ea35b51d08c61215b00d error: Error triggering webhook for call_started Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 429 response status: 429 response data: ["Too many requests for scenario."] 2025-09-11 00:48:41.484 call_ae0c9a2ea35b51d08c61215b00d info: E2E latency for this turn: 1132 2025-09-11 00:49:00.420 call_ae0c9a2ea35b51d08c61215b00d info: Ending call: call_ae0c9a2ea35b51d08c61215b00d 2025-09-11 00:49:00.949 call_ae0c9a2ea35b51d08c61215b00d info: Webhook triggered for call_ended 2025-09-11 00:49:02.045 call_ae0c9a2ea35b51d08c61215b00d error: Error triggering webhook for call_ended Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 429 response status: 429 response data: ["Too many requests for scenario."] 2025-09-11 00:49:02.635 call_ae0c9a2ea35b51d08c61215b00d info: Webhook triggered for call_analyzed 2025-09-11 00:49:03.699 call_ae0c9a2ea35b51d08c61215b00d error: Error triggering webhook for call_analyzed Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 429 response status: 429 response data: ["Too many requests for scenario."]
o
show me the make workflow
haven't build, just checking for webhook
@Omar Ashraf | Community Lead please let me know if anything else is required
I've tried redeleting and putting URL back in too
o
The problem is not at retell it's at make.com
s
yes
o
Do you have enough credits on your account ? make is always weird, i can give you my webhook to test it .
s
I thought it might have been that
but I just subscribed with them and tried, still didn't work
Sure, how can we test it @Omar Ashraf | Community Lead ?
o
Suer you can use this webhook at your agent level , make a 5 seconds call and let me know https://hook.eu2.make.com/saiyfh2rmgjyhywygdwnhajhy2ifv1x1
s
Ok I put your URL in agent URL
set timeout to 5 sec
Ok I put this in agent URL
o
make a call 5 seconds and end it
s
calling now
hung up
o
show me the call detail because i got nothing
s
2025-09-11 01:55:29.089 call_a90d90c74c70cbc31d7cd6dcc84 info: triggering inbound call webhook 2025-09-11 01:55:29.992 call_a90d90c74c70cbc31d7cd6dcc84 info: inbound call webhook response: { call_inbound: { dynamic_variables: { name: 'Payam', business_name: 'Soft digital', city: 'Vancouver', industry: 'electronics', last_conversation: "Please provide the transcript you'd like me to summarize." }, metadata: { random_id: 'agent_28a89ae404b689e94cb8f8b0f0' } } } 2025-09-11 01:55:30.283 call_a90d90c74c70cbc31d7cd6dcc84 info: Starting call: call_a90d90c74c70cbc31d7cd6dcc84 2025-09-11 01:55:31.328 call_a90d90c74c70cbc31d7cd6dcc84 info: Webhook triggered for call_started 2025-09-11 01:55:32.405 call_a90d90c74c70cbc31d7cd6dcc84 error: Error triggering webhook for call_started Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 429 response status: 429 response data: ["Too many requests for scenario."] 2025-09-11 01:55:39.325 call_a90d90c74c70cbc31d7cd6dcc84 info: E2E latency for this turn: 1262 2025-09-11 01:55:42.391 call_a90d90c74c70cbc31d7cd6dcc84 info: Ending call: call_a90d90c74c70cbc31d7cd6dcc84 2025-09-11 01:55:42.877 call_a90d90c74c70cbc31d7cd6dcc84 info: Webhook triggered for call_ended 2025-09-11 01:55:43.970 call_a90d90c74c70cbc31d7cd6dcc84 error: Error triggering webhook for call_ended Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 429 response status: 429 response data: ["Too many requests for scenario."] 2025-09-11 01:55:44.883 call_a90d90c74c70cbc31d7cd6dcc84 info: Webhook triggered for call_analyzed 2025-09-11 01:55:45.908 call_a90d90c74c70cbc31d7cd6dcc84 error: Error triggering webhook for call_analyzed Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 429 response status: 429 response data: ["Too many requests for scenario."]
o
did you make the call using your phone or on web ?
s
own phone
o
no use the web, because you used an old version that pointing to your old webhook
s
I created a new webhook though
and connected new url
o
you published this agent before right ?
s
yes
oh I see what you mean
I need to republish new one
o
just make web call
the web call will call the last version
s
this version thing is so confusing and throws me off. i have 4 versions now and need to create 5th. Is this going to throw off my other scenarios?
o
Why creating all of these versions ? just test on web or at the phone leave the agent version at draft which will always be the last edit
s
It was a mistake and accidental
because I was running into errors and thought that would've fixed the problem...then I opened a whole new can of worms lol
Can I delete the versions?
o
it's fine they won't hurt you
s
ok, thanks. sorry for me being such a headache and really apprecaite your help
I'll test now
It's working
there is something at your make
s
you were correct
it works with test
so I have to publish to new version for it to work then with number?
o
If you don't want to republish with every edit keep the agent version at draft , every update will take effect.
s
oh nice, so if I take this to draft, it should just work
so there is basically no use to publishing
it's useless? if anything it throws people off
Anyway, I need to be respectful towards your time. You're definitely helping Retell keep a good name.
Good job man !
Thanks so much too
Thanks Omar it works
just not sure why it's missing the "Transcript" and probably some other variables
o
Show me the data you getting
o
this is call started event
You need call_analyzed
that the one that have teh transcript and everything you need.
s
I set up a filter before excel to check for if event is "call_analyzed"
I guess that's not how it works haha
didn't want to burn credits, so thought of just doing that
o
Set up filter after the webhook
s
yes I did
I tried redetermine datastructure
and tried again, but still no outputs
make equal the event you want which is call_analyzed
s
yes that's exactly what I have
o
Saved your workflow ?
s
that's so wierd, it stopped running now last 2-3 times I ran it, and now all of a sudden it all works
and getting all variables