Skip to main content

Menus and procedures: the flow editor

Build a scripted conversation — messages, questions, buttons, branches, a lookup, another procedure, a hand-over — test it, publish it, and how the store template's seven flows work.

M
Monfri Team
Updated ·6 min read

A flow is a conversation you script: the bot says what you wrote, asks, offers buttons, branches on the answer, looks something up, and hands over to a person where you decide. The bot's menu is a flow, and the procedures it starts — a return, a cancellation — are flows too.

Open the bot → Actions & data → Flows. Each flow shows Published or Draft, and Unpublished changes when a published flow has a newer draft; The bot’s main flow marks the menu.

Create a flow

Type a name in A new flow’s name, choose where it starts from and press Create:

  • Blank — only the Start step;
  • FAQ from the knowledge — a greeting, then answers from the knowledge;
  • Collect a lead — asks the name and the e-mail, then hands over to the team;
  • Support triage — a menu sends the customer to the knowledge or to a person.

The ready steps are written in the bot's language. The editor opens. Open next to a flow opens an existing one; Delete removes it after you confirm — the conversations that went through it stay.

The editor

  • On the left, ADD STEP adds a step. Drag from a step's dot to the next step to connect them; a step with buttons or cases has one dot for each.
  • Click a step to change it on the right; the bin deletes it. Every flow starts at Start.
  • Undo and Redo — also Ctrl+Z and Ctrl+Shift+Z.
Step What it does
Message says a text
Question asks, and keeps the answer in a variable (Keep the answer in a variable)
Buttons a text with buttons; each button leads on separately; the choice can go into a variable
Answer from knowledge answers the visitor's question from the bot's knowledge; Prompt (optional) guides it
Branch checks a variable (The variable to check): each case (= value) leads on separately, otherwise catches the rest
Tool runs an Operation switched on in Actions & data → Tools — for example find an order; parameters can use {{variable}}; Keep the result in a variable; on error is a separate exit
Procedure continues in another published flow — a procedure or The main flow (the menu) — with everything the visitor already said; if it is missing is a separate exit
To a human hands the conversation to your team and ends the flow

Every step also has a Label — the name shown on the canvas. The bot says texts exactly as written, in the shop's language. Use a variable in a text as {{name}}. After a lookup, its fields are {{variable_field}} — for example {{order_status}}. {{shop.…}} takes a value from Shop data. Under a text, → BG and → EN translate it into the other language.

Test, save and publish

  • Test opens Test the flow on the right, which runs what is on the canvas now, saved or not. Start begins again. Nothing is stored.
  • Save keeps your work. On a published flow it is Save draft: visitors keep the published version until you publish.
  • Publish saves and publishes. A check runs first: with an error, the bar above the canvas says the flow cannot be published and lists what blocks it; warnings (!) do not block. Click a line to select its step.
  • Discard changes throws the draft away and returns to the version visitors run now.
  • Back with unsaved work asks first: Leave without saving?

Which flow the bot runs

The menu runs when Behaviour → Conversation is A flow only (menu): Bot settings. Choose the menu in Behaviour → Main flow — only published flows are offered; it is marked The bot’s main flow in the list. With The latest published flow, the most recently published flow is the menu.

  • The menu shows when the conversation starts. On a store bot, a real question as the first message goes to the AI instead.
  • Free text at a menu is answered by the AI; when a flow ends, the conversation continues with the AI.
  • меню, начало, старт (menu, start) — and "главно меню", "покажи менюто" — bring the menu back anywhere, even in the middle of a question.
  • човек (a person) or "искам да говоря с оператор" hands over at any step.

The store template's flows

A store bot comes with 7, named in the bot's language: the support menu, "where is my order", return or complaint, product and stock, cancel an order, change the address, and re-send the confirmation.

The menu starts the others through Procedure steps. Change a procedure and both the menu and the AI follow it: when a visitor asks the AI for something a procedure covers, and you have changed that procedure, the bot runs your procedure with what the visitor already said.

When a newer template comes out, Update from the template in Knowledge → Shop data changes only the flows exactly as the template wrote them; the ones you edited and those with a draft are kept: Store data, orders and products.

If something doesn't work

Check: 1 error — it cannot be published

Read the line under it and click it to select the step. The usual ones:

  • “A button in … leads nowhere — pressing it quietly ends the flow.” — connect the button to a step.
  • “The question … does not keep the answer in a variable — the answer is lost.” — fill Keep the answer in a variable.
  • “The operation in … is not on for this workspace (Actions & data › Tools).” — an admin ticks the operation in Tools.
  • “… runs a flow that is not published — the visitor would reach an empty place.” — publish that flow first.

Visitors do not see my change

The change is a draft. Press Publish.

A Tool step always goes to on error

The operation is off in Tools, or a parameter came out empty — a variable that was never filled.

Не успях да отворя процедурата на магазина. Опитайте отново или напишете „човек“.

(I could not open the store's procedure.) The procedure was unpublished or is gone. Publish it again, or change the step that starts it.

Didn't find your answer?

Write to us and tell us what you were trying to do.