Advanced Workflow Patterns

    Answer paths, follow-ups, branches on contact and order data, AI decisions, waits, store events, reuse and testing.

    These patterns use the steps and rules of the workflow builder, so they work the same when you build on the canvas and when an AI assistant builds the workflow for you through MCP (Build Workflows with Claude or ChatGPT). Each one names the steps to use and what to watch for.

    A workflow with an If / Else step.
    A workflow with an If / Else step.

    Answers as Paths

    Ask a question holds up to 3 answers, and each answer gets its own path. Two more paths catch the rest: Other for a typed reply that matches no answer, and No reply when nothing comes before the wait ends. Give every path an end, even if it is only a tag, so no customer is left waiting.

    Wait for a Reply, Then Follow Up

    Wait for reply pauses the run until the contact writes back, and takes its no-reply path when the wait ends. The next steps can quote it with {replyText}, the builder's variable for the customer's latest reply (Ask a question and Collect info fill it too), so a team alert or an internal note shows what they wrote.

    Tip. For a reminder, set a Wait step to Before the 24h window closes. It sends 1 to 23 hours before the messaging window closes, and never after it has closed.

    If / Else on What Raqi Knows

    If / Else checks the contact and the conversation: Contact has an email, Contact has a phone number, Contact has tag, Lifecycle stage is, Latest message contains, Channel is, Outside business hours, Contact field, Link clicked and Ad field. Contact field reads a field as text, as a number (is more than, is less than, is between) or as a date (is before, is after, is longer ago than, is within the last).

    Branch on an Order

    If / Else reads the contact, not the order. To branch on an order value such as its total, first save it to a custom field with Update property (for example {order.shop_total}, the total in your store's own currency, into a field named last_order_total), then check that field with Contact field and is more than. Save {order.shop_total} here rather than {order.total}: when your store sells in several currencies, {order.total} is in each shopper's own currency.

    Let AI Decide

    AI-detected condition reads the customer's replies in this run, in any dialect, and takes If true or If false for a condition you write in one plain sentence, such as "The customer confirms the order as it is". Each check uses one AI step from your plan, and AI steps start on the Starter plan.

    Waits

    The Wait step has five modes:

    • A set time or A random time in a range, up to 30 days. A random time spreads a follow-up to many people across the range.
    • Business hours: holds the run until the business hours of your workflow guardrails open.
    • A date or time: a date, a time of day, or a date saved on the contact, such as one day before an appointment.
    • Before the 24h window closes: the reminder above.

    Store Events

    With a connected Shopify or WooCommerce store, a workflow can start on New order, Order paid, Order shipped, Order delivered, Order cancelled, Checkout abandoned, Back in stock or Price drop. Which orders limits an order event to Cash on delivery only or Paid online only. Checkout abandoned comes from Shopify only.

    Important. A store workflow starts without a message from the customer, so its first message to them must be an approved WhatsApp template. Send free text only after they reply.

    Reuse Across Workflows

    Put a block you use in several workflows, such as the handoff to your team, in its own published workflow and start it with Run another workflow. A chain holds up to 3 workflows, and a workflow cannot start itself or one already in its chain. To reuse a whole workflow in another client's workspace, use Copy to workspace: the copy arrives as a draft.

    Compare Two Versions

    A/B split sends people down 2 to 5 paths by the weights you set, and the same person always takes the same path. Use it to compare two first messages or two offers.

    Hand Off to Your Team

    Use Assign to set to Nobody (remove the assignee), then Notify your team, then tell the customer a person will reply. The chat moves to your team and the AI stops replying in it, and the alert tells your team why. Tell a customer the team will reply only on a path that hands the chat over.

    Guardrails and Limits per Workflow

    Workflow guardrails on the Workflows page apply to every workflow in the workspace: opt-out detection, rate limits, a message cooldown, business hours, duplicate prevention and a limit on automated messages per person. In each workflow's settings, Limit runs per contact sets how often one person can start it, and Stop when the contact replies cancels a waiting delay when the person writes.

    Test Before You Publish

    Simulate plays the workflow through the real engine for a test person and sends nothing to anyone. Walk every path: each answer, Other, No reply and both sides of each If / Else. AI steps in a simulation are real and use AI steps from your plan. After you publish, the Runs tab shows each run step by step, with the path it took and any error.

    Important. A simulation of a store workflow runs with a sample order (#1001, two products, 49.00 USD), so {order.*} values show sample text and a branch on an order value follows the sample. Check those branches in the Runs tab after the first real orders.

    One run of a workflow, step by step.
    One run of a workflow, step by step.

    Limits

    • Up to 150 steps, 300 connections and 20 canvas notes in one workflow.
    • Up to 10 triggers in the trigger block. Any one of them starts the workflow.
    • Waits of up to 30 days.
    • No loops: a connection back to an earlier step is refused when you save.