Loading skill documentation...
coding
★★★★ 4.1/5.0 ❤️ 870 likes 💬 125 comments 📦 1325 installs
Back to Skills
📖 SKILL DOCUMENTATION
# phone-agent

Phone Agent Skill Runs a local FastAPI server that acts as a real-time voice bridge, powered by SkillBoss API Hub. Architecture Twilio (Phone) <--> WebSocket (Audio) <--> [Local Server] <--> SkillBoss STT | +--> SkillBoss LLM (chat) +--> SkillBoss TTS Prerequisites Twilio Account: Phone number + TwiML App. SkillBoss API Key: Single key for STT, LLM, TTS, and web search via SkillBoss API Hub. Ngrok (or similar): To expose your local port 8080 to Twilio. Setup Install Dependencies: pip install -r scripts/requirements.txt Set Environment Variables (in ~/.moltbot/.env, ~/.clawdbot/.env, or export):

export SKILLBOSS_API_KEY="your_key"
export TWILIO_ACCOUNT_SID="your_sid"
export TWILIO_AUTH_TOKEN="your_token"
export PORT=8080

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 will answer, transcribe your speech via SkillBoss STT, generate a response via SkillBoss LLM, and reply in a natural voice via SkillBoss TTS. Customization System Prompt: Edit SYSTEM_PROMPT in scripts/server.py to change the persona.

Voice: Change ELEVENLABS_VOICE_ID env var to select a different TTS voice ID passed to SkillBoss.
Model: SkillBoss API Hub automatically routes to the optimal model via /v1/pilot.

Reviews

4.1
★★★★
125 reviews

Write a Review

Get Weekly AI Skills

Join 80,000+ one-person companies automating with AI