An advanced tutorial on the Flow Builder. Create your own custom bots and automate complex workflows from scratch.

1. Introduction

The Flow Builder is an advanced tool that allows you to create your own custom bots from scratch. A "Flow" is a sequence of automated steps (blocks) that can process data, call APIs, interact with language models, and more. This guide provides a basic tutorial on how to build your first custom bot flow.

2. Accessing the Feature

18-creatbot-autonomous-en.png

3. Main Interface Elements

Flow Information: The fields at the top for setting the bot's "Flow Name" and "Description".

Flow Start Block: The first block in any flow, where you can pre-define "Variables" with an "Initial Value".

Add Block Button: The + Add Block button used to add new steps (actions) to your flow.

Block Library: A menu that appears when you add a block, allowing you to choose from different action types (API Call, Language Model, etc.).

19-botbuilderscreen-en.png

4. Key Actions: Building a Simple Flow

Action 1: Set Up the Flow

Step 1: In the Flow Builder, give your new bot a clear Flow Name and a detailed Description in the "Flow Information" section. The description helps the system recommend your bot to users for relevant tasks.

20-flowvariable-autonomous-en.png

Action 2: Add and Configure Blocks

Step 1: Click the "+ Add Block" button.

21-addblock-autonomous-en.png

Step 3: Configure the block's fields. For example, in an "LLM Instruction" block, you would provide the instruction and select the input and output variables.

Action 3: Save and Deploy the Bot

Step 1: Ensure your flow ends with the "Flow Complete" block.

Step 2: Click the "Save Flow" button in the top right corner. Your new bot will now be available for use in the chat interface and will appear in the "Bot Flows" list on the skills page.

5. Tips & Notes

Plan Your Logic: Before building, map out the steps and variables your bot will need.

Chain Blocks Together: The output variable of one block can be used as the input variable for the next, allowing you to create powerful, multi-step automations.

Interactive Bots: Use the "LLM Instruction" block to have your bot ask the user for information during a conversation, making your flow dynamic.