Files
pipecat/examples/news-chatbot/server
Aleix Conchillo Flaqué 3d702a5c39 minor examples cleanup
2025-05-09 09:16:10 -07:00
..
2025-01-24 18:59:46 -03:00
2025-05-09 09:16:10 -07:00
2025-01-24 18:59:46 -03:00
2025-02-06 11:11:37 -08:00
2025-01-24 18:59:46 -03:00

News Chatbot Server

A FastAPI server that manages bot instances and provide endpoint for Pipecat client connections.

Endpoints

  • POST /connect - Pipecat client connection endpoint

Environment Variables

Copy env.example to .env and configure:

# Required API Keys
DAILY_API_KEY=           # Your Daily API key
DEEPGRAM_API_KEY=        # Your Deepgram API key
GOOGLE_API_KEY=          # Your Google/Gemini API key
CARTESIA_API_KEY=        # Your Cartesia API key

# Optional Configuration
DAILY_API_URL=           # Optional: Daily API URL (defaults to https://api.daily.co/v1)
DAILY_SAMPLE_ROOM_URL=   # Optional: Fixed room URL for development
HOST=                    # Optional: Host address (defaults to 0.0.0.0)
FAST_API_PORT=           # Optional: Port number (defaults to 7860)

Running the Server

Set up and activate your virtual environment:

python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

Install dependencies:

pip install -r requirements.txt

If you want to use the local version of pipecat in this repo rather than the last published version, also run:

pip install --editable "../../../[daily,deepgram,google,cartesia,openai,silero]"

Run the server:

python server.py