phone-agent
Skill3 starsChanged 7 months agoMITView on GitHub
Run a real-time AI phone agent using Twilio, Deepgram, and OpenAI/ElevenLabs TTS. Handles incoming calls, transcribes audio, generates responses via LLM, and speaks back via streaming TTS. Use when user wants to: (1) Test voice AI capabilities, (2) Handle phone calls programmatically, (3) Build a conversational voice bot.
- Reads credentials
- Installs packages
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- charl3y15/skillsedited, first seen Nov 22, 2026
- delorenj/skillsedited, first seen Nov 7, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- delorenj/skills★ 1779% same
- charl3y15/skills★ 082% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 83
Call your Twilio number. The agent should answer, transcribe your speech, think, and reply in a natural voice.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Phone Agent Skill
Runs a local FastAPI server that acts as a real-time voice bridge.
Architecture
Twilio (Phone) <--> WebSocket (Audio) <--> [Local Server] <--> Deepgram (STT)
|
+--> OpenAI (LLM)
+--> OpenAI TTS or ElevenLabs (TTS)Prerequisites
- Twilio Account: Phone number + TwiML App.
- Deepgram API Key: For fast speech-to-text.
- OpenAI API Key: For conversation logic + TTS (default).
- ElevenLabs API Key (optional): For higher-quality TTS (set
TTS_PROVIDER=elevenlabs). - Ngrok (or similar): To expose your local port 8080 to Twilio.
Setup
- Install Dependencies:
pip install -r scripts/requirements.txt Set Environment Variables (in legacy
~/.moltbot/.env,~/.clawdbot/.env, or export):export DEEPGRAM_API_KEY="your_key" export OPENAI_API_KEY="your_key" export TWILIO_ACCOUNT_SID="your_sid" export TWILIO_AUTH_TOKEN="your_token" export PORT=8080 # TTS Provider (default: openai — ~6x cheaper than ElevenLabs) export TTS_PROVIDER="openai" # or "elevenlabs" export OPENAI_TTS_VOICE="echo" # alloy, echo, fable, onyx, nova, shimmer export OPENAI_TTS_MODEL="tts-1" # tts-1 (fast) or tts-1-hd (quality) # Only needed if TTS_PROVIDER=elevenlabs export ELEVENLABS_API_KEY="your_key" export ELEVENLABS_VOICE_ID="onwK4e9ZLuTAKqWW03F9"Optional - System Prompt Customization (priority: file > env var > built-in):
# Option 1: Load from file export SYSTEM_PROMPT_FILE="/path/to/custom-prompt.txt" # Option 2: Set directly via env var export SYSTEM_PROMPT="You are a helpful phone assistant. Be concise and friendly." # Option 3: Use built-in defaults with name customization export AGENT_NAME="Niemand" export OWNER_NAME="Martin's"- Start the Server:
python3 scripts/server.py - Expose to Internet:
ngrok http 8080 - Configure Twilio:
- Go to your Phone Number settings.
- Set "Voice & Fax" -> "A Call Comes In" to Webhook.
- URL:
https://<your-ngrok-url>.ngrok.io/incoming - Method:
POST
Usage
Call your Twilio number. The agent should answer, transcribe your speech, think, and reply in a natural voice.
Customization
- System Prompt: Configure via
SYSTEM_PROMPT_FILE(load from file),SYSTEM_PROMPT(env var), or modify the built-in defaults withAGENT_NAMEandOWNER_NAME. - TTS Provider: Set
TTS_PROVIDER=openai(default, $0.03/min) orTTS_PROVIDER=elevenlabs($0.17/min, higher quality). - Voice (OpenAI): Set
OPENAI_TTS_VOICE— options: alloy, echo, fable, onyx, nova, shimmer. - Voice (ElevenLabs): Change
ELEVENLABS_VOICE_IDto use different voices. - Model: Switch
gpt-4o-minitogpt-4for smarter (but slower) responses. - Language: Set
AGENT_LANGUAGEtoenordefor English or German.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

