Connect each menu button to its own flow (part 2)
Build a separate flow for each main menu button and link it with Start Another Flow, so your flow structure stays organized.
This guide continues the previous guide on flow structure and organisation (part 1). Here you build a separate flow for each button of the main menu and call it from the main menu flow. The main menu stays tidy, and each section can be edited on its own. Before you start, you need a main menu flow (“Undsen tses” in this example) with three buttons: “Бүтээгдэхүүн” (Products), “Холбоо барих” (Contact us) and “Ажилтантай холбогдох” (Talk to staff).
The video shows the panel in English. In the Mongolian panel the same menus and buttons have Mongolian names.
Delete the blocks connected to the buttons
Click a block that a button leads to. A small toolbar appears above the block. Click the trash icon to delete the block.
Only the first block with its three buttons is left in the flow. You rebuild the content of the deleted blocks as separate flows in the next steps.
Look at the button's actions
Click the first block, then click the “Бүтээгдэхүүн” button in the panel that opens on the left. The Edit (Засах) window opens.
Under When This Button is Pressed (Энэ товчлуур дээр дарах үед) you find options such as Send Message, Open Website (Вэбсайт нээх), Call Number and Start Another Flow (Өөр өрөлт эхлүүлэх). If you choose Start Another Flow, a Start Flow #1 block is created and a list of flows appears on the left.
The list only shows flows that already exist. So first create a flow for each button, then come back and select it.
Create the products flow
Click Flows (Өрөлт) in the top left corner to go back to the flow list. Click Add (Нэмэх), type “Бүтээгдэхүүн” in the Add New (Шинээр нэмэх) window and click Continue (Үргэлжлүүлэх).
Click the Send Message block of the new flow and choose Messenger from the Message Type (Мессежийн төрөл) list.
Click Add Content (Контент нэмэх) and add your products as cards with images. Each card can have an image (Upload Image), a Title, a Subtitle, and buttons that you add with Add Button (Товчлуур нэмэх).
Create the contact flow
Go back to the flow list and click Add again to create the flow with your contact details. Name it, for example, “Холбоо барих” (Contact us).
Click the Send Message block, choose Text (Текст) from the Add Content menu and type your address, for example “Манай хаяг-Хороо Дүүрэг” (Our address: khoroo, district).
Click Add Button under the text. Type “Утас” (Phone) in Button Label (Товчлуурын шошго) and choose Call Number. Enter your phone number with the country code (+976) in Phone number (with Country code) and click Save (Хадгалах). This makes a button that calls that number.
Create the talk-to-staff flow
In the same way, create a new flow named “Ажилтантай холбогдох” (Talk to staff). Add Text content to the Send Message block and type a message such as “Ажилтантай холбогдож байна” (Connecting you to a staff member).
Click Add Content again and choose Transfer Conversation to Human under Actions (Үйлдэл), Inbox (Харилцан яриа). When a user reaches this flow, the conversation is handed over to a staff member.
Select a flow for each button
Click the “Бүтээгдэхүүн” button and choose Start Another Flow. Click the new Start Flow #1 block and pick your “Бүтээгдэхүүн” flow from the Start Another Flow list on the left. The block's Send Flow area now shows the name of the selected flow.
Repeat the same for the “Холбоо барих” and “Ажилтантай холбогдох” buttons, selecting the matching flow for each.
Check the structure
The three main menu buttons are now connected to the Start Flow #1, Start Flow #2 and Start Flow #3 blocks, and each block calls its own flow. You can drag the blocks to arrange them so the structure is easy to read.
In the flow list, a yellow mark in front of a name means that flow has not been published yet. Open the main menu flow and each new flow, and click Publish (Нийтлэх) in the top right corner.
You do this in the Chatbot panel.new-cp.smartbot.mn
Open Chatbot panel