Skip to main content
A flow’s definition is what Create a flow and Update a flow take and Get a flow returns. It is the same JSON the editor in Automation → Flows saves, so the quickest way to learn a shape is to build it there and read it back.
How a run works. Each person who matches the trigger gets their own run. Steps run in order; a wait parks the run until it is due; an Only if step ends the run when its checks fail; a Split sends the person down one path and is always the last step of its list. Whether the same person can start again is the flow’s repeat setting (off, once_per_contact, once_per_order, once_per_order_per_day, once_per_subscription, reenter_after). Every step needs an id that is unique in the flow; the report and the check “opened or clicked a message” refer to steps by it.

Triggers

definition.trigger always has "type": "event", an event and its source.

Order or checkout

Starts when a store order or checkout event arrives. Shopify events use source shopify, WooCommerce events source woocommerce (each fires once per order). popup_signup starts when someone signs up on a FlowIQ pop-up that has a Flows webhook (source popup).

Subscription

Starts on a FlowIQ subscription event. Billing events use source stitch, actions taken on a subscription use source manage.

Contact

Starts when a tag is added to or taken off a contact, or a new contact is added.

Message

Starts when someone writes to the business for the first time, or sends a keyword.

Date

Starts on a date: a date saved on the contact (a birthday), a number of days after their last order, days before a subscription’s next charge, or Sunset (opted in, but has not read, tapped, replied, visited the store or ordered). Date triggers are checked hourly; Sunset daily at 10:15 South African time.

Product

Starts when the price drops, or stock runs low, on a product the contact asked about or put in a cart.

Your own event

Starts when your system sends an event: through an Endpoint, or with Send an event. The event’s fields are available as {{trigger.<field>}}.

Store browsing

Starts from the FlowIQ app’s store pixel (Shopify): a known, opted-in shopper viewed a product and did not view it again, cart it, check out or order within wait_hours; or a known shopper is on the store (once a day).

Steps

Wait

Waits, then carries on. With until_time / weekdays it then waits for that time of day (South African time) on one of those days.

Only if

Carries on only if the checks hold; otherwise the run ends here.

Split

Sends each person down the first path whose checks hold, or Everyone else. Paths with random_sample shares make an A/B test; with ab.auto the test picks its winner and sends everyone that way. A split is always the last step of its list (paths do not join back up).

Send a WhatsApp message

Sends an approved WhatsApp template. On a Meta (Cloud API) line, if they wrote in the last 24 hours the template’s text goes as a normal message instead, with no template fee.

Send an email

Sends an email from the account’s connected mailbox, only to people who agreed to email (unless require_consent is false), with an unsubscribe link. Plain text, or a design from Broadcast → Email.

Tag or update the contact

Adds or removes tags, or sets an attribute.

Make a discount code

Makes a one-person discount code in the store (Shopify or WooCommerce); later steps use it as {{flow.discount_code}}.

Alert the team

Sends your team a WhatsApp and / or email about this customer.

Send to your webhook

Posts this run’s customer and trigger data to one of your account’s webhooks (Settings → Webhooks), with retries.

Brief the AI agent

Gives the AI agent a one-time instruction for this customer’s next conversation.

Wait for a reply

Pauses until they reply (optionally with one of match_keywords), or until timeout_hours. Not inside a split.

Sync tags to Shopify

Copies the contact’s FlowIQ tags to their Shopify customer.

Checks

Checks are used in Only if steps, in split paths and in exit_rules. random_sample only works in split paths.

What they have ordered

Their order history: have they placed an order, or bought certain products?

What is in this order

The items in the order that started the run.

A detail of the order or event

A field of the order or event that started the run.

First order

Was the order that started the run their first at the store?

Still in stock

Are the order’s products still in stock when the step runs?

A contact field

A field on the contact, such as their tags.

Their subscription

A field of the subscription that started the run (subscription triggers only), e.g. still cancelled, still paused.

Not sent recently

This flow has not completed for them in the last N days (one message for a customer who triggers it twice).

Talking to support

Are they being helped by the team right now: an open ticket, or a team member wrote recently?

Replied

Did they write to us (any channel) since the run started, or in the last N hours / days? Mostly used as a stop rule.

Opened or clicked a message

Did they open or click a message this flow sent them? Email: real opens and clicks (Apple Mail privacy and link scanners are not counted). WhatsApp: read, and a tap on the message’s link.

Engaged lately

Did they read, tap, reply, visit the store or order in the last N days?

On the store lately

Were they on the store (FlowIQ store pixel) in the last N days?

Comparison group

Keeps a stable share of customers out of the flow so you can measure what it adds. The same customer is always in the same group.

Random share (split paths only)

In a split path: this share of people, chosen at random, take the path. Paths with random shares make an A/B test; the shares may add up to 100 at most.

Merge fields

Message text, template parameters, email subjects and bodies, alerts and agent briefs can use these. They are filled per person when the step runs.

When a flow is refused

Create and Update answer 400 validation_error with errors, one line per problem with where it is (step 4 Path A: step 1 …). A flow is created switched off; switching it on answers 409 not_ready while a WhatsApp message in it has no approved template, with the steps to fix in problems.