retellai-known-pitfalls
Identify and avoid Retell AI anti-patterns and common integration mistakes. Use when reviewing Retell AI code for issues, onboarding new developers, or auditing existing Retell AI integrations for best practices violations. Trigger with phrases like "retellai mistakes", "retellai anti-patterns", "retellai pitfalls", "retellai what not to do", "retellai code review".
Install
mkdir -p .claude/skills/retellai-known-pitfalls && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2764" && unzip -o skill.zip -d .claude/skills/retellai-known-pitfalls && rm skill.zipInstalls to .claude/skills/retellai-known-pitfalls
About this skill
Retell AI Known Pitfalls
Overview
Real gotchas when building voice AI agents with Retell AI. Retell handles telephony, speech-to-text, and text-to-speech in a WebSocket pipeline -- latency sensitivity and audio-specific failure modes require different thinking than typical REST APIs. This skill documents the top four anti-patterns with bad/good code comparisons and explains why each one causes production issues.
Prerequisites
- Retell AI API key and agent configured
- Understanding of WebSocket-based communication
- Awareness of telephony concepts (PSTN, SIP)
Instructions
Step 1: Manage Voice Latency Budget
Retell pipelines must respond in under 1 second for natural conversation. Avoid synchronous database queries and external LLM calls in the webhook handler hot path. Pre-compute context, cache responses in Redis, and defer heavy processing to background tasks. See anti-patterns for bad vs good code comparison.
Step 2: Handle Call State Transitions
Calls can disconnect at any point. Track active calls in a Map, clean up resources on call_ended events, and run a periodic cleanup timer for missed end events (zombie sessions). Full pattern in anti-patterns.
Step 3: Configure Audio Quality
Poor audio input causes misrecognition. Always configure ambient_sound, responsiveness, interruption_sensitivity, and enable_backchannel rather than relying on defaults. Defaults are optimized for quiet rooms, not real-world call environments.
Step 4: Respect Concurrent Call Limits
Retell enforces concurrent call limits per plan. Track active concurrent calls and return 429 when at capacity, rather than letting the API fail with a cryptic error. Check plan limits and implement pre-flight capacity checks.
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Awkward silences | Webhook response > 1s | Cache context, respond under 200ms |
| Misrecognition | Background noise | Set ambient_sound config explicitly |
| Zombie sessions | Missed call_ended events | Run periodic cleanup timer (60s interval) |
| Calls rejected | Hit concurrent limit | Track active calls, queue overflow |
| One-sided audio | WebSocket connection drop | Implement reconnection logic with backoff |
Examples
For complete bad-vs-good code comparisons covering latency, state management, audio config, and concurrency, see anti-patterns.
Resources
Output
- Webhook handler optimized for sub-200ms response time
- Call state tracking implemented with cleanup for zombie sessions
- Audio quality configured for real-world environments
- Concurrent call limits enforced with capacity tracking
More by jeremylongshore
View all skills by jeremylongshore →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversBoost AI coding agents with Ref Tools—efficient documentation access for faster, smarter code generation than GitHub Cop
Semgrep is a leading code analysis tool that scans code for vulnerabilities, helping developers fix issues swiftly withi
Access Svelte documentation, code analysis, and autofix tools for Svelte 5 & SvelteKit. Improve projects with smart migr
FFmpeg Media Tools lets you easily extract audio, sound, or music from video files with a simple interface—no command-li
Unlock Instagram insights to boost advertising and marketing services. Analyze interactions for better IG engagement and
Integrate RetellAI Voice Services for ai voice chat, call initiation, and customer service using artificial intelligence
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.