This integration combines Vobiz telephony with the Pipecat voice agent framework to build intelligent AI-powered phone calls.Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
What you’ll build: An outbound calling system with real-time AI conversations powered by OpenAI (STT → LLM → TTS), automatic call recording, and bidirectional audio streaming.Call flow:
curl POST
→
Vobiz API
→
Call initiated
→
Call answered
→
Vobiz requests XML
→
Server returns WebSocket URL
→
Audio streams
→
Pipecat bot (STT → LLM → TTS)
→
AI conversation + Recording
Features
AI Voice Conversations
Natural conversations powered by OpenAI GPT + TTS/STT
Outbound Calling
Trigger calls via REST API from anywhere
Automatic Recording
All conversations automatically recorded and saved
Real-time Streaming
Bidirectional audio via WebSockets
Prerequisites
Vobiz Account with Auth ID and Auth Token → Sign up
OpenAI API Key for LLM, STT, and TTS → Get API key
Python 3.10+ installed on your system
ngrok for local development → Download ngrok
Installation
Configure environment
The repo ships an Where to find these values:
env.example file. Copy it and fill in your values:.env
OPENAI_API_KEY- OpenAI Platform → API KeysVOBIZ_AUTH_ID- Vobiz Console → Account SettingsVOBIZ_AUTH_TOKEN- Vobiz Console → Account SettingsPUBLIC_URL- Your ngrok URL (set in Step 2 of Usage)VOBIZ_PHONE_NUMBER(optional) - Vobiz number used as the caller-ID for/startDEEPGRAM_API_KEY(optional) - drop-in alternative to OpenAI Whisper for STT
Usage
Start ngrok
In a new terminal, expose your local server:Copy the ngrok URL from the output (for example,
https://abc123.ngrok-free.app).Make a call
There are two ways to trigger an outbound call - pick whichever fits your stack.What happens next:
- Server's /start helper (easiest)
- Direct Vobiz API
The repo exposes
POST /start on the local server. It wraps the Vobiz Call API and auto-fills answer_url from your PUBLIC_URL, plus uses VOBIZ_PHONE_NUMBER as from when set.- Phone rings at the “to” number
- When answered, Vobiz requests XML from your server’s
/answerendpoint - Server returns a WebSocket URL pointing at
/ws - Audio streams bidirectionally to the Pipecat bot
- AI assistant speaks and listens (STT → LLM → TTS)
- Conversation is automatically recorded; MP3 fetched via
/recording-ready
Receiving inbound calls
Configure your Vobiz number to handle incoming calls with your Pipecat agent.Open Applications
Log in to the Vobiz Console and navigate to the Applications section in the sidebar.

Create an application
Click Create New Application and give it a name (for example, “Pipecat Agent”).

Configure URLs
Set the Answer URL to your ngrok URL (for example, 
https://.../answer) and select POST method. You can use the same URL for Hangup or leave it blank.
Success: Calls to your Vobiz number will now be handled by your local Pipecat server!
Quick reference
Server endpoints
| Endpoint | Method | Description |
|---|---|---|
/start | POST | Trigger an outbound call. Body: { "to": "+91..." }. Wraps the Vobiz Call API. |
/answer | POST | Called by Vobiz when the call is answered. Returns XML pointing at /ws. |
/ws | WebSocket | Bidirectional audio between Vobiz and the Pipecat bot. |
/recording-finished | POST | Vobiz callback when recording stops. Logs metadata. |
/recording-ready | POST | Vobiz callback when the recording is ready. Auto-downloads the MP3 via download_recording.py. |
Project files
| File | Purpose |
|---|---|
server.py | FastAPI app - owns /start, /answer, /ws, and the recording callbacks |
bot.py | Pipecat pipeline - STT → LLM → TTS, runs per call |
download_recording.py | Helper used by /recording-ready to pull the MP3 from Vobiz |
requirements.txt | Python dependencies (FastAPI, Pipecat, OpenAI SDK, etc.) |
env.example | Template for your .env file - copy and fill in |
Customizing the bot
Editbot.py to customize your AI assistant:
Change Bot Personality
Change TTS Voice
Integration complete!You can now make AI-powered phone calls with Vobiz and Pipecat.
Next steps
- Customize your AI assistant’s personality in
bot.py - Deploy to production (AWS/GCP/Heroku) instead of ngrok
- Add custom business logic and integrations
Resources
Vobiz Documentation External ResourcesBuild it with an AI agent
Clone, configure, and run the Vobiz-X-Pipecat repo - your first AI voice agent in ~5 minutes.
