| name | retellai-webhooks-events |
| description | Retell AI webhooks events — AI voice agent and phone call automation.
Use when working with Retell AI for voice agents, phone calls, or telephony.
Trigger with phrases like "retell webhooks events", "retellai-webhooks-events", "voice agent".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.9.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","retellai","voice","telephony","ai-agents"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Retell AI Webhooks Events
Overview
Handle Retell AI webhook events for call lifecycle, transcripts, and function execution.
Prerequisites
- HTTPS webhook endpoint
- Agent configured with webhook URL
Instructions
Step 1: Configure Webhook URL
await retell.agent.update(agentId, {
webhook_url: 'https://your-app.com/webhooks/retell',
});
Step 2: Webhook Endpoint
import express from 'express';
const app = express();
app.post('/webhooks/retell', express.json(), async (req, res) => {
const { event, call } = req.body;
switch (event) {
case 'call_started':
console.log(`Call started: ${call.call_id} from ${call.from_number}`);
break;
case 'call_ended':
console.log(`Call ended: ${call.call_id}`);
console.log(` Duration: ${call.duration_ms}ms`);
console.log(` Status: ${call.call_status}`);
(call.) {
(call., call.);
}
;
:
.();
.();
;
:
.();
}
res.().({ : });
});