Workflows, or Flows, are sequences of steps that your bot takes:
Each Workflow represents a reusable, customizable section of your bot’s logic. You can use them to organize your bot’s behaviour. For example, you might want to:
Greet users and offer assistance
Validate a user response
Collect personal data before checking out
Instead of having the logic for each of these tasks in one big sequence, you can put each one in its own Workflow. Then, just transition to whichever Workflow you need.
Workflows are made up of Nodes that determine their behaviour. You can modify the Nodes within a Workflow by dragging and dropping them.Every Workflow you create has at least two Nodes:
An Entry Node that executes whenever you transition to the Workflow
An Exit Node which exits the current Workflow and returns to its parent Workflow
You can put any amount of Nodes in between these two — they’ll execute in order when you transition to the Workflow.
The Error Workflow executes when there’s an unexpected error in one of your other Workflows. You can use it to inform the user that something went wrong:
Instead of an Exit Node, the Error Workflow contains an End Node. This ensures that the conversation ends after the error occurs.
The Conversation End Workflow executes right before the conversation ends explicitly. You can use it to summarize the conversation before it ends, or offer follow-up actions:
Instead of an Exit Node, the Conversation End Workflow contains an End Node. This ensures that the conversation ends after the Workflow executes.
The Conversation End Workflow only executes before the conversation ends explicitly — that is, when a Workflow transitions to an End Node.Since Autonomous Nodes don’t transition to an End Node when the user ends the conversation, they won’t transition to the Conversation End Workflow by default.
You can also browse Botpress Hub for user-uploaded Workflows and add them to your bot. Just filter by Workflow to see all available Workflows:
To add any Workflow, select it, then select Install Workflow.
To edit a Workflow you installed from Botpress Hub, you need to make a copy of it within your bot. After installing, select Make a copy and Edit — the Workflow will then open in Studio.
You can share any Workflow you create on Botpress Hub to make it available to other users. Just select Share Workflow in the upper-right corner of the Workflow and fill out the required fields.