twilio-voice-conversation-relay
Skill by openai
Twilio ConversationRelay skill for building AI voice agents on phone calls. It covers TwiML setup, WebSocket message handling, LLM integration, and streaming voice responses for developers.
Install twilio-voice-conversation-relay
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.claude/skills && cp -r /tmp/plugins/plugins/twilio-developer-kit/skills/twilio-voice-conversation-relay ~/.claude/skills/twilio-voice-conversation-relayRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install twilio-voice-conversation-relay in Claude Code
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/plugins/plugins/twilio-developer-kit/skills/twilio-voice-conversation-relay ~/.gemini/antigravity-cli/skills/twilio-voice-conversation-relayAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install twilio-voice-conversation-relay in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through building voice agents with Twilio ConversationRelay. Twilio handles speech recognition (ASR) and text-to-speech (TTS), and the app receives caller transcripts over a persistent WebSocket. The skill covers TwiML setup, WebSocket message types, LLM integration, streaming responses, and voice provider configuration.
Your server receives prompt events containing the transcript, calls an LLM, and sends text back for playback. Responses can stream token by token to lower latency. The skill notes that ConversationRelay requires onboarding on a Twilio account, needs a wss:// TLS endpoint, and has no built-in content safety, so LLM output is spoken verbatim. It is aimed at developers building voice bots, IVR replacements, or real-time AI voice assistants on Twilio calls.
Written from the project's SKILL.md and checked against it.
What it can do
- TwiML setupReturns TwiML that points a Twilio call to your ConversationRelay WebSocket server.
- WebSocket message handlingExplains the message types received from and sent to Twilio, such as prompt, text, and interrupt.
- Streaming LLM responsesShows how to send LLM output token by token so Twilio can start speaking earlier.
- Voice configurationShows how to set voice, language, transcription provider, speech model, and DTMF interruption.
- Security guidanceAdvises isolating ASR transcripts as untrusted input and filtering LLM output before speaking it.
What you need
- Upgraded Twilio account with ConversationRelay access
- A voice-capable Twilio phone number
- TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN
- WebSocket server reachable via wss://
- An LLM integration such as OpenAI or Anthropic
Try asking
- Build a Flask endpoint that returns ConversationRelay TwiML for my Twilio number.
- Write a WebSocket handler that sends LLM replies back to Twilio with streaming tokens.
- Configure ConversationRelay with Deepgram transcription and DTMF interruption enabled.
Good to know
- Text in and text out only. No raw audio access.
- Cannot be combined with Media Streams on the same call.
- No automatic WebSocket reconnection. A dropped socket disconnects the call.
- Voice only. No SMS or messaging support.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/twilio-developer-kit/skills/twilio-voice-conversation-relay/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml243 B
Alternatives to twilio-voice-conversation-relay
All alternatives →Explains how to set up and verify Zoom webhooks for event-driven workflows. Covers signature checks, event subscriptions, delivery handling, retries and event-type selection for developers.
Posts text, images and videos to Weibo, and publishes headline articles from Markdown files. It works through a real Chrome browser over CDP. The scripts only fill in the content, and the user reviews and publishes manually.
Adds another phone number to an existing Dial channel in NanoClaw, so one install can answer SMS and AI voice calls on several numbers. Intended for operators who already run Dial and want a second or third line.
Explains how to set up and use Zoom WebSockets for persistent, low-latency Zoom event streams. Intended for workflows where WebSockets are preferred over webhooks.
Adds personal WeChat support to NanoClaw through Tencent's official iLink Bot API. It uses long-polling and QR code login, so no public webhook URL is needed. It is for NanoClaw users who want a personal WeChat bot channel.
Guides AI assistants through the bundled Zoom MCP connectors for meetings, recordings, meeting assets and transcripts. Intended for planning or troubleshooting tool-based Zoom access after routing to an MCP workflow.
Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number
twilio-voice-conversation-relay: common questions
Can I use ConversationRelay on a new Twilio account right away?
No. The skill says ConversationRelay requires onboarding through the Twilio Console and access is not instant.
Does ConversationRelay provide its own LLM?
No. The skill says it is a pure transport layer, so you bring your own LLM through the WebSocket server.
Which speech providers can be used?
The skill lists Deepgram and Google Cloud STT for ASR, and Deepgram, Amazon Polly, Google Cloud TTS, and ElevenLabs for TTS.
How do I install twilio-voice-conversation-relay?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is twilio-voice-conversation-relay free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is twilio-voice-conversation-relay safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to twilio-voice-conversation-relay?
Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.
