Flow bots
A flow bot follows a script you build, with menus, questions it checks, bookings and a handover to your team. It sends voice notes and files, and calls the AI in conversations only if you turn AI help, AI match or auto-translate on, add an AI step or AI chat, or have it speak a step's text. This page covers building it, waits and AI chats, trying it, publishing it, choosing which assistant runs it, AI help, packs and how messages are counted.
Some conversations are not really conversations. A customer wants to book a collection, so you show a menu, ask for an address and a date, book it, say “request received” and hand anything unusual to a person. You know every step in advance, and you want the same words every time.
A flow bot runs exactly that. You build the steps, the customer taps or types, and the bot moves along your script. It never makes up an answer on its own: every message it sends is one you wrote (or, if you choose, a translation of it), and nothing that happens after a message (the booking, the events, your Inbox record) calls the AI. A flow’s conversations call the AI only if you turn on AI help, AI match or auto-translate, add an AI step or an AI chat, or have a step speak its text (see AI help, AI match, spoken text, AI steps and AI chats below); with none of them, no AI runs at all. A flow can also send a voice note or a file you uploaded (see Sending voice clips and files).
More than one language. One flow can carry its words in several languages, typed by you or translated by AI, which is charged from your wallet. Publishing such a flow waits until we have switched multi-language flows on; see Languages.
A flow bot is a choice for one assistant, not a second product to manage. An assistant answers with the AI or with one flow, never both at once, and you can switch back to the AI whenever you like. If customers ask open questions, keep the AI. A flow is for conversations you can script.
Building it. You build a flow on a canvas: add steps, connect them and set each step’s options (see Building a flow on the canvas). The same flow is there as text (YAML) on the Advanced tab, and the examples on this page are in that form. You can look at a flow and try it on your phone. Building and editing need a computer. Once customers use it, the Results tab shows how far they get, step by step (see See how far customers get in a flow).
Where to find it: you build flows on the Flows screen (under Assistants; see Building flows), and you choose which flow an assistant runs on that assistant’s Flow tab, under Bots. Build as many flows as you like; each assistant runs one. Without Flow bots both places show what it is and how to add it. You add Flow bots from Billing, under add-ons (see Buying an add-on).
The five-minute setup
- Open Flows, choose New flow and name it. A new flow starts as the collection-booking starter: a menu, three questions (address, date, time of day), a booking, a confirmation and a handover to your team.
- Change the words to yours. On the Diagram tab, choose a step and change its words on its Step tab. A box with a problem has a red outline, and the Problems panel names each one. (On the Advanced tab the editor underlines anything wrong as you type, and Problems in this flow names each problem by line, beside the editor when the screen is wide enough and under it otherwise; click one to jump to it.)
- Choose Try it and walk through the flow as a customer, on each channel you use.
- Save draft, then Publish. If an assistant already runs this flow and does not have an outcome the flow ends in, Publish names that assistant; choose Fix outcome on its notice (see Fixing an outcome the bot does not have).
- The starter ends in an outcome (
appointment_booked) that your assistant may not have yet. Open the assistant’s Flow tab, choose the flow under Runs flow and choose Answer with this flow. If the assistant lacks the outcome, the switch is refused with a message that names the assistant and the missing outcome (“does not have the outcome appointment_booked”). Choose Fix outcome in that message: the flow’s editor opens a picker. Prefer an outcome the assistant already has (the first choice, for example a service assistant’svisit_booked), and the flow is changed to use it. Only if none of them fits, create a new one in the same picker (or in Wording & outcomes). Then choose Answer with this flow again.
That is a working flow bot. The rest of this page is for when you want more.
What you write
A flow is a set of named steps. You build them on the Diagram tab of the flow’s page on the Flows screen: each step is a box, and the settings of the box you choose are on the Step tab, on the right. The same flow is there as text on the Advanced tab, where the editor knows what each step may contain and checks as you type. The examples below are in that text form (YAML).
Where each setting is on the canvas. A setting of one step is in that step’s settings: choose its box. A setting of the whole flow is on the Flow settings tab, next to Step, and it is the tab you see with no step chosen: Start, shortcut words, When nothing matches, Other starting steps, Customer fields, Messages, Opens at (shop button) (for selling, which is not switched on yet), Languages (with a button to open the Language panel), AI help, Read typed replies with AI, Answer as, Session length in hours, Language and Outcomes. The sections of this page name the setting they describe, and each is in one of those two places. A setting the canvas cannot edit is under Other settings in the text on the Step tab, with an Edit in Advanced button. Voice clips, languages and published versions have their own panels down the left of the diagram: Clips, Language and Versions. See Building a flow on the canvas.
| Step | What the customer sees | What it waits for | Where it goes next |
|---|---|---|---|
message | Some text | Nothing | The next step |
menu | A question with two to ten choices | A tap, the choice’s number, or its title | The step you set on each choice |
ask | A question | One value: text, a number, a phone number, an email, a date or a location pin | The next step once the answer is valid |
whatsapp_form | A WhatsApp form | The form being filled in | The next step, or a fallback step |
condition | Nothing | Nothing | A step chosen by what was answered |
set | Nothing | Nothing | The next step; saves a value |
booking | Nothing | Nothing | Success, unreachable or error step |
action | Nothing | Nothing | Success or error step (your own system) |
emit | Nothing | Nothing | The next step; records a checkpoint event |
media | A voice note or a file (WhatsApp) | Nothing | The next step |
ai_step | Nothing | Nothing | The next step, or on_error; the AI fills in values you declared |
ai_chat | Your welcome text, then the AI’s replies | The customer’s messages, until the goal is met | next, on_limit or on_error |
delay | Nothing | Time (a customer message ends the wait early) | next, or on_reply if the customer writes first |
handoff | Optional text | Nothing | Ends the flow; the conversation goes to your team |
continue_on_whatsapp | On website chat, the Continue on WhatsApp card | Nothing | Ends the website chat part |
end | Nothing | Nothing | Ends the flow, optionally with an outcome |
Wherever a flow needs your customer’s answer in a message, use a placeholder
such as {{vars.address}}, or {{contact.name}} for the customer’s name. The
bot only fills the placeholder in; it never runs anything a customer types. A
placeholder must be filled on every path that reaches the message, or the
editor refuses to save it.
Choosing a step with a condition
A condition lists tests in order. The first test that holds sends the customer
to its then step; if none holds, the flow goes to else. Every test except
in_contact_hours names what to look at in value.
check_known:
type: condition
when:
- { test: exists, value: field.route, then: show_days }
- { test: equals, value: vars.size, to: large, then: ask_site }
- { test: in, value: vars.pincode, values: ["682030", "682037"], then: served }
else: ask_name
| Test | Also needs | Holds when |
|---|---|---|
exists | Nothing | The value is there and not empty |
equals | to | The value is the same as to. Numbers compare by value, so 3 and 3.0 match; everything else compares as text |
in | values | The value is any one of the entries in values |
gt, lt | to, a number | The value is greater than, or less than, to. Only a real number counts: the answer to a number or integer question, or a number your own system returned. Text such as "5" never holds |
contains | to, some text | The value contains to. Capitals and extra spaces are ignored |
starts_with | to, some text | The value starts with to. Capitals and extra spaces are ignored |
in_contact_hours | Nothing (no value) | Right now is inside your contact hours |
contains and starts_with never hold on a location pin or on a value that is
not there.
Turning a test round. Add not: true to one test to invert it. A not test
also holds when the value is not there at all, so exists with not: true means
“we do not have this yet”.
Several tests together. In place of one test, a rule can say all (every
test must hold) or any (at least one must), with 2 to 5 tests and one then.
A group cannot contain another group.
ask_seats:
type: ask
text: "How many vehicles?"
input: integer
save_as: seats
next: ask_notes
ask_notes:
type: ask
text: "Anything we should know?"
input: text
save_as: notes
next: route
route:
type: condition
when:
- all:
- { test: gt, value: vars.seats, to: 4 }
- { test: contains, value: vars.notes, to: "fleet" }
then: team
- any:
- { test: starts_with, value: vars.notes, to: "urgent" }
- { test: in_contact_hours, not: true }
then: after_hours
- { test: exists, value: vars.notes, not: true, then: ask_notes }
else: thanks
team:
type: handoff
text: "A person from our team will help you."
on_refused: thanks
after_hours:
type: message
text: "Thanks. We have noted it and will get back to you."
next: thanks
thanks:
type: end
When a later message uses a customer field (field.<key>), a plain exists test
on it (on its own or inside all, without not) proves to the editor that the
value is there. This works for customer fields only: a vars. value counts when
every way to the message saves it, and no test changes that.
value is one of:
vars.<name>is an answer saved earlier in this conversation withsave_as.vars.<form>.<field>is one answer from a WhatsApp form.field.<key>is a customer field, the kind that stays on the customer’s record from one conversation to the next. The key must be declared underfields, or the editor refuses to save the flow (it names the key it could not find). Write justfield.<key>: a location’s separate parts are used in message text as{{field.<key>.<part>}}, but aconditiontests the field as a whole.
A field that was never saved, or that the customer’s channel cannot read (website
chat reads none), counts as not there: exists does not hold, and equals and
in do not hold either. The usual first step of a flow that remembers customers
is a condition with exists on field.<key> that skips the questions.
Menus on each channel
On WhatsApp a menu of two or three choices is sent as buttons and a menu of four to ten as a list. On Instagram, Messenger and website chat it is a numbered list. Titles have the same length limits Meta sets (20 characters for a button, 24 for a list row). The editor tells you when one is too long.
A choice’s title cannot contain a {{…}} placeholder, because customers type or
tap exactly that text. The editor refuses it with placeholder_in_title. Put the
value in the menu text or the choice’s description instead.
A customer may tap a choice, type its number, or type its title. If a word you
have set as a shortcut for the whole flow (for example menu) is also the
title of a choice, typing that word takes the shortcut, not the choice.
The choice still works by tapping it or typing its number.
Words that work from anywhere
Under global you can set keywords that work at any step: by default menu
goes back to the start and agent hands over to your team.
When a customer says something the step cannot use
The step is sent again with your please choose wording (invalid_choice or
invalid_value under messages), up to the number of times you set in
fallback, and then the flow goes wherever fallback sends it, normally a
handover to your team. Photos, voice notes, stickers and documents are answered
the same way: by the flow, and no AI reads them unless you have turned on AI help
(see AI help).
Two more messages under messages cover a customer the flow cannot place at all:
handoff_forced(default: “I’ll get someone from the team to help you.”) is said when the bot hands the customer to your team on its own: after a customer has gone through the fallback more than 3 times, or when a single turn runs more steps than the flow’s step limit.handoff_unavailable(default: “Sorry, I couldn’t reach the team right now. Let’s try again.”) is said when that handover cannot happen. Website chat visitors are anonymous, so a handover is always refused there. After a fallback loop the flow carries on atfallback.then; after the step limit the conversation ends.
You can reword both, like any other message.
The fallback step must ask first
A customer who replies “no thanks” to a menu or a question has not agreed to
anything. Once the re-asks run out the flow goes to fallback.then, so Publish
refuses a flow where a booking or an action can run from that step before the
customer is asked again (fallback_reaches_effect). This applies to every menu
and ask in the flow, wherever the customer is.
- A
handoff, anend, or amessageleading to one is fine. So is amenuor anask: a booking after the customer picks an option or answers is allowed. - A message before the booking, a
conditionon an earlier choice, a question’stimeoutand a handoff’son_refusedare not asking. Publish follows them too. - A flow with no
menuorasknever goes to the fallback step, so the check does not apply to it.
If Publish refuses your flow, put a menu such as “Shall I book it? Yes / No” in
front of the booking, or point fallback.then at a handoff.
Silence or a refusal is not a yes
Some ways on are taken without the customer agreeing to anything. Publish refuses
a flow where a booking or an action can run from one of them before the
customer is asked again (unanswered_reaches_effect), even if they chose
something earlier:
- Both ways out of a
delay.nextruns when the customer says nothing. A message, even “no thanks”, takeson_reply, ornextif you gave none. - A question’s
timeout, for a customer who never answered. - A form’s
fallback_next, which runs when the customer types something such as “no thanks” instead of filling the form, and where the form cannot be shown. - A location question’s
fallback_next, which runs where no map pin can be asked for.
A completed form, an answered question and a tapped menu option are real
answers, so a booking after them is allowed. Otherwise, put a menu such as
“Shall I book it? Yes / No” between that way on and the booking. For a form or a
location question, fallback_next can lead to ask steps that collect the same
details; the booking then follows the customer’s answers. An AI chat’s
timeout has its own rule.
A flow published before this rule keeps running, but the assistant’s readiness shows that it no longer passes, and you must fix it before publishing again.
Limits and time limits on a question
An ask can say what a good answer looks like, and what to do if no answer
comes.
ask_seats:
type: ask
text: "How many seats should we cover? (1 to 8)"
input: integer
min: 1
max: 8
save_as: seats
timeout: { after: 2h, then: no_answer }
next: ask_notes
ask_notes:
type: ask
text: "Anything we should know? A few words is fine."
input: text
min_length: 3
max_length: 200
save_as: notes
next: done
no_answer:
type: message
text: "No rush. Write to us whenever you are ready."
next: done
done:
type: end
minandmaxgo onnumberandintegerquestions only, and both limits are included.min_lengthandmax_lengthgo ontextquestions only. They count the characters after spaces at either end are removed, from 1 to 500.- An answer outside the limits is asked again with your
invalid_valuewording, and then follows yourfallback, like any other wrong answer. Whatever the limits, an answer longer than 500 characters is never accepted. Say the limit in the question so the customer knows it. timeoutis for a customer who does not answer. If nothing arrives forafter, the flow goes tothenand saves nothing. The clock starts again each time the question is sent again, or the AI answers at that step.afteris written as minutes or hours (30m,2h), from 1 minute to 23 hours, and must be shorter than yoursession_ttl_hours. Read When a wait or time limit ends: it does not always send.
Waiting before the next step
A delay step pauses the flow, then carries on at next.
sent_info:
type: message
text: "Here is what you asked for. I will check in a little later."
next: wait_a_while
wait_a_while:
type: delay
for: 2h
on_reply: you_wrote
next: wait_for_hours
wait_for_hours:
type: delay
until: contact_hours
on_reply: you_wrote
next: follow_up
follow_up:
type: menu
text: "Would you like to talk to our team?"
options:
- { id: yes, title: "Yes please", next: team }
- { id: no, title: "Not now", next: done }
you_wrote:
type: message
text: "Thanks for writing."
next: follow_up
team:
type: handoff
text: "A person from our team will help you."
on_refused: done
done:
type: end
Say exactly one of:
for:a length of time,20mor3h, from 1 minute to 23 hours and shorter than yoursession_ttl_hours.until: { time: "09:30" }, the next time the clock shows 09:30 in your account’s time zone.until: contact_hours, which waits until your contact hours are next open (at once if they are open now).
Both until forms need session_ttl_hours of 24 or more (24 is the default).
Neither way out of a wait is a yes, so neither may lead to a booking or an action before the flow asks: see silence or a refusal is not a yes.
If the customer writes during a wait, the wait ends and the flow goes to
on_reply, or to next if you gave none. Their message is not read as an
answer to anything. (One exception: if that path leads straight into an AI
chat, the AI answers it.) A STOP
still opts them out, and nothing more is sent.
A flow cannot loop by waiting alone. A loop needs a way round that is not taken
at once: a customer’s answer or menu choice, a question’s or AI chat’s time limit,
or a delay’s on_reply, which only a message from the customer takes. A loop made
only of a delay’s next and steps that go straight on is refused.
Contact hours
Contact hours are 09:00 to 21:00 in your account’s time zone. If your
account is set to a narrower calling window, only the hours inside both apply.
until: contact_hours and the in_contact_hours test use them. A for: wait
and a timeout do not: they end when their time is up, at any hour, night
included. If the next message should not arrive at night, add a second step with
until: contact_hours, as in the example. (Broadcasts have their own sending
hours; see Sending a WhatsApp campaign.)
When a wait or time limit ends
Kooday sends nothing on a timer unless it is still allowed to:
- The 24-hour WhatsApp window. A business may send an ordinary message only
within 24 hours of the customer’s last one. If a wait or time limit ends after
that, the conversation closes and nothing is sent. A long wait, and
especially
until: contact_hoursor a time the next day, will often fall outside the window, so plan follow-ups of a few hours, not a day. - If the customer opted out or is on your do-not-contact list, if Flow bots has stopped on your account, or if the assistant no longer answers with a flow or the chat has moved to another assistant, the conversation closes without sending.
- If your team has taken over the chat, nothing runs.
- If your wallet cannot pay for the message, or a STOP from the customer is still being processed, Kooday tries again after 15 minutes (the rules above still apply).
- After 5 waits or time limits in a row with no message from the customer, the next one closes the conversation without sending.
- A wait never lasts past the point where the conversation would close for being quiet.
On website chat nothing runs on a timer: a delay does not wait (the flow
goes on at next at the visitor’s next message, and on_reply is ignored) and
a timeout never fires.
Opening a flow part way through (entries)
Normally every new conversation begins at start. entries lists other steps
(1 to 10) where a new conversation may begin. A WhatsApp
campaign can then say Open the flow at
one of them, so the reply to your offer lands on the offer, not on your main
menu.
entries: [offer_reply]
nodes:
menu:
type: menu
text: "How can we help?"
options:
- { id: offer, title: "See the offer", next: offer_reply }
- { id: team, title: "Talk to a person", next: team }
offer_reply:
type: menu
text: "Interested in this week's offer?"
options:
- { id: yes, title: "Yes, tell me", next: team }
- { id: no, title: "Main menu", next: menu }
team:
type: handoff
text: "A person from our team will help you."
on_refused: bye
bye:
type: end
- An entry is used only when the reply starts a new conversation in the flow. A customer part way through one continues where they are.
- One of your global keywords (such as
agent) still wins over the entry. - The conversation starts at
startif a different assistant from the campaign’s takes the reply, or if the flow it opens does not list the step inentries. If the campaign’s assistant now runs a different flow that lists an entry with the same name, the reply opens there. - An entry must ask before it books or calls your system. The reply that
opens the flow there is not read as an answer: even “no thanks” just opens the
flow. So Publish refuses an entry from which a
bookingor anactioncan run before the flow has asked the customer something (entry_reaches_effect). Make the entry amenuthat asks, as above.- A
menuor anaskcounts as asking: the flow sends it and waits for the answer. Anasktakes any answer that fits its type, so to get a yes, use amenu. The same goes for thenextof awhatsapp_form(a completed form) and of anai_chat(its goal met). - A way round the question does not count. Publish also checks a question’s
timeout, both ways out of adelay, a location question’s or a form’sfallback_next, a handoff’son_refused, and an AI chat’son_limit,on_errorandtimeout. - A reply the flow does not understand does not count either: see the fallback step must ask first.
startis not held to this entry rule, unless you also list it inentries.
- A
- Because a customer can arrive there without passing earlier steps, a message at
an entry (and after it) may only use values that are set on every way in,
including this one. An
actionyour system has marked as needing the customer’s yes cannot be an entry.
When can I publish these?
Waits (delay), question limits and time limits, the newer condition tests (gt,
lt, contains, starts_with, in_contact_hours), not, groups, save_as on
an action, entries, AI chats, Answer as, an AI step that reads a photo or
voice note or has a value other than an option or text or an optional one, and a
question that waits for a photo or voice note, can only be published once we have
switched them on. An AI chat and an AI step also need the AI step switch. Until then
Publish says so and the draft is kept; you can write and try the flow meanwhile.
Sending voice clips and files
A media step sends one voice note or one file and carries straight on to
the next step. It waits for nothing, so put a menu or a question after it.
voice_en: { type: media, clip: "3f6c…", next: price_pdf }
price_pdf:
type: media
file: "77be…"
caption: "Our current price list"
fallback_text: "Our price list: https://example.com/prices"
next: menu
clip,fileorspeak, exactly one.speakis text a voice note says: see Spoken text. Aclipis a voice clip from the Clips panel in the flow editor. Afileis an image, a video or a document from your Files library (see Files you send). A voice clip is not a library file and does not appear in Files.- Voice clips. In the flow editor, the Clips panel (a button down the left of the diagram) lets you upload, play, rename, archive and delete clips. Any common audio file works, up to 16 MB and 5 minutes. It is converted to a WhatsApp voice note when you upload it, and the original is not kept. If the file cannot be converted, the panel tells you why and stores nothing. A clip a flow uses (in its draft or in its newest published version) cannot be archived or deleted: the panel names the flows. The editor’s id picker lists your active clips and files and inserts the id where your cursor is.
captiongoes with afileonly, because a WhatsApp voice note has no caption. It can use placeholders and is at most 1,024 characters once they are filled in.fallback_textis optional. It is sent instead of the media on a channel that cannot carry that file or clip (see What each channel sends below) and when the send fails. Without it, the caption is sent there as a plain message. With neither (a clip has no caption), the step sends nothing on those channels and the flow carries on.- Publishing checks it. Publish refuses an id that does not exist, is archived or belongs to another account, and it uploads each clip to WhatsApp for every active WhatsApp number on your account first (even a number this bot does not answer), so a published version never points at a clip WhatsApp refused. If one number refuses it, nothing is published and the message names that number. Fix its connection, or pause it (untick Active) or remove it on the Integrations page, then publish again. Clips are re-sent to WhatsApp automatically before their copy there expires.
- It counts as one bot message (see Packs and how messages are counted). If WhatsApp later refuses to deliver it, it is not counted.
- Try it shows the clip’s or file’s name instead of playing it. With another channel picked, it shows a media message where that channel would be sent one, and otherwise only the text it would be sent, or nothing.
A voice clip sent from a flow shows in your Inbox as a voice note with the clip’s title.
What each channel sends
A media step is the same step on every channel; what changes is whether the
channel can carry that file.
| Messenger | Website chat | |||
|---|---|---|---|---|
| Image | Sent | A PNG or JPEG up to 8 MB | Sent, up to 25 MB | The words |
| Video | Sent | MP4, OGG, AVI, MOV or WebM up to 25 MB | Sent, up to 25 MB | The words |
| Document | Sent | A PDF up to 25 MB; any other type sends the words | Sent, up to 25 MB | The words |
| Voice clip | Sent as a voice note | Sent as audio, up to 25 MB | Sent as audio, up to 25 MB | The words |
- “The words” are the step’s
fallback_text, else its caption, else nothing. A file whose type or size the channel does not take is sent as those words, not refused, and Validate warns you for each channel an assistant serves where this would happen. - Messenger’s formats. Meta publishes a size limit for Messenger but no list of file types, so Kooday sends what it is given up to the limit. We are still confirming which types Messenger accepts. If Meta refuses a file after we send it, nothing more is sent for the step, it is not counted as a bot message, and the caption (already sent) still reaches the customer.
- Voice clips on Instagram and Messenger are sent from a second copy of the clip (AAC audio), because those channels do not play WhatsApp’s format. Kooday makes the copy when you publish a flow that uses the clip, when you make a clip from text, and in a background job that runs about every six hours. A clip with no copy yet, for example one uploaded moments ago, sends the words until it has one.
- A caption goes after the file as its own message on Instagram and Messenger, because their attachments carry no text. It counts as a second bot message.
- The 24-hour window. Instagram and Messenger have no templates, so outside the customer’s 24-hour window nothing is sent. A flow only replies, so this is rare.
- A voice note made from text (
speak) is made only on WhatsApp. On Instagram and Messenger it is sent only if a clip for that text and language already exists and has its copy; otherwise the customer gets the words, and nothing is charged there.
AI help: when the flow runs out
By default a flow that gets something it did not expect asks again and then
goes where you sent it. AI help lets the AI step in instead. You choose how
soon on the flow’s editor, in the AI help picker in Flow settings (it writes
ai.level into the script for you).
| Level | What happens when a customer sends something the step does not accept |
|---|---|
Off (off, the default) | The flow asks again, then moves on. AI help never steps in. |
After one retry (after_retry) | The flow asks once more. If the customer is still off-script, the AI answers. Needs fallback.reprompt of at least 1; a higher number adds no further retries before the AI. |
Straight away (immediate) | The first thing the step does not accept goes to the AI. |
AI takes over (takes_over) | As Straight away, and the AI then handles the conversation until the customer taps an option, gives a valid answer to the question, or uses one of your keywords. |
ai:
level: immediate
instructions: "We are a car-detailing studio. Keep answers to two sentences."
instructions is optional, up to 1,000 characters, and is added to what the AI
is told. After the AI answers, the flow carries on from the same step: it shows
the options again or repeats the question.
Opt a step out. A menu or an ask can say ai: off, and unmatched input
there behaves as level Off. Use it for a step where only your own wording will
do, such as a final confirmation.
What the AI is. It is the assistant’s own AI: its persona, language and
knowledge base, and the conversation so far. It also receives the current
step’s text and options (or the question and its input type) and your
instructions. It does not receive the rest of your script, saved answers or
customer fields.
What the AI can do at a step:
- Pick one of that menu’s options for the customer, as if they had tapped it.
- Give the answer to the current question, which the flow checks exactly as if the customer had typed it. A wrong value is treated as an invalid answer and the flow asks again.
- Answer a question from your knowledge base and show the menu’s options again. After an answer at a menu it may also show up to three of that menu’s options as buttons (an option whose title is 20 characters or fewer). On Instagram and Messenger they are listed with their numbers.
- Hand the conversation to your team.
- Understand a voice note, and a photo when image understanding is switched on for your account: a voice note at a step with AI on is transcribed and read like typed text.
What the AI cannot do.
- It never confirms anything for the customer. It cannot pick an option marked
confirms: true, and it cannot pick an option, or answer a question, whose next steps run into abookingor anactionbefore the customer’s next tap or answer. So a booking or a call to your own system always needs the customer’s own tap or typed answer; AI text alone never causes one. - It cannot book, send files, take orders or use any other tool your assistant has. Inside a flow it has your knowledge base and the opt-out tool, and the flow’s own few tools.
- It cannot reach another step by suggestion: suggested options are only the current menu’s.
If the customer writes STOP (or the AI recognises that they want to stop), they are opted out as they would be with any assistant, and nothing more is sent.
Every AI turn sends a message. If the AI chose an option and wrote no
text, the customer gets the wording under messages.ai_ack (default “Okay 👍”).
When the AI answers and the flow then shows its options again, the options use
messages.back_to_options (default “Please choose one of the options.”) unless
the AI suggested options of its own.
When the AI cannot answer (your wallet cannot pay for it, the assistant has
no working AI credential, or the AI errors or runs out of its 30 seconds), the
customer is never told why: the flow does what Off would have done (ask again,
or move on to your fallback.then). After 20 AI turns in one conversation,
the flow also behaves as Off for the rest of it. If the AI had already started
when it failed or ran out of time, that call is still charged as an AI
conversation and counts toward the 20; nothing is charged when it could not
start (no money, or no working AI credential).
Where it applies. WhatsApp, Instagram and Messenger. On website chat a flow behaves as if AI help were off. A flow with AI help needs an AI credential like any AI assistant, so a flow bot’s readiness check includes it.
Billing. An AI answer is billed as an AI conversation, from your wallet, the same as with the AI assistant. You are charged whenever the AI ran, including when its reply is not sent: for example your team took over the chat while it was working, the customer asked you to stop, sending failed, or it could not finish. The AI’s own reply is not a bot message and does not use your pack’s allowance; your flow’s messages still do. See Packs and how messages are counted.
Try it never calls the AI. At a step where AI help would answer, it says AI would answer here and lets you choose what happened: a reply, one of the options the AI may choose, an answer, a handover, STOP, or unavailable.
Publishing. A flow that uses a media step or any AI help level other than
Off can only be published once we have switched that on. Until then Publish says
so and the draft is kept; you can write and try the flow meanwhile.
Answer as: use another assistant’s AI
By default the AI in a flow is the assistant running it. With the Answer as
picker in Flow settings you can have another of your assistants answer instead, for
every AI help answer, AI chat and AI step in the flow (it writes ai.bot into the script). To
change it for one step only, write ai_bot on that menu, ask, ai_chat or ai_step, using
the assistant’s short name (slug). A step’s own setting wins over the flow’s. The picker is
disabled, with the reason, until the flow has AI help, an AI step or an AI chat.
The named assistant’s knowledge is used to answer this flow’s customers, so don’t
name an assistant that holds internal-only information.
ai:
level: immediate
bot: support
nodes:
complaint:
type: menu
ai_bot: complaints
text: "What went wrong?"
options:
- { id: late, title: "It was late", next: team }
- { id: other, title: "Something else", next: team }
team:
type: handoff
text: "A person from our team will help you."
on_refused: bye
bye:
type: end
- It answers as it is set up: its persona, languages, knowledge base, AI model and
AI credential. An AI step keeps its own
instructionsand uses only the other assistant’s AI model and credential. - The conversation stays where it is. Messages are still sent by the assistant running the flow, on the same chat, with the same history, handover and records.
- Languages. If the two assistants’ language settings differ, a reply can arrive in another language. The editor warns you and still lets you choose it.
- It must be able to answer. You can only publish with an assistant that is active
and not archived, in a flow where the AI can run (AI help on, an AI step or an AI chat). If you
later turn it off, archive or delete it, or its AI credential stops working, those
steps get no AI answer: AI help behaves as Off, and an AI step or AI chat takes
on_error. The assistant running the flow does not answer in its place. Its readiness is checked again when you change, switch off, archive or delete an assistant, so the problem shows there. Live conversations can go on using the old settings for about a minute. - “Require this before” rules. In AI help answers and AI chats, the rules of both assistants apply: the one running the flow and the one answering. Either can hold a tool back, and answering one assistant’s questionnaire does not clear the other’s. The flow’s AI cannot ask a questionnaire, so the tool stays unavailable to a customer who has not already answered it. AI steps are not affected.
- Billing is as for any AI answer, charged to your wallet. When one customer message needs more than one AI call, their cost counts toward the same AI conversation.
- It does nothing on website chat, where flows run without AI. A flow that uses it can only be published once we have switched it on.
AI steps: let the AI decide, then carry on
An ai_step asks the AI one question about what the customer said, writes the
answer into saved values, sends the customer nothing, and goes on. Branch on
the answer with an ordinary condition.
ask_issue:
type: ask
text: "Sorry to hear that. What went wrong?"
input: text
save_as: complaint
next: triage
triage:
type: ai_step
instructions: >
The customer is describing a problem with a job we did.
Decide what kind of problem it is and whether they are upset.
input: "{{vars.complaint}}"
save:
category: { type: option, values: [quality, delay, billing, other] }
upset: { type: option, values: ["yes", "no"] }
summary: { type: text, max: 300 }
next: route
on_error: to_person
route:
type: condition
when:
- { test: equals, value: "vars.upset", to: "yes", then: to_person }
else: log_it
instructions(1 to 1,000 characters) says what to decide. The customer never sees it.inputis optional and uses placeholders; without it, the AI reads the customer’s latest message and the conversation so far.savedeclares 1 to 5 values. Each has atype: anoptionis one of 2 to 10 ids you list; atextis a short summary, 300 characters by default and at most 500 (a longer one is cut at a word); anumber, aninteger(a whole number), adate(writtenYYYY-MM-DD), aphoneor anemailis read and checked the way the same answer to anaskis. Anumberorintegercan have aminand amax. A value is required unless you writerequired: false; an optional value the AI could not read is simply left out, and the step still goes tonext. When a step has adate, the AI is told today’s date in your account’s time zone, so “next Tuesday” can be read. A date has no window: use anaskwhen you need one.nextis taken when the answer is valid.on_erroris taken when the AI could not answer, answered with something outside your list, or is not available (a wallet that cannot pay, no AI credential, an error, the time limit, website chat, or the 20 AI calls a conversation session allows already used: AI help, AI chats and AI steps share that limit). Every value the step writes is cleared onon_error.- By default it reads text only. To read a photo or a voice note, see Reading a photo or a voice note below.
- It uses the assistant’s AI model but not its persona, knowledge base or customer fields, and its only tool is saving the answer.
Rules Publish checks, so the customer is never left with silence or sent into a booking by AI alone:
- Neither exit may reach a
bookingor anactionbefore a step that asks the customer something. Ask “Shall I log this complaint? Yes / No” first. - After the step, every path must send the customer a message (a
message, amenu, anask, amediastep with a caption or fallback text, or ahandoffwith text) before it waits, ends or closes. Adelayis a wait, so the message must come before it. A handoff’s if refused path counts too: it must send a message of its own. - AI-written
textvalues may only be used in a booking’s fields, an action’s payload or anemit’s data. They can never be placed in a message to the customer, or in a booking’spreferred_time, which the assistant reads back to the customer. Values chosen from your own list, and anumber,integer,date,phoneoremail(which are checked before they are kept), may appear in messages. An optional value may be missing, so no message can use it: test it with acondition(test: exists,value: "vars.company") and use it only on the branch where it exists.
Treat the summary as untrusted input. It is the customer’s words seen through the AI. A system that receives it, through an action or an event, must check it like any customer-typed text.
Passing values to another system needs no new step. An emit step records
a checkpoint event with the values in its data, and your event route delivers
it (this needs API access, see Connecting your own
systems).
Billing. An AI step is billed as part of the AI conversation, like any other
AI call, even when it ends on on_error after the AI started. Nothing is charged
when no call was made. A conversation whose flow never reaches an AI step costs
nothing extra. The step sends no message of its own, so it uses none of your
pack’s allowance. Reading a photo or voice note is part of the same conversation
price, not a separate one-off charge (AI match and voice clips made from text are
the one-off uses). A photo is charged when the AI was asked to read it. A voice
note is charged from the moment it is sent for transcription, even when it turns
out silent or the read runs out of time; nothing is charged when it could not be
downloaded. Each read that calls the AI counts toward the 20 calls a session
allows.
Try it never calls the AI: at an AI step it shows AI step would answer here with your fields, and you choose saved (entering values, which are checked as the AI’s would be), invalid or unavailable. Each field has a box for its type (a number, a date, a phone number, an email address), and a skip control for an optional one. At a question that waits for media, Try it offers Send a photo and Send a voice note for each kind you accept; nothing is uploaded and nothing is read. A step that reads voice notes also offers a heard a STOP choice, which ends the try.
Publishing. An AI step has its own switch. Until we have switched it on,
Publish refuses it with a message saying so, and the draft is kept. A step with a
date, number, integer, phone or email value, an optional value, a read,
or a question that waits for media also needs the switch for the newer steps (see
When can I publish these?).
Keeping a value the AI read
A value the AI read stays in the conversation (vars). To keep it on the
customer’s record, ask the customer first and save it on the “Yes” path with a
set step. The AI never writes to the customer’s record by itself.
- Ask before you save. Put a
menu(“Is this right?”) between the AI step and theset. Publish warns (This value was read by the AI and is saved without the customer confirming it) when asetcan be reached without one. Only a menu counts: aconditionor anaskin between does not. - What may be saved. A
phoneoremailfills a text field, anumberorintegera number field, adatea date field and anoptionan option field. Atextthe AI wrote cannot be saved to a customer field, and it cannot be read back to the customer with{{field.…}}either. - Anything can be misread. A step that reads should be followed by an “Is this right?” menu before anything is booked or kept.
Reading a photo or a voice note
An AI step can read a photo or a voice note the customer sends, not only typed
words. It works in two steps, because a step can only read what arrives in the
turn it runs in: an ask that waits for the photo or voice note, then the
ai_step right after it.
fields:
- { key: work_phone, label: "Work phone", type: text }
nodes:
ask_card:
type: ask
text: "Please send a photo of your visiting card."
input: media
accepts: [photo]
save_as: card_input
fallback_next: type_it
next: read_card
read_card:
type: ai_step
instructions: >
Read the mobile number and the company name on the card. Do not guess a
digit or a letter you cannot see.
read: [photo]
save:
mobile: { type: phone }
company: { type: text, max: 80, required: false }
next: confirm
on_error: type_it
confirm:
type: menu
text: "Is this your number: {{vars.mobile}}?"
options:
- { id: "yes", title: "Yes", next: keep }
- { id: "no", title: "No", next: type_it }
keep:
type: set
values: { field.work_phone: "{{vars.mobile}}" }
next: book
input: mediaandacceptsmake anaskwait for aphoto, avoicenote or both. The customer’s photo or voice note answers it in the same turn, andsave_asholds the wordphotoorvoice, so aconditioncan tell them apart. Typed words are asked again, as at a location question. The question takes nosave_to_field, limits orinputof its own.readon the step lists the same kinds asacceptson the question before it. Publish refuses a step that reads media but does not come straight after a matching media question, and a step that has bothreadandinput.fallback_nextis required on the question. Photos and voice notes are read on WhatsApp only. On Instagram, Messenger and website chat the question skips straight to itsfallback_next(a typed alternative) without waiting. Validate shows a warning for each such question when one of your assistants that runs the flow is on Instagram or Messenger.- Tell the AI what to look for, and not to guess. The step does not add a
“do not guess” line for you; write it in
instructions, as the example does. The words written on a photo can only fill the values you declared, each checked; they cannot send a message or start an action. Neither exit may reach a booking or an action without a customer step in between. - If it cannot read it. A photo that cannot be fetched or is no longer
available, a voice note that cannot be transcribed, and photo reading switched off for
your account all take
on_error, and so does a required value the AI cannot read or a silent voice note. Youron_errortext is where the customer is told to type it instead; the step sends nothing itself. - A spoken STOP. If the voice note is the customer asking to stop, Kooday records the opt-out and sends the usual confirmation, and the conversation ends: nothing after the step runs. This is the one message an AI step ever sends.
- Privacy. The photo or voice note is sent to the AI provider to be read. The editor says so beside a step that reads. The photo is read and not kept. The voice note’s transcript is kept in the conversation like any message, and is cleared with it.
- Other channels. An AI step that reads text works on WhatsApp, Instagram and Messenger as before; only reading a photo or a voice note is WhatsApp only.
AI chats: a short conversation with a goal
An ai_chat step lets the AI talk with the customer for a few turns, until it has
what you asked for. Use it when a menu or one question is too rigid, for example
helping someone choose a service. It works even when AI help is Off.
help_choose:
type: ai_chat
text: "Tell me about your car and what you want done. I can answer questions too."
goal: >
Help the customer choose one of our three services: wash, polish or coating.
Answer their questions from our knowledge base. The goal is met only when the
customer has said which one they want. Do not choose for them.
save:
service: { type: option, values: [wash, polish, coating] }
car: { type: text, max: 100 }
max_turns: 8
timeout: { after: 4h, then: gone_quiet }
next: ask_day
on_limit: team
on_error: team
ask_day:
type: ask
text: "Which day suits you?"
input: date
save_as: day
next: confirm
confirm:
type: menu
text: "Request {{vars.service}} on {{vars.day}}?"
options:
- { id: yes, title: "Yes, send it", next: book }
- { id: no, title: "Change something", next: help_choose }
book:
type: booking
fields:
service: "{{vars.service}}"
preferred_time: "{{vars.day}}"
notes: "Car: {{vars.car}}"
on_success: booked
on_unreachable: team
on_error: team
booked:
type: message
text: "Request received. We will confirm it with you."
next: done
gone_quiet:
type: message
text: "No problem. Write to us whenever you like."
next: done
team:
type: handoff
text: "A person from our team will help you."
on_refused: no_team
no_team:
type: message
text: "I could not reach the team just now. Please write to us again."
next: done
done:
type: end
What goes in the step
text(required) is your welcome. The customer sees it when the flow reaches the step, and it can use placeholders.goal(required, 1 to 1,000 characters) tells the AI what the chat is for and when it is done. The customer never sees it. It is read as written: it does not fill in placeholders.save(optional, up to 5 values) is what the AI records when the goal is met: anoption(one of 2 to 10 ids you list) or atext(300 characters by default, at most 500), or anumber,integer,date,phoneoremail, and a value can berequired: false, as in an AI step. An AI chat has noread: its replies already understand a voice note, and a photo when image understanding is switched on. Entering the step clears these values.max_turnsis how many AI replies the customer can get at this step each time they reach it: 10 unless you say otherwise, from 1 to 20.next,on_limitandon_errorare all required.nextis taken when the goal is met,on_limitwhen the replies are used up, andon_errorwhen the AI cannot answer.timeout(optional) is for a customer who goes quiet. It works as on a question, and starts again after each turn and after the line sent for a message the AI cannot read.ai_bot(optional) is Answer as for this step.
How the chat runs
- Each message from the customer gets one AI reply. The AI is the assistant’s own:
its persona, language, knowledge base and the conversation so far, plus your
goaland, if you wrote them, the flow’s AI help instructions. It can search your knowledge base, record yoursavevalues (or mark the goal met), hand over to your team, and record a STOP. It cannot book, send files or use any other tool. - It is told to answer what the customer wrote, briefly, to record only what the
customer actually said, and not to mention the step. On the last reply the step
allows, it is told to wrap up and not ask a new question. If that reply does not
meet the goal, the flow takes
on_limitstraight after it; if it does,next. - If a message ends a wait and the flow goes straight into an AI chat, the customer gets the welcome and then the AI’s answer to that message, as the first reply. It counts as a turn and is billed like any AI reply. If the AI cannot read the message, or the wait ended by itself, they get the welcome only. If the flow runs a booking, an action, a handover or an AI step on the way, they also get the welcome only.
- Messages the AI cannot read (a document, sticker, location pin, form
answer, or a photo when image understanding is not switched on) get only your
invalid_valueline. The customer stays in the chat, no AI runs, and no turn is used. The line is sent for at most 3 such messages in a row; after that the chat stays open but says nothing more, until a message the AI can read arrives, which also starts the count again. Text and voice notes are always read. - Your global keywords still work.
- A conversation has 20 AI calls in all, shared with AI help and AI steps. When
none are left on arrival, the flow takes
on_limitwithout a welcome. - If the AI cannot answer (a wallet that cannot pay, no AI credential, an error),
the flow takes
on_error. If the AI tries to hand over and the handover is refused, the customer is told and stays in the chat (or the flow takeson_limitif no replies are left). - Website chat: the AI chat does not run. The visitor goes straight to
on_error, with no welcome.
Rules Publish checks
- None of
next,on_limit,on_errorandtimeout.thenmay run into abookingor anactionbefore the customer is asked in amenuor anask. Confirm the details before booking, as the example does: the AI never books by itself. on_limit,on_errorandtimeout.thenmust send the customer something before the flow waits or ends, so the chat never ends in silence. A message on the far side of adelaydoes not count. Ahandoffthere needstext, and its refused path must send a message too.- An AI-written
textvalue may only be used in a booking’s fields (neverpreferred_time, which is read back to the customer), an action’s payload or anemit’s data. It can never be put in a message. Anoptionvalue comes from your list, so it may be shown. That is why the example asks the day itself with adatequestion and shows only the chosen service. Treat AI-written text as you would anything a customer typed.
Writing a good goal
- Say what the chat is for in a sentence: “Help the customer choose one of our three services.”
- Say exactly when it is done: “The goal is met only when the customer has
said which service they want.” Name every value in
save, and say not to guess one. - Say what to leave alone if it matters: “Do not quote a price that is not in the knowledge base.” Anything the AI may state as a fact belongs in your knowledge base, not in the goal.
- Keep it short. Write your welcome in
text, and long advice on how to behave in the assistant’s persona or the AI help instructions. - Do not rely on the goal to protect a booking: the confirm step does that.
- Test the real AI on a test WhatsApp number before you use it. Try it never calls the AI.
Billing. Each AI reply is billed as part of the AI conversation, like any AI help answer, including when it is not sent. The welcome is a flow message and counts toward your pack; the AI’s replies do not.
Fixing an outcome the bot does not have
An end step can name an outcome, such as appointment_booked, that records how
the conversation went and can start a deal. The outcome has to be one that every
assistant running the flow has in its outcome list. Outcomes belong to an
assistant, not to the flow, so the check is made when you Publish (against
every assistant that runs the flow) and when you choose the flow for an assistant
on its Flow tab. A flow no assistant runs yet can end in any outcome.
When Publish finds an assistant without the outcome, the flow editor on the Flows screen shows a notice for that assistant, [assistant] does not have an outcome this flow ends in, with a Fix outcome button; the same button sits beside the problem in Problems in this flow on the Advanced tab. The button fixes the outcome on the assistant the notice names: if two assistants run the flow and both lack it, each has its own notice and its own button. If you are typing the outcome yourself, the editor suggests the outcomes of every assistant that runs the flow (each suggestion says which assistants have it) and the built-in ones; for a flow no assistant runs, it suggests the built-in ones only.
If choosing the flow on an assistant’s Flow tab is refused because the assistant lacks an outcome, the message has a Fix outcome link. It opens the flow in the editor with the same box, for that assistant and that outcome. Pick or add the outcome, Save draft, Publish, then choose the flow on the assistant’s Flow tab again.
The button opens a box with three choices, in this order:
- Use one this bot has. Pick an outcome from your assistant’s own list, or
one of the built-in outcomes every assistant has, with its meaning shown beside it. The flow is rewritten to use it, and nothing
changes in your outcome list. This is the right choice most of the time. A
service assistant’s list has
visit_bookedwhere the starter flow saysappointment_booked, and a mentoring assistant’s hassession_booked, so picking that one fixes the starter in one click. - Reuse an existing outcome. Pick one that another of your assistants uses, or one from the starter set. It is added to this assistant’s list with its meaning (if it has none yet, you write one first), and the flow is rewritten to use it. Where the outcome already opens a deal, the row says Opens a deal in: and the column.
- None of these fit. Give the new outcome a name and say what it means. The name uses lower-case letters, digits and underscores, starts with a letter and is at most 40 characters. The meaning is required and at most 200 characters. If the name looks like one already listed, the box says Looks like that one and asks if you would rather use it; Save anyway keeps yours.
Three things to know before you click:
- The list changes now; the flow changes with your draft. Adding an outcome to a list takes effect straight away. The rewritten flow is only in the editor until you Save draft.
- A shared list changes for every assistant. If your assistants share one outcome list, choices 2 and 3 show This changes the outcome list for all your bots and stay disabled until you tick the box. To change one assistant only, override its list in Wording & outcomes first (see Editing your assistant’s wording and outcomes).
- A new outcome opens no deal yet. The box says so after you save it. Map the outcome to a column in Pipeline settings when you want it to start a deal (see Setting up your sales pipeline).
A list that has never been set up is set up for you when you reuse or add an outcome (choices 2 and 3). A list you wrote by hand, or one you have saved but not published, cannot be changed from this box. It points you to Wording & outcomes instead. A list holds at most 50 outcomes.
Try it before customers do
Try it runs your script in the dashboard exactly as a customer would meet it. Pick the channel (WhatsApp, Instagram or Messenger, or website chat) so menus appear the way that channel shows them.
Try it sends nothing. A booking is shown as made, a handover as accepted and your own systems are not called. Two things differ on purpose: on website chat the visitor is anonymous, so a booking shows as unreachable and a handover as refused, as it really is; and Try it starts as a brand new customer, so anything saved on a customer’s record starts empty. It cannot send a location pin.
Try it uses the text on screen, saved or not. If you change the flow while you are trying it, the try carries on from where it was. It only tells you the try is out of date, and asks you to start again, when the point it had reached no longer fits the new flow (for example the step it was waiting at is gone).
Waits and time limits in Try it. When the flow is waiting at a delay or at
a question with a time limit, Try it offers ⏩ Skip wait or ⏩ Time out so
you do not sit through it; you can also reply as the customer. It uses your
account’s time zone and calling window. (Website chat offers neither.) If too
many waits pass in a row with no message from you, it says the conversation
closes, as it would for a customer.
Actions. Before an action that saves results, fill in Sample action results to see which branch your conditions take. The action is not run. Numbers and true or false are read as such, and a blank value is left out.
AI chats. At an AI chat, choose what the AI does: replies, meets the goal
(you enter the saved values), hands over to a person, the customer sends STOP,
or the AI is unavailable. Try it shows AI turn N of M, and tells you when a
reply now would use the last turn so the flow takes on_limit.
The editor helps as you type
On the Advanced tab the editor checks the text as you type. On the Diagram tab, each setting that takes words has an Insert a value control, which lists the values you can put there.
{{completions. Type{{inside a step and the editor suggests the values that are set on every way to that step. Values saved by anactionare never suggested, because they are for conditions only.- Website chat warnings. If an assistant that runs this flow has website chat on, Validate can show Website chat behaves differently, for example this delay does not wait; the flow goes on at the visitor’s next message, the AI chat does not run; the visitor goes straight to on_error or this time limit never fires. These do not stop you saving or publishing.
Publishing, versions and going back
Publish checks the whole flow and makes a numbered version. If something is wrong, it tells you what and publishes nothing. A published version cannot be changed.
A customer who is part way through a conversation finishes on the version they started on. The next new conversation uses the newest version.
The flow’s Versions panel (a button down the left of the diagram) lists Published versions with who
published each and when.
Restore copies a version back into your draft so you can change it and
publish again. A conversation that has gone quiet for 24 hours starts again
from the top (you can set between 1 and 168 hours with session_ttl_hours).
If two people edit at once, the second save is refused with a message saying the draft was changed by someone else. Reload it and apply your change again.
WhatsApp forms
A whatsapp_form step sends a native WhatsApp form that the customer fills in
without leaving the chat. You build the form in Meta’s tools and paste its
Meta Flow id into the step, then list the answers you want kept
(form_fields) so the bot can check them.
- A Meta form id belongs to one WhatsApp account. If you copy a flow from another account (a setup copied here by us, for example), the flow’s page asks you to confirm each form’s id before you publish.
- If WhatsApp rejects a form, usually because the id is wrong or the form is
not published, the customer’s next message takes the step’s
fallback_next, and the flow’s page shows a warning naming the form and the assistant that sent it. - On Instagram, Messenger and website chat there are no WhatsApp forms, so the
step goes straight to
fallback_next: write the same questions asasksteps there. - When a customer is moved from the form to those questions, they are told
“No problem — let’s do this with a few quick questions instead.” You can
change that sentence under
messages(form_switched). - Anything the customer sends that is not the form’s own answer takes
fallback_next. They are not asked to fill the form again.
Booking steps: free times, booking, cancel and move
Booking steps let a flow show a service’s real free times, book one, and let a customer cancel or move their own booking on WhatsApp. Kooday switches them on for accounts when they are ready; until then publishing a flow that uses one is refused and says so. They need the service set up first: Booked by slot with a calendar and slot rules, as described in Bookings.
pickshows rows from a reader a page at a time:booking_days(the days with a free time),booking_times(one day’s free times),my_bookings(the customer’s own upcoming bookings) andmy_orders(the customer’s own recent orders, to follow with an order status step).my_bookingsandmy_ordersread the customer’s own records, so they work on WhatsApp only. The chosen row is saved asvars.<name>.valueand.label.bookingtakesoffering(the service) andslot(the chosen time) to book it confirmed. A time taken in the meantime goes toon_taken, so offer the days again, and a customer the business cannot reach (no phone or email) goes toon_unreachable. Apickthat finds nothing goes toon_empty.booking_changecancels or moves one of the customer’s own bookings. It works on WhatsApp for a customer Meta has verified; elsewhere it goes toon_error. Inside the cut-off set in Booking settings it goes toon_too_lateand changes nothing.
choose_day:
type: pick
reader: booking_days
args: { offering: "CUT" }
text: "Which day suits you?"
save_as: day
next: choose_time
on_empty: no_times
on_error: team
choose_time:
type: pick
reader: booking_times
args: { offering: "CUT", day: "{{vars.day.value}}" }
text: "And the time?"
save_as: slot
next: book
on_empty: no_times
on_error: team
book:
type: booking
fields: { service: "Haircut" }
offering: "CUT"
slot: "{{vars.slot.value}}"
on_success: booked
on_taken: choose_day
on_unreachable: team
on_error: team
which:
type: pick
reader: my_bookings
text: "Which booking?"
save_as: mine
next: cancel_it
on_empty: no_bookings
on_error: team
cancel_it:
type: booking_change
action: cancel
booking: "{{vars.mine.value}}"
on_success: cancelled
on_too_late: call_us
on_error: team
A native form with live times
A whatsapp_form with live_slots: { offering: "CUT" } shows the customer a date and time list
loaded live from the service’s calendar instead of fixed ones; form_fields must list slot,
which a booking then takes as {{vars.<form>.slot}}. WhatsApp must know your form and where to
ask for the times, so in the flow’s editor use Booking form on the flow: Set up the booking
form creates it for your WhatsApp number’s business account and Check with WhatsApp reads
its state; Rotate the form key replaces the security key if the check reports a mismatch
(the old key keeps working for a day, and a key can be changed once a day). A flow with a
live-times form cannot be published until the form shows Ready. Until Kooday turns live
booking times on, the Booking form section says they are not available yet and offers no
buttons. If WhatsApp does not
answer the form, the customer’s next message takes the step’s fallback_next.
Shop steps: catalogue, cart, checkout, pay and order status
Shop steps let a flow sell from your catalogue on WhatsApp: catalogue shows products,
cart reads the cart the customer sends and asks them to place it, checkout places the
order, pay tells the customer how to pay and waits, and order_status shows one of their own
orders. offer_code asks for a discount code. Kooday switches them on for every account at once,
when they are ready; until then publishing a flow that uses one is refused and says so. Each one
except checkout needs a fallback_next for customers on Instagram, Messenger and website chat,
where the shop does not run. The steps, a whole example and what the customer sees are in
Selling on WhatsApp with a flow.
Remembering customers: fields and map pins
A flow can keep answers on the customer’s record so a returning customer is
not asked again. You declare the answers worth keeping under fields (for
example an address, a pincode, a route), then mark a question to save into
one with save_to_field. At the start of a later conversation, a condition
can check whether a field is already set and skip the questions.
An ask with input: location takes a WhatsApp location pin. On every other
channel, and for a pin that is not sent, it goes to the step you name in
fallback_next, so give a typed-address alternative. A location is kept with
its latitude, longitude and, when WhatsApp sends them, its name and address.
Good to know:
- Fields are for customers Meta has verified. They work for WhatsApp, Instagram and Messenger customers. On website chat nothing is read or saved, because a website visitor can type anyone’s phone number. The flow simply carries on as if the field were empty. When a website chat moves to WhatsApp, fields work from there.
- An admin can change or clear one saved field on the customer’s page, under Saved by your flow bots (see Your customer profiles). Your bot reads a changed value from the customer’s next message, unless that conversation already saved the field. A clear leaves earlier conversations as they are: the answers kept from the customer’s flow conversations and the flow events still hold what they said. A customer who has moved can also go through the update path you write into the flow. An admin can erase everything saved for one customer, those copies included: in the Inbox, open the conversation and choose Delete saved fields (with a confirm step; it is on every plan), or use the same button under Saved by your flow bots on the customer’s page (for plans with Customer 360, and it still works after the Flow bots add-on has lapsed). It also clears that customer’s in-progress flow answers. Only admins see the button.
- Saved fields are kept two years after they were last given. They are never shown to your AI assistant, even if you switch the bot back to AI later.
- Deleting a customer’s contact deletes their saved fields.
- A call campaign’s audience filter (source Saved field, see Choosing who a voice campaign calls) and a broadcast segment can both filter by a saved field. Pick the field from the list of fields your published flows save; see Segments. If no published flow saves a field any more, a filter on it is refused.
- To see them, open Reports and switch the source to Customer fields: one row per customer with name, phone, each field and when it was saved, with filters, search and Export CSV. A location is exported as its coordinates plus a map link. Each customer’s page also lists their fields under Saved by your flow bots. Both are for admins, because they hold every customer’s phone and address.
Connecting your own systems
An action step sends the customer’s answers to your own system (a lab, a
booking tool) as a tenant action. This needs the separate API access
add-on and an action you have set up there; see Connecting your
systems.
Two limits matter here:
- A flow’s action waits 8 seconds per attempt for your system to answer, not the 30 seconds the general actions guide gives. A slow system can finish the request after the customer has been told it failed. Every call carries a stable reference your system can use to ignore a repeat.
- A number question accepts decimals. If it feeds an action field that must be a whole number, an answer like 2.5 is refused by the action and the customer gets your error step, not a second chance to answer.
Using what your system sends back
An action can keep a few values from your system’s reply for later
condition steps. Say save_as (a name) and keys (1 to 20 names from the
reply) together.
ask_day:
type: ask
text: "Which day would you like?"
input: date
save_as: day
next: check_slot
check_slot:
type: action
action: check_slot
payload: { day: "{{vars.day}}" }
save_as: slot
keys: [available, seats_left]
on_success: is_free
on_error: team
is_free:
type: condition
when:
- all:
- { test: equals, value: vars.slot.available, to: true }
- { test: gt, value: vars.slot.seats_left, to: 0 }
then: yes_free
else: team
yes_free:
type: message
text: "{{vars.day}} looks open. Our team will confirm."
next: done
team:
type: handoff
text: "A person from our team will help you."
on_refused: done
done:
type: end
- A condition reads them as
vars.<save_as>.<key>, herevars.slot.available. - Only text up to 500 characters, numbers and true or false are kept. A key that
is missing or anything else is left out, and a failed or empty reply clears
save_as. If the result is not available yet (for example the request is still being worked on), the flow takeson_successwith none of the keys, so write your conditions to cope with a missing value. - A name of its own. An action’s
save_ascannot be a name that a question, a menu, a WhatsApp form, asetstep, an AI step or an AI chat also saves under; Publish refuses it. Two actions may use the same one. - Conditions only. No message, including those under
messages, may use these values; Publish refuses it. Say what each branch means in your own words. - They are not included in the answers sent with
flow.completedandflow.abandoned, or shown in the Inbox conversation panel. actionneeds the API access add-on.
A flow also sends events your other tools can receive when it finishes a
conversation, is abandoned, or reaches a checkpoint you place with an emit
step. They are listed in the event reference and
delivered through the routes you set up with API access.
Packs and how messages are counted
Flow bots is one add-on, sold in three packs: Flow, Flow Plus and Flow Pro. Each has a monthly fee and a number of bot messages included each billing month. The pricing page and your Billing page show each pack’s price and allowance, so those figures are never repeated here and cannot drift.
What counts. A bot message is a message the flow sends: each text, menu, form message, voice note or file. These do not count: your customers’ messages, replies you send from the Inbox, the AI’s own replies (AI help and AI chats) and AI steps (billed as AI conversations instead), and the standard fallback replies sent when the add-on is not active. A typed reply that AI match reads and a voice clip made from a step’s text are charged from your wallet as one-off uses, not as AI conversations. A step that speaks its text is still one bot message, like any media step. A caption sent after a file on Instagram or Messenger is its own message and counts as a second bot message. A message WhatsApp refuses to deliver is not counted, unless the refusal arrives after that day has been settled: then it stays counted.
Beyond your allowance each extra bot message is charged from your wallet at your pack’s rate. The charge is settled once a day, after the day ends, and your usage screen shows the overage so far before it applies. If your wallet is empty once you are past your allowance, the flow stops and new messages wait in your Inbox for a person. Within your allowance an empty wallet does not stop the flow.
Website chat greetings. A greeting your website chat sends when a visitor opens the widget counts only if the visitor then writes back, and it counts on the day they write. A visitor who only looks never costs you a message.
Buying part way through a month. The fee and the allowance are both reduced to the days left in the period, so a late purchase gets a small share of the pack for a small share of the fee.
Changing packs. Choose another pack under add-ons on Billing. It starts at your next renewal: the pack you hold runs to the end of the period, and the new fee, allowance and rate begin with the next one. Nothing is refunded or prorated mid-period. You can cancel a pending change before the renewal.
Meta’s own charges. WhatsApp bills your WhatsApp account directly for messages past the free amount Meta gives each number each month, with nothing added by us. A busy flow bot can reach that, so check Meta’s current rates.
Larger volumes. There is no cap and no separate plan for high volumes: beyond your pack’s allowance, every bot message is billed at your pack’s rate. The largest pack has the lowest rate, so a high-volume bot belongs on it.
Setup. If you would rather we built your first flow, Flow setup is a one-time service where we write and publish it from your script, on a call. It is not Guided setup, which sets up the AI assistant.
Allowance alerts
You are told when your bot messages reach 80% and 100% of your allowance, once each per billing period, by email. The same two messages go to WhatsApp once Meta has approved our message template on your WhatsApp account. On Billing, the flow line under usage shows a bar for the month, a banner at each threshold, and a button to submit the template to Meta and check its status. Until Meta approves it, alerts go by email only.
Switching back to AI
On the assistant’s Flow tab, Switch back to AI makes the AI answer from the next message. Conversations in progress on the flow end. Nothing about your flow is lost, and it stays in your library; you can pick it again whenever you like.
To move an assistant to a different flow instead, pick the other flow under Runs flow and choose Switch flow. Conversations in progress stay on the version they started on.
You can only give an assistant a flow when it is published, the assistant is not answering phone calls (flow bots do not run on voice), every outcome the flow ends in exists on that assistant, and Flow bots is on your account.
If Flow bots stops
If your add-on ends or is paused, or we pause flow bots for everyone while we fix a problem, the flow stops answering. Customers get our standard fallback reply, which is sent even if you have switched general fallback replies off, because WhatsApp requires an answer, and their messages wait in your Inbox. Your assistant is not switched to AI on your behalf, because that would start charging AI prices you did not choose. The assistant’s Flow tab shows This flow bot is not live, with a button to switch the assistant back to AI.
Anything we composed before the stop is not sent after it. A conversation that was open when it stopped stays closed.
When you answer from the WhatsApp Business app
If you reply to a customer yourself from the WhatsApp Business app, the flow stops for that conversation and it moves to your Inbox as yours. The flow does not resume until you hand the conversation back.
What a flow bot does not do
- It does not understand free text by itself. It follows your script, unless you turn on AI help, or AI match for a typed reply at a menu, and even then the AI never books, confirms or calls your systems for the customer.
- It does not run on phone calls.
- It does not reschedule or cancel an existing booking, unless your flow uses the booking steps above, which are available once Kooday turns live booking times on. Without them, a “My booking” choice hands over to your team.
- It does not start conversations by itself. It answers customers who write to
you, including those replying to a campaign; a
delayonly continues a conversation the customer already started, inside WhatsApp’s 24-hour window. The one message it can send later is the payment confirmation for an order the customer placed in a flow, once the shop steps are switched on. - Building and editing need a computer.
- It reads a date as today, tomorrow, a weekday name, a day and month such as
18/11 (or 18/11/2027) or
5 March, in English and, when the flow lists languages, in those languages (the word tables for languages other than English are drafted and not yet read by a native speaker; see Building flows). Words like “next Friday” or “day after tomorrow” are asked again. - It does not limit how many flows you build. Your plan limits how many assistants you have, and each assistant runs one flow.
Troubleshooting
This flow bot is not live
Flow bots is not active on your account. Add it from Billing, or switch the assistant back to AI from the same banner.
I cannot publish
The Problems panel (or, on the Advanced tab, the list of problems by line) names every problem. The most common are a placeholder that is not filled on every route to a message, a choice that points to a step that does not exist, and a title that is too long for the channel. Fix them, choose Validate, then Publish.
I cannot choose the flow on the assistant
On the assistant’s Flow tab, the refusal under Runs flow says why: the flow has no published version yet, phone calls are switched on for this assistant, the flow ends in an outcome this assistant does not have (the message names it), or Flow bots is not on your account. A setup copied here that could not give the assistant its flow shows Promotion did not switch this bot to Flow on the same tab, with the reason.
Customers get a fallback reply and nothing else
Check the assistant’s Flow tab shows a flow, that the flow has a published version, that Flow bots is active on Billing, that your wallet has funds if you are past your allowance, and that the conversation has not been taken over by you in the Inbox.
A form was rejected
The flow’s page names the form. Check the Meta Flow id in the step and that the form is published on the same WhatsApp account.
My allowance alerts only arrive by email
WhatsApp alerts wait for Meta to approve our template on your account. Check the status on Billing.
A sensible first configuration
Start from the starter, change the greeting and the three questions to yours, Try it on every channel you use, publish, and pick the flow on the assistant’s Flow tab. If the switch is refused (or the editor names an assistant without an outcome the flow ends in), use Fix outcome and prefer an outcome the assistant already has; create a new one only if none fits. Look at the usage line on Billing after a week to see which pack suits your volume.
Still stuck? We answer support mail the same working day.
Email support