/retellai-pack:retellai-webhooks-eventsfrom retellai-pack
Handles Retell AI webhook events for call lifecycle, transcripts, and function execution during AI voice agent conversations.
Ships in retellai-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Handle Retell AI webhook events for call lifecycle, transcripts, and function execution.
// Set webhook URL in agent configuration
await retell.agent.update(agentId, {
webhook_url: 'https://your-app.com/webhooks/retell',
});
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}`);
if (call.transcript) {
await saveTranscript(call.call_id, call.transcript);
}
break;
case 'call_analyzed':
console.log(`Analysis ready: ${call.call_id}`);
console.log(` Summary: ${call.call_analysis?.call_summary}`);
break;
default:
console.log(`Unhandled event: ${event}`);
}
res.status(200).json({ received: true });
});
// When agent triggers a function, Retell calls your URL
app.post('/functions/book-appointment', express.json(), async (req, res) => {
const { patient_name, phone, date, time } = req.body.args;
// Process the booking
const booking = await bookAppointment(patient_name, phone, date, time);
// Return response for agent to speak
res.json({
result: `Appointment booked for ${patient_name} on ${date} at ${time}. Confirmation number: ${booking.id}`,
});
});
| Issue | Cause | Solution |
|---|---|---|
| No webhook events | URL not configured | Set webhook_url on agent |
| Function timeout | Slow backend | Respond within 5 seconds |
| Missing transcript | Short call | Transcript only for calls > 5 seconds |
Common errors: retellai-common-errors
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flight505/skill-forge --plugin retellai-pack30 skills in this plugin
/retellai-advanced-troubleshootingRetell AI advanced troubleshooting — 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 advanced troubleshooting", "retellai-advanced-troubleshooting", "voice agent".
/retellai-architecture-variantsRetell AI architecture variants — 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 architecture variants", "retellai-architecture-variants", "voice agent".
/retellai-ci-integrationRetell AI ci integration — 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 ci integration", "retellai-ci-integration", "voice agent".
/retellai-common-errorsDiagnose and fix Retell AI voice agent errors: call failures, webhook issues, voice quality.
Use when encountering Retell AI errors, debugging call issues, or troubleshooting agents.
Trigger with phrases like "retell error", "call failed", "voice agent not working", "retell debug".
/retellai-core-workflow-aRetell AI core workflow a — 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 core workflow a", "retellai-core-workflow-a", "voice agent".
/retellai-core-workflow-bRetell AI core workflow b — 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 core workflow b", "retellai-core-workflow-b", "voice agent".
Other plugins' skills for the same job