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
- 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
Theenv.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