Skip to main content

Initialization

Initialize your flow by creating a FlowManager instance and calling initialize() to start the conversation. First, create the FlowManager:
Then, initialize by passing the first NodeConfig into the initialize() method:

Cross-Node State

Pipecat Flows supports cross-node state through the flow_manager.state dictionary. This persistent storage lets you share data across nodes throughout the entire conversation:

Global Functions

Pipecat Flows supports defining functions that are available across all nodes in your flow. They’re defined in the same way as node-specific functions, but are passed into the FlowManager at initialization:

Usage Example

Here’s an example that ties together all the concepts covered in the guides: