Skip to content

Conditions & Actions

How a LeadPattern bot flow runs: node categories, failure handling, variables and activation checks, with links to every action and condition.

5 min readUpdated Nov 5, 2026

Once a trigger starts a bot, the flow runs a sequence of nodes. Each node is either an action — do something — or a condition — branch the flow based on the contact's data or the time.

Actions are grouped by category; a condition node splits the flow into paths.

Every node, by category

CategoryNodesDetailed guide
MessagingSend Message, Send Template, Send Interactive Message, Send Interactive List, Send WhatsApp Flow, Send CatalogueMessaging actions, Send Catalogue
Flow ControlCondition, Working Hours Condition, Time Delay, Wait TillConditions, Delays & waits
Contact ActionsAssign Agent, Add / Remove Tags, Set / Remove Attributes, Add to Broadcast List, Close Conversation, Opt OutContact actions
IntegrationsCall API, Send Meta ConversionIntegration actions
CallingIncoming Call (only available on the Incoming WhatsApp Call trigger)Integration actions

How a flow runs

  • One path at a time. The flow starts at the trigger and walks node to node. Each output (called a handle) can connect to one next node — if you draw two lines from the same output, only one is used. To do two things, put them in sequence.
  • Loops end the run. If a path leads back to a node that already ran, the run stops there. Use delays and conditions instead of looping back.
  • A failed step doesn't stop the flow. If a node errors (for example a message that WhatsApp rejects), the failure is recorded in the bot log and the flow carries on down the normal output — On Sent for message nodes. Don't rely on "On Sent" meaning the message was delivered; check the log.
  • Opted-out contacts are skipped. Before every message node (message, template, interactive, flow, catalogue) the contact's opt-out status is re-checked. If opted out, that node is skipped and the flow continues (the Send Catalogue node uses its Not sent output).
  • The 24-hour window isn't checked for you. Only Send Template works outside the 24-hour customer-service window. Free-form messages, interactive messages and flows sent outside it are rejected by WhatsApp, and the step is logged as failed. Send Catalogue checks the window itself and takes Not sent. After a long delay, use a template.
  • Restricted workspaces stop mid-flow. If your workspace becomes restricted, even delayed steps that wake up later don't run.
  • No node limit. There's no cap on the number of nodes, but keep flows readable.

Before a bot can be turned on

Saving always works. Activating runs a check and blocks on errors; warnings are shown but allowed. The check reports the node, the field and what to fix. Typical errors:

  • no connection from the trigger, or a node with an empty required field;
  • a template that isn't approved, has unmapped variables, or was deleted or disabled;
  • a message that is empty, a button/list that's over WhatsApp's length limits, or a media link that isn't https://;
  • a delay of zero, or a Wait Till date in the past;
  • a deleted tag, attribute, broadcast list, API, flow, agent or working-hours schedule;
  • a feature your plan doesn't include (WhatsApp Flows, QuickSell, Meta Conversions);
  • a store or QuickSell trigger/action without the integration connected.

Typical warnings: an interactive button with nothing connected, a condition branch left empty, a broadcast list that's dynamic (adding people to it has no effect).

Personalizing message text

Text in message, caption, interactive body/header/footer, catalogue intro/keyword and API fields can contain variables that are filled in when the message is sent.

TokenFills inNotes
{{field:profileName}}WhatsApp profile name
{{field:name.first}}, {{field:name.last}}First / last name saved on the contact
{{field:phone}}, {{field:waId}}Phone number / WhatsApp IDHidden-phone setups may show differently in the chat
{{attr:slug}}A custom attribute, by slug (for example {{attr:city}})Dates print like "Nov 5, 2026"; lists print comma-separated
{{shopify:key}}A Shopify order/checkout valueOnly when the bot was started by a Shopify trigger
{{quicksell:key}}A QuickSell product/cart valueOnly when started by the QuickSell trigger (or inside Send Catalogue)

Things to know:

  • A token that can't be resolved becomes an empty string (the message still sends).
  • {{shopify:…}} and {{quicksell:…}} work in Send Message and Send Catalogue text. They come out empty in interactive messages, interactive lists and Call API fields.
  • Templates are different: their variables are mapped one by one with a picker (contact field, custom attribute, WooCommerce order field, Shopify order field) or typed as a fixed value — not by typing {{ }} tokens. See Messaging actions.
  • The text-box Insert variable picker offers contact fields and attributes; type the Shopify and QuickSell tokens by hand.

What's next

Was this article helpful?

Your feedback helps us continuously improve our documentation.

Need more help with this topic?Ask LeadPattern Support

Related Articles