Build a chatbot

Build chatbots on a visual canvas with menus, questions, conditions, waits, actions and API calls, or start from a template.

A chatbot answers customers on WhatsApp by itself: it shows menus to tap, asks questions and saves the answers, checks conditions, tags and assigns chats, calls your own systems, and hands over to a person when needed.

Set them up in Automations → Chatbots. Only owners and admins can change them.

Start from a template

Under Start from a template, pick one and click Use this template. It's added switched off, so you can change the wording, links and tags first. Templates include a store menu, lead capture, qualifying by budget, appointment and table booking, order status from your system, feedback and reviews, an FAQ, support triage, course and property enquiries, and a welcome for people who tap an ad.

To start from scratch, click New chatbot.

The canvas

Each step is a card. The Start badge marks where the chatbot begins.

  • Add a step with the buttons above the canvas. It appears next to the step you have selected and is connected to its first unused output.
  • Connect steps: drag from a dot on the right of a card (an option, a rule, "Then", "Worked" or "Failed") onto another card. An output that isn't connected ends the chatbot.
  • Hand over to a person: connect an output to the green Hand over to a person box.
  • Edit a step: click it. Its settings open in the panel on the right, where you can also choose where each output leads from a list.
  • Remove a connection or a step: click it and press Delete, or use the bin icon in the panel.
  • Chatbot settings (name, on/off, trigger words, ad trigger, hand-over message) open when you click an empty part of the canvas.

Click Save when you're done.

Kinds of steps

Message

Text, and optionally a picture (JPG or PNG up to 5 MB), a video (MP4) or a document (PDF up to 16 MB). Add up to 10 options: up to 3 show as buttons (with the picture or video on top), 4 to 10 show as a list. Customers can also reply with an option's number or label. A message without options just carries on to the next step.

Question

Asks something and saves the reply. Choose what you expect (any text, an email address, a number, a phone number or a date) and where to save it: the contact's name, email or a custom field. If the reply doesn't fit, the chatbot asks once more with your message, then stops.

Condition

Goes one way or another. Each rule checks the last answer, a contact field or a tag, for example "Answer is more than 50000" or "Contact has tag vip". Rules are checked in order; the first match wins, otherwise the chatbot follows Otherwise.

Wait

Pauses for up to 23 hours, then carries on. WhatsApp only allows normal messages within 24 hours of the customer's last message, so if that window has closed by then, the chatbot stops quietly.

Action

Adds or removes tags, assigns the chat to a team member, sets a contact field, or closes the chat. Adding a tag can also start a drip sequence set to start on that tag.

API call

Calls an https address of your own system, for example to look up an order. Choose GET or POST, add headers (such as an API key) and a JSON body, and pick values from the reply to save to custom fields, for example status → order_status. Then use them in later messages as {{order_status}}. The chatbot follows Worked for a 2xx reply and Failed otherwise. Only public https addresses are called, and the call times out after 10 seconds.

Personalise messages

Use these anywhere in a message, in action values and in API addresses and bodies:

  • {{name}}: the contact's first name ("there" if unknown)
  • {{answer}}: the last answer to a question
  • {{email}}, {{phone}}, {{full_name}}
  • any custom field, like {{city}} or {{order_status}}

When a chatbot starts

  • Trigger words: when someone sends one of them exactly, like menu or hi.
  • From an ad: when a chat comes from a Click-to-WhatsApp ad. Choose Any Click-to-WhatsApp ad, or Only these ads with the ad IDs from Meta Ads Manager. A chatbot for a specific ad wins over one for any ad.
  • As the welcome message: in Automations → Replies, under Welcome message, choose the chatbot in Send.

How it behaves

  • Each incoming message gets at most one automatic reply. Chatbots come before keyword replies and the AI agent.
  • If someone answers with something that isn't an option, the chatbot asks once more, then stops so your other automatic replies or a person can answer.
  • The chatbot forgets a chat after the time set in Chatbot settings (60 minutes by default) without an answer.
  • When anyone on your team replies, the chatbot stops for that chat.
  • People who opted out never get chatbot messages.
  • Messages from the chatbot show Bot and the chatbot's name in the Team Inbox.

Good to know

  • Chatbots are part of the Growth and Pro plans and the free trial.
  • Changes apply to new chats within about 30 seconds of saving.