Files
pipecat/examples
kollaikal-rupesh 80bd935c19 Add ServiceSwitcherStrategyFailover for automatic failover on service errors (#3870)
* Add ServiceSwitcherStrategyFailover for automatic error-based service switching

Introduce a strategy hierarchy: ServiceSwitcherStrategy (base) →
ServiceSwitcherStrategyManual (handles ManuallySwitchServiceFrame) →
ServiceSwitcherStrategyFailover (adds error-based failover). ServiceSwitcher
now defaults to ServiceSwitcherStrategyManual with strategy_type optional.
Non-fatal ErrorFrames are forwarded to the strategy via handle_error().

* Move metadata request into _set_active_if_available

Requesting metadata is part of making a service active, so it belongs
alongside setting _active_service and firing on_service_switched. This
removes the duplicate queue_frame calls from ServiceSwitcher push_frame
and process_frame.
2026-03-10 15:37:30 -04:00
..
2026-03-07 15:44:26 -05:00
2025-07-29 11:28:40 -04:00

Pipecat Examples

This directory contains examples to help you learn how to build with Pipecat.

Getting Started

New to Pipecat? Start here:

  • Quickstart - Get your first voice AI bot running in 5 minutes (coming soon)
  • Client/Server Web - Learn to build web applications with Pipecat's client SDKs (coming soon)
  • Phone Bot with Twilio - Connect your bot to a phone number (coming soon)

Foundational Examples

Single-file examples that introduce core Pipecat concepts one at a time. These examples:

  • Build on each other progressively
  • Focus on specific features or integrations
  • Are used for testing with every Pipecat release

See the Foundational Examples README for the complete list.

More Advanced Examples

Ready to explore complex use cases? Visit pipecat-examples for:

  • Production-ready applications
  • Multi-platform client implementations
  • Telephony integrations
  • Multimodal and creative applications
  • Deployment and monitoring examples