Skip to main content

Basic usage

The backend automatically falls back to the WhatsApp configuration tied to the conversation. Only set whatsapp_config_id on a node when you need to override that default.

Constructor

  • name: Flow identifier (alphanumeric + underscores)
  • description: Optional description

Methods

add_node()

Add a node to the flow. Each node needs a unique ID.

add_edge()

Connect two nodes by their IDs.

validate()

Check flow structure. Required before deployment.
  • Must have exactly one StartNode
  • All nodes must be reachable from StartNode
  • No duplicate node IDs

Node IDs

Node IDs use format {type}_{timestamp}: