Steps

Reference of the 19 steps you can add to a flow: messages, conversation, timing, logic, Shopify actions and team, with their settings, branches and rules.

All plans
On this page 8
  1. The 24-hour rule
  2. Messages
  3. Conversation
  4. Timing
  5. Logic
  6. Shopify
  7. Team
  8. Plans

Steps run one after the other, from the trigger to an End. In the editor they are grouped in the block library as below. See The flow editor for how to add and connect them.

The 24-hour rule

WhatsApp lets you start a conversation only with a template approved by Meta. Free messages (text, buttons, lists, link buttons, questions, AI replies) can only go out within 24 hours of the customer's last message.

Piaflo checks this before you publish. A free message is accepted when every path to it goes through a customer reply: a button or answer branch, a Wait for event step on "the customer replies", or a Keyword received trigger. Otherwise the editor shows an error such as "Free-text messages can only be sent within 24 hours of a customer reply." If the window has closed by the time the step runs, Piaflo skips the message; steps that wait for an answer then follow No answer.

Messages

Step What it does Settings
Send template Sends a template approved by Meta. Works anytime. Template, a value for each variable of the template
Send text Free text, optionally with an image, a video or a PDF. Message, Attachment, File URL (a public https link)
Send a link button Free message with a button that opens a link. Message, Button text (20 characters), Link

When the template has quick reply buttons, each button opens its own path, plus No answer after Wait for an answer (hours) (24 by default). If you choose a template from a recipe, or one you created in Piaflo, its variables are filled in for you.

In a marketing flow, templates are held during quiet hours and count toward the weekly marketing limit. When the limit is reached, Piaflo skips the template and moves on (to No answer if it has buttons).

Conversation

Step What it does Branches
Send buttons Free message with 1 to 3 buttons (20 characters each) One per button, plus No answer
Send a list Free message with a button that opens a menu of up to 10 options One per option, plus No answer
Ask a question Waits for a free answer and routes it by keywords One per recognised answer, Any other answer, No answer
AI reply Answers the customer's message from your instructions (Pro plan) Replied, Not answered

Send a list: name the button with Button that opens the list (20 characters). Each option has a title (24 characters) and a Description (optional) (72 characters).

Ask a question:

  • Question is optional. Leave it empty to listen to the answer to the previous message, for example a template.
  • Save the answer as keeps the answer under a name (lowercase letters, digits and _), so you can reuse it later as {{ answers.size }}, for example.
  • In Recognised answers, add up to 8 paths. Each has a Path name and When the answer contains: words separated by commas. Accents and capital letters are ignored, and the first path whose word appears in the answer wins.

AI reply needs the Pro plan. Write Instructions and FAQ (what the AI may answer and how), set the Maximum length (characters) between 100 and 1000, and choose When the AI cannot answer: hand the chat to your team, or only follow Not answered. Each reply uses one AI credit. Place it after a customer reply.

For every step that waits for an answer, Wait for an answer (hours) sets how long before No answer.

Timing

Step What it does Settings
Wait Pauses the flow Wait and Unit: minutes, hours or days
Wait for event Waits until the customer orders or replies Wait until "the customer places an order" or "the customer replies", For at most (hours)

Wait for event has two branches: Happened and Timed out. The abandoned checkout recipe uses it to stop when the shopper orders.

In marketing flows, a Wait can end a few minutes earlier or later than set, so that messages do not all leave at the same second.

Logic

Condition checks data about the order or the customer and sends them down Yes or No.

  • Match: All rules or Any rule.
  • Each rule has a Field, an Operator (equals, is not, greater than, less than, contains, does not contain, is set) and a Value.
  • Fields include the trigger's variables, the payment method (order.gateway), the opt-in source, the customer's message and saved answers.
  • Comparisons ignore capital letters. equals compares numbers when both sides are numbers.

A/B split (Growth plan) sends each customer at random down path A or B. Set Share of contacts in branch A (%), from 1 to 99. Compare the two paths in the flow report.

Shopify

Step What it does
Create discount code Creates a unique code in Shopify for this customer
Tag customer Adds or removes tags on the customer
Tag order Adds or removes tags on the order
Add order note Writes a note in the order timeline
Cancel order Cancels the order, with or without restocking
Subscribe to marketing Subscribes the customer to your WhatsApp marketing messages

Create discount code: set Discount (%) (1 to 100), Valid for (hours) and Code prefix (letters and digits). The code looks like PIAF-7KQ2X: single use, off all products, combinable with shipping discounts only. Use Discount code and Discount amount in the messages after it. The code appears in Shopify discounts as "Piaflo 10% · PIAF-7KQ2X".

Tag order, Add order note: need an order trigger. Cancel order works on Order created, Cash on delivery order and Order paid, with the Restock items option.

Subscribe to marketing must sit on a reply branch, for example the Yes button of "Do you want our offers on WhatsApp?". It saves the consent in Shopify and starts your Customer opted in flows. It does nothing for a customer who replied STOP.

If Shopify refuses one of these actions, the flow carries on with the next step.

Team

  • Hand off to a human: opens the conversation in your Inbox as unread and pauses automations for this customer until you close the conversation. See Automation pause.
  • End: stops the flow for this customer. Every branch finishes on an End.

Plans

  • A/B split: Growth and Pro.
  • AI reply: Pro.
  • All other steps: every plan. On the Free plan, a flow can hold only one message step (send or question), and you edit the recipe flows since custom flows start with Starter.

Still stuck? Write to us with the flow name or the order number involved.