Skip to main content

Conversation Flow management for Pipecat AI applications

Project description

pipecat

PyPI Docs Discord

Pipecat Flows is an add-on framework for Pipecat that allows you to build structured conversations in your AI applications. It enables you to create both predefined conversation paths and dynamically generated flows while handling the complexities of state management and LLM interactions.

The framework consists of:

  • A Python module for building conversation flows with Pipecat
  • A visual editor for designing and exporting flow configurations

Dependencies

Installation

  1. Install uv

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

    Need help? Refer to the uv install documentation.

  2. Install the module

    # For new projects
    uv init my-pipecat-flows-app
    cd my-pipecat-flows-app
    uv add pipecat-ai-flows
    
    # Or for existing projects
    uv add pipecat-ai-flows
    

Using pip? You can still use pip install pipecat-ai-flows to get set up.

Quick Start

See Quick Start README.

For more detailed examples and guides, visit our documentation.

Examples

The repository includes several complete example implementations demonstrating various features of Pipecat Flows.

Available Examples

The examples demonstrate various conversation flows including food ordering, restaurant reservations, patient intake, insurance quotes, and warm transfers. All examples support multiple LLM providers (OpenAI, Anthropic, Google Gemini, AWS Bedrock) to demonstrate cross-platform compatibility.

Getting Started with Examples

For detailed setup instructions, configuration, and running examples, see the Examples README.

Quick start:

# Install dependencies
uv sync
uv pip install "pipecat-ai[daily,openai,deepgram,cartesia,silero,examples]"

# Configure environment
cp env.example .env  # Add your API keys

# Run an example
uv run examples/food_ordering.py

Contributing to the framework

  1. Clone the repository and navigate to it:

    git clone https://github.com/pipecat-ai/pipecat-flows.git
    cd pipecat-flows
    
  2. Install development dependencies:

    uv sync --group dev
    
  3. Install the git pre-commit hooks (these help ensure your code follows project rules):

    uv run pre-commit install
    

    The package is automatically installed in editable mode when you run uv sync.

Tests

The package includes a comprehensive test suite covering the core functionality.

Setup Test Environment

Install venv and dependencies:

uv sync --group dev

Running Tests

Run all tests:

uv run pytest tests/

Run specific test file:

uv run pytest tests/test_state.py

Run specific test:

uv run pytest tests/test_state.py -k test_initialization

Run with coverage report:

uv run pytest tests/ --cov=pipecat_flows

Pipecat Flows Editor

A visual editor for creating and managing Pipecat conversation flows.

Food ordering flow example

Visit the Pipecat Flows Editor repo to learn more.

Contributing

We welcome contributions from the community! Whether you're fixing bugs, improving documentation, or adding new features, here's how you can help:

  • Found a bug? Open an issue
  • Have a feature idea? Start a discussion
  • Want to contribute code? Check our CONTRIBUTING.md guide
  • Documentation improvements? Docs PRs are always welcome

Before submitting a pull request, please check existing issues and PRs to avoid duplicates.

We aim to review all contributions promptly and provide constructive feedback to help get your changes merged.

Getting help

➡️ Join our Discord

➡️ Pipecat Flows Guide

➡️ Reach us on X

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_ai_flows-1.0.0.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipecat_ai_flows-1.0.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file pipecat_ai_flows-1.0.0.tar.gz.

File metadata

  • Download URL: pipecat_ai_flows-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pipecat_ai_flows-1.0.0.tar.gz
Algorithm Hash digest
SHA256 16f70c749fdb68258c68631819fc5b73fe025f511acc0e4328a5c5b5f1674efa
MD5 845734e7a143c057bc6a0f7f352aec9e
BLAKE2b-256 31dea9bbd7306039b9b46cd4cabf4ab4a5312b8434b4ef6141bda31129c1412d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipecat_ai_flows-1.0.0.tar.gz:

Publisher: publish-pypi.yml on pipecat-ai/pipecat-flows

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipecat_ai_flows-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pipecat_ai_flows-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7202c23db45af48f35e7073ac5e6d508b823bf76f52061f39da47d88291879
MD5 edc5e8c46d23c8ea2dbac38d2e99a482
BLAKE2b-256 87bf2b6e9a0d6b6fcda5900a14a92b08d2f1c631b0f815613df8d95d01bc5e01

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipecat_ai_flows-1.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on pipecat-ai/pipecat-flows

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page