Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 85
  • 8.6k stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-relay

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install twilio-voice-conversation-relay in Claude Code

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

A

No 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 →

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.

twilio-voice-conversation-relay Install

Add to stack

Loading.