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
uvpackage manager
-
Setup your virtual environment and install dependencies:
uv sync
-
Create an .env file with API keys for
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:uv run 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.