Skip to content

Flow Builder

The Grailgun builder is a visual editor that allows you to create bot interaction scenarios with users without writing code. The builder uses a Block (node) based approach and connections between them to construct dialogue logic.

To the left of the canvas is a panel with a list of Blocks. When you click on a Block button, the corresponding block will be added to the canvas

The Grailgun builder screenshot

The central part of the builder is the workspace (canvas) where Blocks are placed and connected. Workspace features:

  • Navigate the canvas using the pressed middle mouse button or holding the spacebar
  • Zoom using the mouse wheel
  • Automatic Block alignment when moving

To add a new Block:

  1. Select a Block from the panel to the left of the canvas
  2. The new Block will be added to the canvas
  • To move a Block, press and hold the left mouse button on the Block and drag it to the desired location
  • When moving, connections between Blocks are preserved

To create a connection between Blocks:

  1. Hover the cursor over the connection point (port) of the source Block
  2. Press and hold the left mouse button and drag the line to the target Block port
  3. Release the mouse button to create the connection

To edit a Block:

  1. Double-click the Block to select it
  2. A form with Block parameters will open for editing
  1. Select a Block by clicking or mass selection by dragging the mouse cursor with the left button pressed
  2. Press Ctrl+C (Cmd+C for MacOS) keyboard shortcut
  3. Navigate the canvas to where you want to place Block copies, or go to another bot’s canvas
  4. Press Ctrl+V (Cmd+V for MacOS) keyboard shortcut

If there are already identical Blocks on the canvas, the system will offer to replace or duplicate them. When duplicating Blocks with connections, you’ll be offered a choice of connection organization:

  1. “Keep to existing” - will connect originals and duplicated Blocks
  2. “Duplicate to copied” - will keep connections only between duplicated Blocks
  3. “Destroy” - will create duplicated Blocks without connections

To delete a Block:

  1. Select a Block by clicking or mass selection by dragging the mouse cursor with the left button pressed
  2. Press the Delete key on the keyboard

Various types of Blocks are available in the Grailgun builder for constructing scenarios:

The starting point of the scenario where the dialogue begins. This Block cannot be deleted or moved to maintain the integrity of the bot scenario.

The main dialogue element that allows you to send messages to the user. Learn more about the “Message” Block

The Await block allows you to create a delay between Block executions

Currently, saving occurs automatically with every change on the canvas

After making changes to the canvas, you can test the bot:

  1. Find your bot in Telegram
  2. Send it a message with the text “/start” to begin the dialogue
  • Try to organize Blocks logically, positioning related elements nearby
  • Use zoom for working with large scenarios
  • Test the scenario after making significant changes

The current version of the builder does not have an undo function. It’s recommended to save changes regularly.

Currently, the copy and paste function for Blocks between bots is implemented.

  1. Copy one bot’s scenario
  2. Go to another bot’s Builder
  3. Paste the copied Blocks onto the canvas