How to create a new bot scenario in Scenario Builder?
Scenario Builder is a new module that replaces Scenario Dialog. This guide helps you create a basic scenario and configure its structure.
When you need it
- You need to create a new bot with its own service scenario.
- You need to build dialog logic for automating client responses.
- You need to configure the sequence of messages and actions for the bot.
What you need to know
- Scenario — a sequence of messages, actions, and logical transitions the bot executes during a user dialog.
- Section — a logical block of the scenario with nodes and entry/exit points.
- Node — an individual scenario element (message, input wait, action, etc.).
- Edge — a connection between nodes that defines the execution sequence.
Before you start
You are logged in with integrator or administrator rights. You have a bot created for which to create the scenario. Feature flags are configured (contact your administrator).
Step-by-step instructions
1. Open Scenario Builder
- Go to Scenario Builder via
Menu → Scenario Builderor Process Library. - Select the bot for which to create the scenario.
- Click «Open constructor» or go to
/scenario_builder/:id/scenario/:section_id.
2. Create the first section
- In the left panel (sections), click «Add section» or «Create section».
- Enter the section name (e.g., «Welcome»).
- Click «Create» — the section appears in the list.
3. Add start node
- On the canvas, click the «+» (add node) button.
- In the modal, select Start.
- The node appears on the canvas. Configure the trigger (channels, webhook, etc.) in the Node Inspector on the right.
4. Add message with buttons
- Click «+» and select Message with buttons (MessageKeyboard).
- Connect the Start node to MessageKeyboard via an edge.
- In Node Inspector, enter the message text and add buttons.
5. Add input wait (optional)
- Click «+» and select Input wait (WaitForInput).
- Connect MessageKeyboard to WaitForInput via an edge.
- In Node Inspector, configure input type, validation, and variable for saving.
6. Save the scenario
- Check the structure on the canvas — all nodes should be connected.
- Click «Save» in the toolbar or press
Ctrl+S(Mac:Cmd+S). - The system saves changes and shows a success message.
What happens next
The scenario is saved and ready to use. The bot will execute the sequence of actions according to the created logic.