You are currently viewing the React version of this page. Use the dropdown
to the right to customize this page for your client framework.
This quickstart guide will help you build your first Pipecat voice AI bot with
a React front-end and run it locally. You’ll create a simple conversational
agent that you connect and talk to in real-time via your browser.
The CLI generates React and vanilla JavaScript projects. For React Native,
iOS, Android, or C++, see Building a Voice
UI to get started without the CLI.
Prerequisites
- Python 3.11+ and uv
- Node.js 18+
Step 1: Scaffold your project
init asks how you want to build, choose Scaffold a runnable bot now. The wizard will guide you through the setup. Choose the following options:
This quickstart uses the interactive
pipecat init wizard so you end up with
the same project this guide walks through below. When you’re ready to build
your own bot, we recommend driving development with a coding agent — see
Build Your Next Bot.- Project name:
my-voice-app - Bot type:
Web/Mobile - Client framework:
React - React dev server:
Vite - Transport:
SmallWebRTC
bot/— a Python Pipecat botclient/— a React front-end built on the Voice UI Kit
Step 2: Start the bot
http://localhost:7860.
Step 3: Start the client
http://localhost:5173, click Connect, allow microphone access, and start talking.
First run note: The initial startup may take ~20 seconds as Pipecat
downloads required models and imports. Subsequent runs will be much faster.
Understanding the Quickstart Client
The React app is built on the Voice UI Kit — Pipecat’s library of pre-built voice UI components. Here’s what each file does:
src/config.ts — transport configuration. By default it uses SmallWebRTC for local development. To switch to Daily for production, add your Daily credentials and update AVAILABLE_TRANSPORTS.src/main.tsx — entry point. PipecatAppBase handles transport creation, connection lifecycle, loading states, and errors, passing a ready client down to your app via a render prop.src/components/App.tsx — the UI. Built entirely from Voice UI Kit components:Deploying to production
The.env.example file shows the production configuration. Point VITE_BOT_START_URL at your deployed bot’s start endpoint:Next steps
Voice UI Kit
Customize themes, swap components, and extend the generated UI
Building a Voice UI
Build a React voice app from scratch — understand the SDK without
abstractions
Core Concepts
Understand transports, sessions, events, and media
Deploy your bot
Deploy to Pipecat Cloud for production