zabloon_24854_87367
12/08/2025, 9:42 AMAI Evy
12/08/2025, 9:42 AMAI Evy
12/08/2025, 9:42 AMcall_inbound webhook is specifically for deciding how to handle an inbound call/SMS (e.g., override agent, dynamic variables, etc.) . [(1) ]() It does not deliver call-end events or transcripts.
2. What you need for call end + transcript
Call-level events (call_started, call_ended, call_analyzed) are sent via the Call Event Webhook system. [(2) ]()
- call_ended includes all fields from the call object except call_analysis.
- call_analyzed includes full call data including the call_analysis object (this is where analysis/summary lives) .
Example payload for `call_ended`:
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
}
}AI Evy
12/08/2025, 9:43 AMts
// 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() ;
}) ;AI Evy
12/08/2025, 9:43 AMcall_inbound logic (if you need it) . [(1) ]()
- Additionally, configure the Call Event Webhook at the account/monitoring level (not just the agent webhook) to your /webhook (or similar) endpoint so you receive call_ended and call_analyzed events with transcript and analysis. [(3) ]() [(2) ]()
If you need help locating where to configure the Call Event Webhook in your account UI, say what you’ve already set (agent-level vs account-level webhook) , and I can point to the most relevant part of the docs.AI Evy
12/08/2025, 9:43 AMAI Evy
12/08/2025, 9:43 AM