Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

daily-co/pipecat-cloud-simple-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caution

This repo is no longer maintained. Check out the simple-chatbot example for an update to date example that can be deployed to Pipecat Cloud.

Simple Chatbot for Pipecat Cloud

This project demonstrates how to build a complete Pipecat AI agent application with both client and server components. It includes a Next.js client for interacting with a Pipecat AI bot server through Daily.co's WebRTC transport.

Project Overview

  • Server: Python-based Pipecat bot with video/audio processing capabilities
  • Client: Next.js TypeScript web application using the Pipecat React & JS SDKs
  • Infrastructure: Deployable to Pipecat Cloud (server) and Vercel (client)

See the simple-chatbot example with different client and server implementations.

Quick Start (Local run)

You'll need two terminal windows open to run locally.

Terminal 1: Server Setup

  1. Navigate to the server directory:

    cd server
  2. Make sure you have uv installed:

    curl -LsSf https://astral.sh/uv/install.sh | sh

    Need help? Refer to the uv install documentation.

  3. Create a venv and install example dependencies:

    uv sync
  4. Create a .env file with your API keys:

    cp env.example .env
    # Edit .env with your API keys
  5. Run the bot:

    python bot.py -t daily

    You can join this client via Daily's Prebuilt UI at http://localhost:7860 or follow step 2 to join from the simple-chatbot client.

Terminal 2: Client Setup

  1. In a separate terminal, navigate to the client directory:

    cd client-react
  2. Install dependencies:

    npm install

Create .env.local file and add your PIPECAT_CLOUD_API_KEY and AGENT_NAME:

```bash
cp env.local.example .env.local
```

> Create a Pipecat Cloud API public key using the dashboard. This key is still a secret, so protect it. It's meant to launch your Pipecat apps.
  1. Run the client app:

    npm run dev
  2. Open http://localhost:3000 to interact with your agent through the Next.js client.

Deployment

See the Pipecat Quickstart for a complete walkthrough.

Deploy Server to Pipecat Cloud

  1. Install the Pipecat CLI:

    uv tool install pipecat-ai-cli
  2. Authenticate:

    pipecat cloud auth login
  3. From the server directory, build and push your Docker image:

    cd server
    pipecat cloud docker build-push
  4. Create a secret set for your API keys:

    pipecat cloud secrets set simple-chatbot-secrets --file .env
  5. Deploy to Pipecat Cloud:

    pipecat cloud deploy

    IMPORTANT: Before deploying, you need to update your image name in pcc-deploy.toml and set up image pull secrets. Learn how to add an image pull secret.

Test using Pipecat Cloud Sandbox

You can test your deployment to ensure everything is working using the Pipecat Cloud Sandbox in your Pipecat Cloud Dashboard.

Deploy Client to Vercel

  1. Push your Next.js client to GitHub

  2. Connect your GitHub repository to Vercel

  3. Add your PIPECAT_CLOUD_API_KEY and AGENT_NAME environment variable in Vercel

  4. Deploy with the Vercel dashboard or CLI

Project Structure

simple-chatbot/
├── client-next/            # Next.js client application
│   ├── src/
│   │   ├── app/            # Next.js app routes
│   │   │   └── api/
│   │   │       └── connect/ # API endpoint for Daily.co connection
│   │   ├── components/     # React components
│   │   └── providers/      # React providers including RTVIProvider
│   ├── package.json
│
└── server/                # Pipecat bot server
    ├── assets/            # Robot animation frames
    ├── bot.py             # The Pipecat pipeline implementation
    ├── Dockerfile         # For building the container image
   Docker image
    ├── requirements.txt   # Python dependencies
    ├── pcc-deploy.toml    # Pipecat Cloud deployment config

About

A Pipecat Cloud deployable version of simple-chatbot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •