Product

Flows

Flows are automated journeys. Something happens (a trigger), then MailPirate walks each person through waits, conditions, emails, and exits.

Use flows when Autopilot’s packaged programs are not enough, or when you need a custom path for your store.

Lifecycle

  1. Flows → Create flow.
  2. Set Name, Status (Draft / Active / Paused), Starts when, and optional Goal event.
  3. Build steps on the canvas and connect them.
  4. Publish when ready (publishing snapshots a version enrollments use).
  5. Keep status Active so new people can enroll.

Only published, active flows enroll new people from events. Draft and paused flows do not.

The flows list shows Trigger, Goal, Enrolled, and Revenue so you can compare journeys.

How a flow starts (Starts when)

Option What it means
An event fires Someone does something (subscribe, place order, started checkout, and more)
A date on the profile A date in profile properties (for example birthday) matches today, or N days before - yearly, monthly, or once
Daily segment check MailPirate evaluates a segment on a schedule and enrolls matches
Product due for repurchase Daily replenishment enrollment when a SKU is due
RFM segment changed Overnight RFM recompute moved someone between named groups (optional from/to filters)
Manual enrollment You enroll people by hand, or Autopilot enrolls them

Date property triggers

Use this for birthdays, anniversaries, renewals, and similar.

  1. Store a date on the profile under properties (for example properties.birthday = 1990-03-15). Values work as YYYY-MM-DD or common date formats. Set them via the Marketing API, store sync / meta mapping, or your own import.
  2. Create a flow with Starts when → A date on the profile.
  3. Choose the property key, whether to start on the date or N days before, and recurrence (every year, every month on the same day, or once).
  4. Publish and keep the flow Active. A daily job enrolls matching subscribed profiles (at most once per occurrence, so yearly birthday flows do not re-enroll the same year).

Starter journeys

Saving Autopilot (or creating a store and arming programs) creates starter journeys when they are missing, including Welcome, Post-purchase thank you, Smart upsell, Abandoned cart, Smart re-engage, and Replenishment. Abandoned cart is covered under Abandoned cart.

Event triggers

Common event options include:

  • Subscribed
  • Placed Order
  • Ordered Product
  • Started Checkout (abandoned cart; WooCommerce plugin or Shopify checkouts webhooks)
  • Cancelled Order
  • Refunded Order

Condition and history rules can also reference events such as Viewed Product.

Step types

Step Role
Trigger Defines what starts the journey
Wait Pause for a fixed time (for example 15 minutes, 1 hour, 6 hours, 1 day, 3 days, 7 days)
Smart wait Learns among delay arms you pick; uses a fallback until there is enough data
Wait until Pause until email engagement (click / engaged / open) or a max wait. Engagers leave early; quiet people take Timed out
Recommend Pulls affinity products into the enrollment for later emails (limit controls how many)
Condition Splits into Yes and No paths
Email Sends a template (optional subject override; optional subject/template A/B; can require recommendations)
Webhook POSTs JSON (profile + journey context) to your HTTPS URL, then continues
Exit Ends the journey for that person

Webhook steps

Use a Webhook step when a journey should notify your CRM, warehouse, Slack bridge, or any custom endpoint.

  1. Add a Webhook step and paste an HTTPS URL.
  2. Optionally sign with the store outbound webhook secret, or set a step-specific secret.
  3. Optionally add one extra HTTP header (for example Authorization).
  4. Publish the flow.

When a profile reaches the step, MailPirate queues a POST (event: flow.webhook) and continues the journey immediately. Temporary delivery failures are retried by the queue. Large HTML blobs (cart / recommendations markup) are omitted from the payload; recommendation SKUs and other context keys are included when present.

This is separate from account-level outbound webhooks (subscribe / bounce / complaint).

Connecting steps

  • Drag from a handle to connect steps.
  • Condition steps: one path is Yes, the other is No (typically bottom vs right).
  • Wait until steps: Engaged (bottom) vs Timed out (right).
  • Click a connection and press Delete/Backspace (or use Remove) to disconnect.

Wait until (engagement)

Prefer Wait until over a blind delay + open split:

  1. Send an email.
  2. Add Wait until → signal Engaged (default) or Clicked, of previous email, max wait e.g. 3 days.
  3. Connect Engaged to a soft follow-up or Exit; connect Timed out to a different nudge.

People who engage resume immediately. People who never engage continue on Timed out after the max wait. Prefer Engaged/Clicked over raw opens - privacy prefetch can inflate opens.

Conditions in detail

Conditions use the same style of visual builder as segments:

  • Match All rules (AND) or Any rule (OR)
  • Ready-made presets (examples):
    • Has recommendations
    • Subscribed only
    • Store account / Guest checkout
    • Never ordered / Has ordered
    • Quiet 30+ days
    • Bought in last 7 days
    • RFM champions / at risk
    • High churn risk / high LTV + high risk / next order due soon / SKU due within 7d
    • Started checkout (7d)
    • Ordered since enrollment (perfect for exiting cart recovery)
    • No recent view
  • Custom fields for orders (count, recency, country, SKU, category, tag, totals, ordered since this journey started), RFM segment/scores, predictive churn/LTV/next-order, replenishment due-within-days, profile status/gender/store account, list membership, trigger event, event history (has / has not, optionally within N days), and email engagement (engaged / clicked / opened - previous email, specific step, campaign, or any mail, optionally within N days)

Build branches that feel like real merchandising decisions: “If they bought protein, recommend accessories; otherwise teach the category.”

Email steps and safety

When a flow reaches Email:

  • Consent, suppressions, and frequency caps still apply
  • You can require recommendations - if none exist, the step can skip instead of sending a thin email
  • Optional A/B test this email: fixed split (% on A) or auto-optimize, Subject B, and optionally Template B. The chosen variant is stored on the send (ab_variant) and in enrollment context
  • Optional send-time optimization (store setting) can hold the send until a stronger local hour

Always include {{ unsubscribe_url }} in templates. Prefer {{ preferences_url }} too. Use {{ recommendations_html }} when a Recommend step ran earlier.

Smart wait arms

On a Smart wait step, set:

  • Fallback wait - used when intelligence is off or an arm is unsafe
  • Experiment key - unique name per store experiment (e.g. abandoned_cart_wait)
  • Delay arms - which waits the bandit may choose (defaults to the workspace arm set if none selected)

Learning and rewards are covered under Intelligence.

Smart wait vs replenishment

These are easy to confuse:

Smart wait Replenishment
Question it answers How long should we wait after this trigger? When might they need this product again?
Typical use Post-purchase follow-up timing “Protein due in ~30 days” journeys
Setup Smart wait step in a flow Trigger Product due for repurchase + cadences on Intelligence

Details: Intelligence.

Goals and revenue

Set a Goal event when you want the journey to track a success signal (for example a purchase after the series). Flow list revenue helps you compare which journeys pay for themselves.

  • Autopilot for packaged journeys with caps
  • Intelligence for RFM, affinity, bandits, replenishment
  • Campaigns for one-time sends and the shared email designer