Skip to content
twilio-phone logo

Twilio Phone Skill

twilio-phone

Make phone calls with natural AI voices (ElevenLabs) and send SMS using Twilio CLI. Use this skill when the user wants to make a phone call, send a text message, or use AI-generated voice for calls. Requires Twilio CLI authenticated and ElevenLabs API key.

SKILL.md

Full skill instructions

Twilio Phone Skill

Make phone calls with natural AI-generated voices (ElevenLabs) and send SMS using the official Twilio CLI.

Quick Start - AI Voice Call

To make a call with a natural ElevenLabs voice, run the script:

./​.claude/​skills/​twilio-phone/​scripts/​voice_call.py \
  --to "+61XXXXXXXXXX" \
  --message "Your message here"

Available Phone Numbers

NumberRegionUse For
+61 3 4827 9516AustraliaAustralian calls/​SMS
+1 978 878 5597USAUS calls/​SMS

ElevenLabs Voices

Voice IDNameAccent
IKne3meq5aSn9XLyUdCDCharlieAustralian
JBFqnCBsd6RMkjVDRZzbGeorgeBritish
Xb7hH8MSUJpSbSDYk0k2AliceBritish
EXAVITQu4vr4xnSDxMaLSarahAmerican
CwhRBWXzGAHq8TQ4Fs17RogerAmerican

Default: Charlie (Australian) with eleven_v3 model

Manual Process (Step by Step)

1. Generate audio with ElevenLabs

curl -X POST "https://api.elevenlabs.io/​v1/​text-to-speech/​IKne3meq5aSn9XLyUdCD?output_format=mp3_44100_128" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/​json" \
  -d '{
    "text": "Your message here",
    "model_id": "eleven_v3",
    "voice_settings": {
      "stability": 0.5,
      "similarity_boost": 0.75
    }
  }' \
  --output /​tmp/​call_audio.mp3

2. Upload audio to public URL

curl -s -X POST -F "file=@/​tmp/​call_audio.mp3" "https://tmpfiles.org/​api/​v1/​upload"
# Returns: {"data":{"url":"http://tmpfiles.org/​XXXXXX/​call_audio.mp3"}}
# Convert to direct URL: https://tmpfiles.org/​dl/​XXXXXX/​call_audio.mp3

3. Make call with Twilio

twilio api:core:calls:create \
  --from "+61348279516" \
  --to "+61XXXXXXXXXX" \
  --twiml "<Response><Play>https://tmpfiles.org/​dl/​XXXXXX/​call_audio.mp3</​Play></​Response>"

Basic Twilio TTS Call (No ElevenLabs)

twilio api:core:calls:create \
  --from "+61348279516" \
  --to "+61XXXXXXXXXX" \
  --twiml "<Response><Say voice=\"alice\" language=\"en-AU\">Your message here.</​Say></​Response>"

Sending SMS

twilio api:core:messages:create \
  --from "+61348279516" \
  --to "+61XXXXXXXXXX" \
  --body "Your message here"

TwiML Elements

Play - Play audio file

<Response><Play>https://example.com/​audio.mp3</​Play></​Response>

Say - Text to speech (Twilio built-in)

<Response><Say voice="alice" language="en-AU">Text to speak</​Say></​Response>

Pause - Add silence

<Pause length="2"/>

Gather - Collect DTMF input

<Gather numDigits="1" action="https://example.com/​handle-key">
  <Say>Press 1 for sales, 2 for support.</​Say>
</​Gather>

Call Options

OptionDescription
--timeout 30Ring for 30 seconds before giving up
--recordRecord the call
--machine-detection EnableDetect answering machines
--send-digits "W1234#"Dial extension after connecting

Check Status

# List recent calls
twilio api:core:calls:list --limit 10

# Get specific call details
twilio api:core:calls:fetch --sid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

# List recent SMS
twilio api:core:messages:list --limit 10

Environment Variables

Required in .env:

ELEVENLABS_API_KEY=sk_xxxxx

Twilio CLI must be authenticated first. Run twilio login to configure.

Important Notes

  1. Phone format: Use E.164 format (+61 for Australia, +1 for US)
  2. Australian mobiles: +614XXXXXXXX (drop leading 0)
  3. Audio hosting: tmpfiles.org URLs expire after some time
  4. ElevenLabs model: eleven_v3 is the most natural sounding
  5. Default voice: Charlie (Australian accent)

More Sales & marketing skills

revops logo
Sales & marketing

revops

Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.

53.3K 104.9K
View
lead-magnets logo
Sales & marketing

lead-magnets

Strategic planning and optimization for email capture offers and gated content.

53.3K 103.4K
View
directory-submissions logo
Sales & marketing

directory-submissions

Directory submissions: the foundation layer of distribution that passes backlinks and discovery surface area into your marketing pages.

53.3K 76.3K
View
gsap-timeline logo
Sales & marketing

gsap-timeline

Sequence and choreograph multi-step animations with precise timing control and nested timelines.

15.9K 58.4K
View
launch-strategy logo
Sales & marketing

launch-strategy

Structured framework for planning product launches, feature announcements, and go-to-market strategies.

53.3K 56.8K
View
gws-drive-upload logo
Sales & marketing

gws-drive-upload

Upload files to Google Drive with automatic MIME type detection and metadata.

31.2K 47.2K
View
ci-cd-and-automation logo
Sales & marketing

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

101.4K 43.2K
View
persona-team-lead logo
Sales & marketing

persona-team-lead

Team leadership persona with standup coordination, meeting prep, task delegation, and team communication.

31.2K 29.3K
View
recipe-find-large-files logo
Sales & marketing

recipe-find-large-files

Identify large Google Drive files consuming storage quota.

31.2K 29.2K
View

Sales & marketing AI tools

KreadoAI logo
Sales & marketing

KreadoAI

Revolutionize Video Creation with AI-Generated Avatars and Voices

Paid
View
Followr logo
Sales & marketing

Followr

Social media on autopilot

Paid
View
Logodiffusion logo
Sales & marketing

Logodiffusion

Design custom logos instantly with AI.

Paid
View
I
Sales & marketing

Ideogram

Text-heavy marketing and design images

Freemium
View
Prompt Silo logo
Sales & marketing

Prompt Silo

Boost Your SEO with Content and SEO Silos

Free
View
Marketing Blocks logo
Sales & marketing

Marketing Blocks

Revolutionize Your Marketing with AI-Powered MarketingBlocks!

Paid
View
Scrip AI logo
Sales & marketing

Scrip AI

10X faster & free AI content creation for 100+ use cases

Free
View
T
Sales & marketing

Tribescaler

Tribescaler | Make Your Tweets Go Viral

Paid
View