This quickstart example will help you set up your first Flow and explain to you the basics of using Flows.
- Python 3.10 or higher
- Pipecat
- Setup your virtual environment:
python3 -m venv venv
source venv/bin/activate- Install Pipecat Flows:
pip install pipecat-ai-flows- Install the quickstart requirements:
pip install -r requirements.txt- Update your .env file with API keys for Cartesia and Google Gemini. You can find the environment variable names in the env.example.
The example makes use of:
- SmallWebRTCTransport: A free peer-to-peer WebRTC transport, which sends audio to/from the bot
- Cartesia: A service provider for STT and TTS
- Google Gemini: An LLM inference provider
- From within the
/examples/quickstartdirectory, run:
python hello_world.py-
Connect to http://localhost:7860 using your web browser.
-
Press connect to start the example.
The example is a simple bot that asks for your favorite color and leaves. While this is a simple example, it shows all of the basics of building with Flows.
Check out the source code to learn more.