Skip to main content
A flow is a conversation the assistant leads step by step: a support desk that sorts requests by topic, a booking, an order, a form for new clients. You draw it on a canvas: steps joined by connections. The assistant keeps each conversation on the flow. It matches what the customer writes to the nearest branch, places the conversation there and carries on from that point. Answers are checked (a phone number must look like one) and saved on the person’s profile.

Flows: a new flow from the support desk starter, a step from the palette, the branches, a test, a translation and saving

The flows list

Open Flows in the assistant’s menu. Each flow shows what starts it, how many steps and branching steps it has, and when it last changed. The switch turns a flow on or off; Duplicate makes a copy that stays off until you turn it on. Import brings in a flow exported from MessageBird (see Import from MessageBird). New flow starts from a blank canvas or from a starter:

The builder

The flow builder with the support desk demo: the Steps palette (1) and a branching step (2)

The flow builder with the support desk demo: the Steps palette (1) and a branching step (2)

1

Add steps from the palette (1)

The Steps palette on the left groups the steps into Start, Talk, Logic, Actions and End, with a search box. Drag a step onto the canvas, or click it to add it after the selected step (or at the end). The + on a connection inserts a step there, and the + under a way out adds one after it. The button next to the back arrow hides the palette to give the canvas more room, and shows it again.
2

Connect and arrange them

Each step has its ways out along its bottom edge, such as Next, one per button, one per branch, Otherwise or No reply. Drag from a way out to a step to connect them. A way out has one connection; a way out with nothing connected ends the flow there.Zoom with the buttons, the mouse wheel or a pinch. Fit to screen and the map of the whole flow are always there. Steps snap to a grid and Tidy up lays the flow out from top to bottom. A step with ways out can be collapsed, which hides the steps below it. Select several steps to move, copy (Ctrl+C), paste or delete them together. Undo and redo work for every change.
3

Edit a step in the side panel

Click a step to edit it on the right: its texts in every language, its buttons, the template it uses and its options. With nothing selected, the panel shows the flow’s settings: its name, what starts it, the style, the opening message, the default closing message, the webhook for finished answers, whether it is on, and its priority (when two flows could start, the lower number goes first).
4

Check the Problems list

Problems lists what is wrong. Errors stop the flow from being saved: no start step, a connection that leads nowhere, an empty text, a question with no saved-as name or with fewer than two options, a duplicated saved-as name, a jump with no target, a web address that isn’t public, a branching step with no branches, and a loop with no question or real wait in it (a wait of 0 minutes, or until business hours, doesn’t count: while the business is open it goes straight on). Warnings don’t: a step nothing leads to, a way out that ends the flow, a missing language, a title too long for a channel (Instagram cuts button titles at 20 characters), and a translation that may be out of date. Click a problem to go to its step.
The Problems list of a feedback flow: a way out that ends the flow and two steps without their Spanish text

The Problems list of a feedback flow: a way out that ends the flow and two steps without their Spanish text

5

Test it

Test opens a chat in the builder where you write as a new customer. The step each reply comes from lights up on the canvas, and a reply that chose a branch says which one and how, for example “matched Billing problem, 92%” by wording, Jev, meaning, the AI or a button. The test uses the saved flow and nothing is sent to anyone: waits are skipped and webhooks aren’t called.
A test of the support desk: the step the reply came from lights up (1), and under the reply is the branch the message matched, how sure the match was and how it was made (2)

A test of the support desk: the step the reply came from lights up (1), and under the reply is the branch the message matched, how sure the match was and how it was made (2)

6

Save

Saving checks the flow again. The flow then works for customers straight away, or when you publish if the assistant uses draft and publish.
Outline (under View) shows the same flow as an indented list of steps. It works with the keyboard and a screen reader, and on a phone, where a canvas is hard to use. Both views edit the same flow. On a touch screen, a finger drag moves the canvas, also when it starts on a step or a line. To move a step, tap it first and then drag it, or turn on select mode with the hand button next to the zoom buttons (it becomes a pointer). On a phone, a tapped step opens in a sheet; closing the sheet deselects the step.
The support desk demo in the outline view on a phone

The support desk demo in the outline view on a phone

The canvas also shows how many people reached each step and took each way out in the last 30 days. Tests in the playground don’t count.

The steps

On WhatsApp, a message with more than 3 quick replies (its own buttons, or the branches of a Wait for reply and branch step right after it) arrives as a list: the text, and a button that opens the options. List button (WhatsApp only) in the message step sets that button’s words in each language, up to 20 characters; left empty, it says “Choose” in the customer’s language. The step shows how the list looks. WhatsApp shows up to 10 options of up to 24 characters each. Instagram, Messenger, Telegram and the website chat show the options as buttons, so the list button matters on WhatsApp only. The assistant runs the steps that don’t wait one after another until it reaches one that waits for the person (a question, a branching step, a message with buttons or a wait), hands over, or ends. A step reached again by going round the flow asks again: through its own ways back, or back through the start and the main menu (“Anything else?”, a new request). A question reached again because the person moved to another topic that shares it keeps its answer: the order number given for a return isn’t asked again when they say the item arrived damaged. A message about the request just handled that brings nothing new (“so the return is open and free, right?” at “Anything else?”, “and if I can’t sign in?” at “Did that help?”) starts no new request: the AI answers it from the knowledge, the answers given and the chat, and the step is offered again. When the AI has no answer at all and the step has a button that leads to the team (“Not really”), the message counts as that button. A different order number or email, or words such as “another order”, make it a new request. A flow can’t run more than 60 steps in a row without the person writing, or jump to other flows more than three times for one message: it stops there. Nor can it carry on by itself (after a wait or a webhook) more than 20 times without the person writing, counting all its flows together: the flow stops there. Only the first two AI answer steps reached for one message answer it; the ones after are passed over. One message makes at most 24 AI requests in all (matching, reading answers, AI answers); past that the assistant goes on without the AI.

How replies find their branch

When the customer writes at a Wait for reply and branch step (2), the matching runs in this order and stops at the first sure answer:
  1. A button goes straight to its branch.
  2. The wording: a branch’s name or one of its examples as typed, close wording (“biling”, “delivery” for “Delivery problem”) when the message is the name in other words and says nothing else, or “2” for the second branch. No AI. “how much is pizza delivery” uses a word of the name in another sense, so the meaning and the AI decide.
  3. Jev, a decision model from TypeSafe, when the platform has it set up: it picks one of the step’s branches, or none of them, from their names, descriptions and examples, and its choice counts when it’s at least 80% sure. It answers in about a fifth of a second and costs the assistant nothing. In tests on 372 messages in five languages, Jev first and the next two ways after it put 99.5% of the messages on the right topic, against 96.8% without it. Jev is also asked for a first message, with no flow going, among the opening menus’ topics and the starts of flows without a menu: there the usual ways alone got 97.6% right with 7 messages on a wrong topic, with Jev 99.5% with 2 (with three flows that could start, 95.6% against 99.3%), and a question an FAQ answers more closely still gets that FAQ. At a step that asked something (“What’s your order number?”), a typed message is put to Jev with that question before anything checks it for a jump to another topic: if Jev reads it as an answer, the conversation stays at the step, and a topic Jev is at least 70% sure of is jumped to. In tests on 80 answers to the support desk’s questions, the usual ways alone took 26 of them for a new topic, with Jev 6. Jev isn’t asked before the AI may be used (before consent). Switch it off for one assistant with Jev picks flow topics in its AI settings.
  4. The meaning: the message is compared with each branch’s name, description and examples in the customer’s language, with the same local model as the knowledge search. No AI cost.
  5. The AI, only when the meaning was close but not sure. It picks a branch, says how sure it is and whether the message also asks something. Its choice is checked: it can only pick a branch that exists.
A branching step selected: each branch with its description and example phrases (1), and the switch that offers the branches as buttons (2)

A branching step selected: each branch with its description and example phrases (1), and the switch that offers the branches as buttons (2)

When the assistant has no AI key, the month’s AI budget is used up, or the AI fails or doesn’t answer in time, the button, the wording and the meaning still work and the message is never lost: it goes on as a reply that fits no branch. Without the AI, the meaning decides only when it is clearly sure. A greeting, yes or no, thanks, small talk (“how are you?”, “haha ok”), emoji or a number alone never picks a branch by its meaning: “hi” or “yes” at the main menu, or as the first message, starts no topic. “2” still picks the second branch of the step the conversation is at. A typed reply to a message with buttons is matched to the buttons the same way: “still broken” picks No, still broken, and so does “2” for the second button. Button titles are short, so a longer reply (“I charged it all night and nothing happens”) is read by the AI, and the meaning alone picks a button only when it is very close. A typed reply that fits no button but clearly fits a jump-in point moves the conversation there: “actually I was charged twice” at “Did that help?” goes to the double charge. At a pair of yes and no buttons (“Yes, thanks” and “Not really”), a reply that starts with no and asks nothing (“no, it’s already 6 days late”) is the no button, unless that button ends the chat (“No, that’s all”); a reply that says it didn’t help or tells the problem again is read by the AI the same way. A message that also asks something (“my parcel is late, can I still cancel it?”) gets its answer, then the flow goes on through the branch. A message that chose a branch by its meaning, or by one of the branch’s examples as a whole sentence, is matched again at the next step: “the package arrived broken” picks a delivery problem, then a damaged parcel, and the question “What happened with the delivery?” is not asked. Only a clear fit counts there; otherwise the question is asked. An answer to a question further on, written at a menu, is kept for it: an order number typed at the delivery menu isn’t asked for again. Such a message is no miss: the menu is shown again with the same buttons.

Jump-in points

Every branch is also a jump-in point, unless you turn Jump-in point off for it. A message that clearly fits a branch elsewhere in the flow moves the conversation there and carries on. A first message works the same way: in a flow that starts on a meaning, “my parcel never arrived” skips the greeting and goes straight to the delivery questions. The rest of that message counts as at any other step: “where is my order NL-40880?” isn’t asked for the order number, and a question asked besides the topic (“you charged me twice, can I ask something first?”) gets an answer first. A jump-in point needs a clearer match than a branch of the step the conversation is at: by its meaning alone only when it is very close, otherwise the AI checks it. A branching step that only answers what was just asked is never a jump-in point, whatever its switch says: one right after a wait for a reply (“It works now”, “Still not working”), or one whose branches are only a yes and a no. “it still doesn’t work” written anywhere else answers nothing that was asked there. A reply to a question that isn’t its answer can jump in too: while the order number is asked, “my phone won’t turn on” goes to device help instead of “That doesn’t look like an order number”. It needs a clear fit, and a valid answer is always kept as the answer. A flow that starts on a meaning never beats a Behaviour rule with keywords or a pattern, or an FAQ answer that is sent word for word: those answer the message instead. One exception: when a message that asks for a person lands on a branch of the flow that leads to its own Hand to a person step (the support desk’s Talk to a person, which checks the business hours first), the flow takes it instead of the hand-off rule. An annoyed customer whose message lands on one of the flow’s topics (“it arrived broken and I just want a refund!!”) gets the flow too; anger with no topic still goes to the team at once. The same holds in a flow that is already running: a customer who goes along with it (“I charged it, it’s no use, it won’t turn on” at “Does it turn on now?”, “charged twice!!! I want my money back” at the main menu) keeps going on the step’s own way, unless the anger keeps adding up over the chat or nothing in the flow fits. A request for a person, as the first message or in the middle of the questions, takes the flow’s own Talk to a person when its main menu has one, so the customer hears the business hours. In a flow with a Hand to a person step, a question answered on the side (“can you fix it?” while the details are asked) never hands the chat over or says “I don’t know” by itself: the flow’s own steps take the request to the team. Asking when the team will reply (“when will the team get back to me?”) is no request for a person: the flow goes on, and once the chat is with the team the customer is told how and when they’ll hear back. The first message is read as if it came at the main menu: one of the menu’s topics needs the same sureness from the AI there as at the menu. A message the AI places on a topic but that an FAQ answer fits more closely (“what time does support open?” next to the support hours FAQ) gets the FAQ answer.

A reply that fits no branch

When Other reply is connected, such a reply goes there. Otherwise the assistant answers it from the knowledge if it can, then asks again, with the step’s Text to ask again or the last message, and the branches as buttons. After the set number of misses in a row (2 by default), Then decides: keep answering and asking again, or hand the chat to the team. A reply that fits starts the count again. Asking for a person at a branching step hands the chat over at once.

Waits

  • A set time: the flow goes on by itself afterwards.
  • Until business hours: goes on straight away while the team is in (by the team’s hours, or the booking hours when the team has none), otherwise when it opens.
  • For a reply: goes on through Reply when the person writes, and the reply is matched at the branching step it leads to. A photo or a document sent as the reply counts too. Without a reply, it goes on through No reply after the time limit.
A message during a timed wait gets an ordinary answer and the flow keeps waiting, unless it clearly fits a jump-in point: then the conversation moves there and the wait is over. When the channel’s 24-hour window has closed by the time a wait ends, or the chat went to the team, the flow ends there. The reminder for unfinished flows on Follow-ups reaches people waiting at a question, a branching step or a message with buttons.

Webhooks

A Webhook step sends a request to its address. The flow waits for the result and goes on through Sent when the address answers with a 2xx status within 15 seconds, or through Failed. The address must be public: addresses inside your network are refused when you save and again when the request goes out.
  • Method: POST (the usual one), PUT, PATCH or GET. A GET request has no body.
  • Body: InstaForge’s JSON has the assistant, the flow, the step, the person (Instagram id and username, and with Everything known about the customer also the name, channel, tags and fields), the answers of this flow and run, the number of this person’s request in the flow. My own JSON is a template you write, with variables between quotes: {{phone}} (the WhatsApp number, or a phone the person gave, digits only), {{message}} (the message being answered), {{name}}, {{answer.order_number}}, {{field.city}}, {{contact.id}} and {{channel}}. For example {"phone": "{{phone}}", "text": "{{message}}"}. A template that isn’t JSON once the variables are filled in can’t be saved.
  • Headers: up to 20, such as an API key. Mark a header as secret with the lock: its value is stored encrypted and never shown again, in the builder, the portal, the version history, exports or copies. Leave a saved secret empty to keep it, or type a new value to replace it. A secret belongs to the address and method it was entered for: when the step’s address or method changes, the saved value is dropped and has to be entered again, so it can never go to another server. With draft and publish, the version customers get keeps the values for its own address while the draft goes elsewhere. A copied assistant or flow keeps the header without its value, and the Problems list asks for it. Host, Content-Length, Connection and other headers the connection sets itself can’t be used.
  • Tries again: 0 to 5. When the address doesn’t answer or has an error on its side (5xx), the request is tried again after 10 s, 20 s, 40 s and so on, and the flow waits. A refusal (such as 401 or 404) goes through Failed at once.
  • Secret (optional): each request carries the header X-InstaForge-Signature: sha256=<the HMAC-SHA256 of the body>, so the other side can check it came from you. The secret is kept like a secret header: stored encrypted, never shown again (the field says it is saved), kept while the field stays empty, removed with the bin, and dropped when the step’s address or method changes. Copies don’t get it.
The flow’s own webhook (in its settings) sends the answers once the flow is finished. Business owners in the client portal see webhook steps but can’t add, change or remove them, or the flow’s webhook, and can’t delete a flow that has one. The agency can allow it per client with Webhook steps in their flows on the client’s Client portal page. Webhook steps the agency added keep running either way.

Opt-out flows

An opt-out flow handles “stop” messages your own way, for example to tell your system that the person doesn’t want messages any more. Start it with keywords or a pattern and turn on Opt-out flow in its Start step. A message that starts it then:
  • stops any flow the person is in, instead of the usual “No problem, we can continue later”;
  • replaces the standard reply to “unsubscribe”, and the person is left out of broadcasts the same way;
  • runs the opt-out flow, for example a Webhook step and a closing message.
A request to delete their data and the consent question still come first, and a chat that is with the team stays with the team. Without an opt-out flow, “stop” and “unsubscribe” work as before.

Import from MessageBird

Import on the flows list turns a flow exported from MessageBird Flow Builder (the .json file) into InstaForge flows:
  1. Choose the file. Nothing is saved yet: you see the flows it becomes, how many steps were mapped and left out, and what to check.
  2. Choose the language of the texts, or leave Detect.
  3. Import and open creates the flows and opens the main one in the builder. Check it and test it before turning it on for customers.
The report for an export of a made-up bike workshop: an opt-out flow and the main flow, and what to check

The report for an export of a made-up bike workshop: an opt-out flow and the main flow, and what to check

What it becomes: The report also warns about headers that look like secrets, messages that ask for an ID number (check the privacy settings), regular expressions kept as they were, waits with a time limit and variables that have no counterpart. MessageBird runs a flow on every message. Start again for a returning person, on by default in the import, keeps that: the main flow starts on a person’s first message and again on their next message after the flow ended or after the team handed the chat back, so a returning customer gets the menu again. A request that fits one of its topics (“I changed my bank account”) goes straight to that topic. A behaviour rule, another flow or an FAQ answer that fits the message comes first, and thanks, small talk or a question about the request just made get an ordinary answer. The option is on the main flow’s Start step (see Running a flow again), so you can turn it off there later. With it off, the flow starts on a person’s first message only. The questions’ Saved as names are readable words in Latin letters, also for questions in Hebrew, Russian, Ukrainian or Arabic: what the question asks for (full_name, id_number, bank_account), a Russian or Ukrainian question written in Latin letters, or the topic’s place in the menu (topic2_details). A MessageBird variable keeps its name when it is a real one; response1 and the like are never used. Business owners can import in the portal too. An export with a webhook step needs the agency’s Webhook steps in their flows switch, as for any webhook step. AI agents import with save_flow and its messagebird_export argument.

Languages

Write the flow in the assistant’s main language. In a Hebrew conversation, or for an assistant whose main language is Hebrew, a message with Hebrew words in it stays Hebrew even when it mixes in English (“update bank account פליז”, with the Hebrew word for “please”); a message with no Hebrew word switches to its own language. Show the flow in switches the whole canvas to one language, and steps with a missing text are marked. Hebrew is one of the languages (shown right to left); a flow is asked for Hebrew texts only when the assistant’s main language is Hebrew or the flow already has a Hebrew text. Translate drafts the other languages with the AI: choose the languages and whether to fill only the missing texts or all of them. You then review each draft next to its text in the main language, change anything, and accept them one by one or all at once. Accepted texts go into the flow; save it to keep them. Translating uses the assistant’s AI budget. The AI is told what each text is (a button under a message, a menu topic, a message to the customer, an instruction to the assistant, a phrase a customer writes), gets each distinct text once, so a label repeated in the flow reads the same everywhere, and sees the flow’s buttons, choices and topics, so a word means the same in every text (“Evening pickup” next to “Evening 17–20”). Button titles, branch names and choices get three short drafts each, within 20 characters and keeping all of their meaning; the first that fits is taken, and when none fits the shortest is kept and marked for you to shorten.
Drafts to review: each English text next to its Spanish draft

Drafts to review: each English text next to its Spanish draft

When a text in the main language changes after it was translated, its translations get a Check mark and a warning in the Problems list. Mark as checked clears it once you have looked at the translation or fixed it. The customer always gets the flow in their own language, and switching language in the middle of a flow carries on in the new one.

The support desk demo

The Support desk (demo) starter is a deep support flow for Nordlicht Electronics, a made-up online electronics store, in English, Russian, Ukrainian and Spanish. It uses every kind of step and shows how they work together:
  • It starts on the meaning of a message about an order. A first message such as “my parcel never arrived” jumps straight to the right place.
  • The main menu branches by meaning into order status, delivery problems, returns, payments, device help, warranty, the account and talking to a person, with sub-branches for late, damaged, wrong and lost parcels, for double charges, invoices and failed payments, and for devices that won’t turn on, won’t connect or need setting up.
  • Paths cross and merge: a damaged or wrong item ends in a free return, unresolved device help reaches the warranty check, and a warranty return goes back to the order number and on to returns. The order number, email and problem description are asked by shared steps.
  • Conditions check business hours before a hand-off, an answer (bought less than 2 years ago) and a tag (why a return is free). Tags and fields record the topic.
  • A webhook opens a ticket at a demo address and goes on by Sent or Failed; a wait gives the person an hour to try a fix; AI answers explain from the knowledge; “Did that help?” and “Anything else?” loop back to the main menu. A late parcel is asked whether its delivery date has passed (“it was due 6 days ago” in the first message answers that): past it, it is chased with the courier at once (a case and an email); still within its time, the customer hears how long delivery takes. An order that is late or can’t be found, when the answer didn’t help, is chased the same way instead of going to a person; a damaged or wrong item given as the return reason gets the free return; a repair out of warranty gets a quote by email.
Change the store’s texts, connect your own ticket address, and save it as a flow of your own.

Questions

An Ask step asks a question and saves the answer under its Saved as name. Choose the answer type: Under Advanced checks, Must match pattern sets a regular expression the answer must fully match (an order number such as NL-20481), Check adds a check of the number itself, and Message for a wrong answer replaces the built-in one. A reply that doesn’t fit gets that message and the question again. The checks:
  • Israeli ID number: 9 digits with a correct check digit. Spaces and dashes are fine, and an 8-digit number gets its leading 0 back.
  • Card or account number: a number whose last digit is a Luhn check digit (card numbers and many account and member numbers).
  • IBAN: the country code, check digits and account, with a correct check; saved without spaces.
A photo or document sent while a free-text question waits (one with no pattern or check) is its answer too, saved the same way as for a file or photo question. The file itself stays where the channel keeps it: the team opens it from the chat with the button on the message (Instagram and Messenger links expire after a while, WhatsApp and Telegram files are read through the channel with the assistant’s connection). The website chat takes no files from visitors. The flow’s Style decides how questions are answered:
  • Conversational: people can ask other things in between; the assistant answers, then asks the next question again. A message that only gives answers, with no question mark, gets the next question straight away, with no AI reply in front of it. An answer to a later question while this one is still open (“about 20 a day” when the channels are asked) is kept, and the assistant says so (“Thanks, noted.”) before asking this one again. The assistant’s answer asks nothing and asks for no contact details (“just leave your email here”), so each message carries one question: the flow’s next one. In a flow with no Booking time question, or before bookings are set up, the assistant knows the answers are a request the team confirms: it doesn’t say it can’t take it, and it doesn’t call it booked. When the last answer comes with a question, the answer and the closing message arrive as two messages. A question already answered earlier in the conversation is skipped.
  • Step by step: every message is the answer to the current question. Best for forms.
For bookings, put Service and Who before Booking time, so the free times match how long the service takes and who does it. The Services page offers to add them for you.
When bookings are saved and the assistant has no flow with a Booking time question, a Book an appointment flow is added and checked before the other flows. See Bookings. Without a booking system, Booking time asks for a day and time in words and the team confirms it, so the Beauty salon template’s flow works as a booking request until bookings are set up.

Keywords that start a flow

Use words that ask for the thing, such as “book a table” or “make an appointment”. A word ending in * also matches its endings, so a short stem like “reserv*” starts the flow for “reservation for two, please” too.
  • A keyword with “not”, “didn’t”, “no” or “if” just before it starts nothing. “I’m not booking yet”, “i didnt book anything” and “If I book now, can I cancel later?” are answered by the assistant.
  • A keyword about someone else starts nothing. “My friend was going to book” is answered by the assistant, unless the same sentence asks for the person too (“Book me and my friend”).
  • Word forms that tell about a booking start nothing in Russian and Ukrainian, such as “кто записан” (Russian for “who is booked”).
  • A flow that books comes first. When a message has the keywords of a flow with a Booking time question and of a request form, the flow that books starts.
  • Saying it isn’t a booking stops the flow. “I’m just asking” or “I don’t want to book” in the middle of the questions stops them, nothing is saved as an answer, and the assistant answers the question.
The templates start their flows on such phrases in English, Russian, Ukrainian and Spanish. Template flows made earlier get the new words once, unless their keywords were changed by hand.

The message that starts a flow

In a conversational flow, the message that starts it counts:
  • Answers in it are kept. “I’m Anna, my email is [email protected], how do I book?” starts the flow without asking for the name and email again.
  • An email address counts until it’s asked for. An email the person wrote in the last 24 hours answers an email question when the flow reaches it, however many steps and topics later (“hi, my email is [email protected], I run a small agency”, then a demo booked ten steps on). The assistant says which address it uses, so the person can correct it. Phone numbers and other numbers aren’t reused this way, because a number in an earlier message could be a price or an order.
  • A question in it is answered first. “How much is a balayage for long hair?” gets the price, then the flow’s first question. This includes a message that asks to book and asks other things too, such as “Do you take NHS patients? How much is whitening? Is there parking? And can I get a check-up next Saturday morning?”: the answers come first and the booking question or the free times follow in the same reply, also when the AI saw the booking request or the message waited for consent. A plain booking request, or a sentence that only asks whether a day or time is free (“Could I book a check-up next Tuesday, say around 3pm?”, “Have you got a slot on Tuesday afternoon?”), needs no answer and no AI. A question that only asks what the flow itself is about (“I own a bakery, how can this help me?” starting a flow that shows how you can help) gets no separate answer: the flow’s own steps answer it.
  • A single keyword such as “price” just starts the flow.
  • If the message already answers everything, the flow finishes straight away with its closing message.
  • The service, the person and the day in it count. “I’d like to book a gel manicure with Olga” isn’t asked for the service or the person again, and “Can I book a check-up for Saturday the 24th, in the morning?” goes straight to that morning’s free times. A service or person named in a later message of the request counts the same way, and so does a day: “Tuesday 20 October at 15:00 with Olga”, typed while the service is asked, gets “As soon as you choose, I’ll show the free times on Tue 20 Oct”, and once the service is picked, 15:00 that day comes first. A closed day is said so, with the nearest open days. A time is booked only when the person taps it.
  • A day or time and nobody named means anyone. When the request names a day, a time or a part of the day and nobody from the team, the question about who to see is skipped and the free times of that day come next, with anyone free. The same happens when the person answers “Who would you like to see?” with a day or time, or asks to book again. The question is still asked when they care who: a name fills it (“with Olga”), and “who is better?” gets the question with its buttons. Asking to book again doesn’t repeat the flow’s opening message once it was said.
  • A time asked for earlier is offered first. If someone wrote “can we talk on Monday at 1pm?” before the Booking time question, that time is the first button when it’s free. When it’s taken, the assistant says so and offers the closest free times that day. When the business doesn’t work then (5pm at a place that closes at 5pm, or a time too late for the service to end by closing), the assistant says it’s outside the opening hours instead.

A pattern that starts a flow

Message matches a pattern starts the flow when the whole message matches a regular expression, such as ^(stop|unsubscribe|quit)$ or order\s*#?\d{5}. Letter case doesn’t matter, and spaces around the message don’t count. A pattern can be up to 300 characters, and it runs with a time limit, so a slow pattern never holds up the assistant. Flows that start on a pattern are tried before first-message and keyword flows, and each match is a new request.

Running a flow again

A flow that starts on keywords or a meaning runs again when the person makes a new request after finishing or stopping it, for example “I’d also like to book a manicure on Wednesday”. The answers from the last time are not reused: the new message’s details count, and the rest is asked again. Start again for a returning person, in the Start step of a flow that starts on the first message or on a meaning, goes further: any next message after the flow ended, or after the team handed the chat back, starts it again from its start, so a support menu greets a returning customer the way it greeted them the first time. A message that fits one of its topics goes straight there. A behaviour rule, another flow or an FAQ answer that fits the message comes first, and thanks, small talk or a question about the request just made get an ordinary answer. A first-message flow also greets someone who wrote before it was added. Each run is a new request, and the earlier requests are kept. The chat, the customer card, the lead board and the customer export show the latest request’s answers, with the earlier requests listed under them by date. The assistant also sees the last three earlier requests, so “same as last time” can be understood. Moving or rebooking an appointment stays in the same request: only its time, service and person change. Deleting a person’s data deletes every request. A question about the request just made, sent within 12 hours of finishing, doesn’t start the flow again: “Is my appointment confirmed?” is answered by the assistant, which sees the answers already given. Words such as “another”, “again” or “also” mark it as a new request: “Can I book another appointment?” starts the flow.

Leaving a flow

A person can always step out of a flow:
  • Asking for a person hands the chat over. Your hand-off rules count in the middle of the questions too: “Can I talk to a real person?” goes to the team and the questions stop. So does a request for someone from the team in other words, such as “pls can someone from the team confirm by whatsapp?” or a phone number with “call me back”, and the AI can hand over in a flow as well. The answers already given are kept, a phone number in the message fills the flow’s phone question, and no further question is asked. A valid answer to a number, date or choice question is still saved, so “A table for 4 people” for the number of guests stays an answer.
  • A stop word at the start of a message stops the flow. “stop”, “cancel” or “enough” stops it, also when more follows: “stop. Just tell me, can I buy a gift card on Monday?” stops the questions and the assistant answers the question. Answers that only begin like a stop word, such as “later in the evening”, are saved as answers. Stop words work at branching steps, buttons and waits too.
  • Turning the questions down stops them. “Not a table, I want a workshop place” or “No, I want a gift card” stops the flow, and the assistant answers normally. A short answer with “no” in it, such as “no preference”, is still saved.
  • An answer that doesn’t fit gets the choices in one line. “Please choose one of these: Check-up and clean, Teeth whitening, Filling, Emergency appointment”, with the buttons, not the whole menu again.
  • The same question isn’t asked a third time in a row. After two unanswered asks, the assistant says how to stop the questions instead, and the buttons stay. A message that answered another of the flow’s questions isn’t an unanswered ask: “about 20 a day” while the channels are asked is noted, the channels come again, and a question after that is simply answered. When that gets no answer either, the assistant answers the message and points back to the question in one short line. An answer still continues the flow.
  • An order leaves the booking questions. “Can I place an order here? A cake for Wednesday” in the middle of booking questions stops them, and the order goes where orders go (see Bookings).
  • A flow left for a day doesn’t carry on. When someone writes more than 24 hours after their last message, the open flow stops and the message is answered as a new one. The answers already given are kept. A reply to the follow-up reminder, or to a message the flow sent after a wait, still continues the flow.
  • A hello is no answer. “Hi” while a name or another free-text answer is asked is taken as a greeting: the assistant says “Hi again!” and asks the question again.
  • A new booking while one is ahead. When a flow with a Booking time question starts again and the person already has an appointment coming up, the assistant says so first (“You already have an appointment on Sat 31 Oct 14:30. This books another one; to move that one instead, just say so.”) and goes on. An appointment that has passed isn’t mentioned.

In the client portal

Business owners see Flows in their portal and can build and change their own flows with the same builder, unless the agency turns the section off on the client’s Client portal page. Their changes go live like the agency’s. Every change is versioned, so it can be undone, and the agency sees who changed what. Webhook steps stay with the agency unless it allows them (see Webhooks).

With an AI agent

An AI agent connected through AI agent tools builds a flow with save_flow and then changes it a piece at a time with edit_flow: one language of a text, a step, a branch, a connection. The rest of the flow and its answers stay as they are, and a change that doesn’t fit saves nothing. get_flow with outline gives the agent a short map of the steps first. test_conversation sends several test messages in one go, so the agent can follow a whole way through the flow and show you the replies.

Ideas

  • Onboarding for a coach: name, goal, experience level, budget, then a consultation time.
  • Restaurant reservation: date, time, number of guests, any allergies.
  • Wholesale enquiry for a shop: company name, email, products, quantities. Send it to the CRM with a Webhook step.
  • Support for an online store: start from the support desk demo and keep the topics your customers ask about.