Skip to main content
Automations

Triggers and steps

Every automation starts with one trigger, the event that starts a run, followed by the steps it performs.

Last updated 24 minutes ago

Every automation starts with one trigger, the event that starts a run, followed by steps that run in order. This page explains each trigger and each step: what it does, what it needs and what to watch out for. For building, switching on and testing an automation, see Automations.

Adding and editing triggers and steps needs the Edit funnels permission. Without it, you can only view them.

Triggers

To add the trigger, click the Add trigger card. In Add trigger, choose an event and click Add trigger. To change it later, click the trigger card, choose another event in Edit trigger and click Save.

The Add trigger dialog listing all seven triggers with their descriptions, On Purchase selected

Trigger

Starts a run when

Emails and texts go to

Variables

On Purchase

An order is completed in this funnel. Once per order.

The buyer

Customer, Order Details

Purchase Attempt

A payment fails at checkout in this funnel. A buyer who fails three times starts three runs.

The email and phone entered at checkout

Checkout

On Opt-in

An email is captured on a checkout or a Newsletter block in this funnel. See On Opt-in.

The email and phone entered

Checkout

New Subscription

A buyer starts a subscription in this funnel.

The buyer

Customer, Order Details

Recurring Payment

A subscription renewal is charged successfully. Every time.

The buyer

Customer, Order Details

Recurring Payment Fails

A renewal is declined, including every retry.

The buyer

Customer

Subscription Canceled

A subscription ends.

The buyer

Customer

On Purchase also covers orders paid on Shopify's own checkout after a Shopify checkout redirect button, once Shopify reports them as paid. Orders paid with Shopify's test gateway don't start runs. See Sell through Shopify's checkout.

Use Purchase Attempt to follow up on failed payments, for example with an alert to your support team. To see why a payment failed, see Failed payments.

Warning: Changing the trigger later can break steps you already built. Each trigger offers different variables and condition fields, so check every step after you switch.

On Opt-in

On Opt-in starts a run in two situations:

  • On a checkout. When a checkout in this funnel first captures someone's email. If your checkout asks for marketing consent and the buyer declines, it doesn't start a run. If they give consent later in the same checkout, it starts one then. It runs at most once per checkout. See Marketing opt-in and terms.

  • On a Newsletter block. When a visitor signs up through a Newsletter block whose Subscription destination is Funnelmaster contacts and opt-in automations. Visitors must tick the consent box to sign up. See Collect emails with Newsletter.

The description in Add trigger only mentions the checkout, but Newsletter sign-ups start runs too.

No condition can tell the two apart. If a funnel has both a Newsletter block and a checkout, every On Opt-in message reaches both groups. Either word your messages so they fit both, or put your opt-in page in a funnel of its own, as in Collect leads and send a welcome email.

There is also no condition for "has already bought". A follow-up such as "Complete your order" therefore also reaches people who went on to buy.

The builder preview never starts runs. A Newsletter block in preview shows "Preview complete. No subscription was sent."

Subscription triggers

New Subscription, Recurring Payment, Recurring Payment Fails and Subscription Canceled react to subscriptions sold in this funnel.

  • Renewals don't happen on a funnel page, so each subscription stays linked to the funnel it was sold through. That funnel's automations run for all of its renewals.

  • Recurring Payment Fails runs again on every retry, so one buyer can receive the same message several times. Write it so it still makes sense the second time.

  • Subscription Canceled runs when a subscription ends, for example after the last renewal retry fails.

For how subscriptions are billed and retried, see Sell subscriptions.

Add a step

Click the + on any connector, including the ones on a condition's If true and If false paths. In Add step, choose a step and click Continue. Fill in the step's dialog and click Save. End Workflow has no settings, so it's added as soon as you click Continue.

Step

What it does

Needs

Send Email

Emails the contact.

Resend

Send SMS

Texts the contact.

Twilio

Send Notification Email

Alerts your own team by email.

Resend

Klaviyo

Adds the contact to a Klaviyo list.

Klaviyo

Delay

Waits before the next step.

Condition

Splits the path into If true and If false.

Webhook

Sends the event to another tool.

End Workflow

Ends the path.

If a step's service isn't connected, its card is greyed out with a link such as Connect Twilio to enable. Someone with the Manage integrations permission connects these services under Integrations. See Email, SMS and Klaviyo.

The Add step dialog with Send SMS and Klaviyo greyed out and their Connect Twilio to enable and Connect Klaviyo to enable links

Send Email

Sends an email you write to the contact.

  1. Fill in Sender name and Sender email. The sender email is filled in from your Resend default sender; you can change it.

  2. Fill in the Subject.

  3. Write the email in the editor. The toolbar has text styles, bold, italic, underline and strikethrough, links, alignment, bulleted and numbered lists, image upload and Insert data variable.

  4. Click Save.

The sender address must be on a domain you verified in Resend. Otherwise the email isn't sent, and the run fails. To verify a domain, follow Resend's domain guide.

Good to know:

  • Who receives it: the email captured with the event for On Opt-in and Purchase Attempt, otherwise the buyer's email. If there is no email, the step fails.

  • No footer or unsubscribe link is added. Funnelmaster places your text in a simple white email layout and adds nothing else. Add your own footer and unsubscribe wording wherever marketing rules require it.

  • Images must be smaller than 2MB.

  • The email is marked with your funnel's language, so a right-to-left funnel sends right-to-left emails.

  • Retries never send a second copy.

Personalize with variables

Variables fill in buyer and order details when the email or text is sent.

  1. Put the cursor where the value should go.

  2. Click the { } button (Insert data variable).

  3. Pick an item. A highlighted token such as {{customer.firstName}} appears.

The list depends on the trigger:

Trigger

Groups you can insert

On Purchase, New Subscription, Recurring Payment

Customer: ID, First name, Last name. Order Details: Order number, Order total, Order date.

Purchase Attempt, On Opt-in

Checkout: Email, Phone.

Recurring Payment Fails, Subscription Canceled

Customer: ID, First name, Last name.

Order total is shown with its currency. Order number is the number shown in Orders, for example #1001.

Warning: If a variable has no value for a contact, the step fails and nothing is sent. Run history shows "Email contains unavailable variables" or "SMS contains unavailable variables". The most common cause is First name for a buyer who only gave an email.

The Subject has no variable button, but you can type a variable into it by hand, written exactly like the tokens in the body, for example {{order.number}}. The same rule applies: an empty value fails the step.

Send SMS

Sends a short text message to the contact.

  1. Type the message.

  2. To add a link, click Insert link, enter the URL and click Insert link. https:// is added if you leave it out.

  3. To personalize it, click Insert data variable.

  4. Watch the counter under the message, for example 92/160, and click Save.

Good to know:

  • 160 characters maximum, counted as you write them. A variable counts as its full token, so {{customer.firstName}} uses 22 characters whatever the name is. Links are sent as full, visible addresses and count in full.

  • Plain text only. There are no headings or lists.

  • Add opt-out wording. The dialog reminds you that mobile carriers may require it, for example "Reply STOP to opt-out".

  • A phone number is required. The text goes to the buyer's phone, or the phone entered at checkout. Without a phone number the step fails, so ask for one on your checkout if you rely on SMS.

  • Twilio must be fully set up. You can add the step as soon as Twilio shows Pending setup, but no text goes out until its From Phone Number is set. See Twilio (SMS).

Send Notification Email

Alerts your own team, for example "email the warehouse and me on every purchase" or "tell support when a payment fails".

  1. Check the Sender email. It's filled in from your Resend default sender and must be verified in Resend.

  2. Fill in Email Address 1. Click Add Email for more recipients, up to 20. Each address can appear only once.

  3. Click Save.

You can't edit the alert's subject or text. Funnelmaster sends a fixed alert from Funnelmaster that names the funnel and the time, plus the order or checkout ID for purchases, failed payments and opt-ins.

Trigger

Subject

On Purchase

"New purchase in _funnel name_ from _store name_"

Purchase Attempt

"Purchase attempt failed in _funnel name_ from _store name_", with the failure reason in the body

On Opt-in

"New opt-in in _funnel name_ from _store name_", with the contact's email in the body

Subscription triggers

"Automation event notification"

If some recipients can't be reached, the step is retried; people who already got the alert don't get it twice.

Klaviyo

Adds the contact to one of your Klaviyo lists, so your Klaviyo flows can take over.

  1. Choose a list under List. Your lists load from Klaviyo.

  2. Click Save.

If you see "No lists found. Make sure to create lists in Klaviyo first.", create a list in Klaviyo, then open the step again. See Klaviyo.

Klaviyo receives the contact's email, phone, first and last name and address. The contact is then subscribed to email marketing on that list.

Warning: Because the contact is marked as subscribed, use this step only for people who agreed to receive marketing from you, for example sign-ups from a Newsletter block, which always asks for consent, or a checkout with a marketing opt-in box.

The step needs a contact with an email who has started a checkout. Otherwise it fails.

Delay

Waits before the next step. Set Time (a whole number, at least 1) and Interval, then click Save.

Interval

Maximum

Minutes

1440

Hours

24

Days

365

Weeks

52

Months

12

For a longer wait, switch to a bigger unit: the dialog suggests it when you go over the maximum.

While a run waits, Run history shows it as Paused, with the time it's scheduled to continue. The delay ends at the first check after its time is up, so allow up to about a minute extra. If you delete the automation during a delay, the waiting run fails.

Condition

Splits the path in two. Contacts who match go down If true, everyone else goes down If false. Use it to send different follow-ups by country, product, variant, quantity or currency.

  1. Choose the field to check under Condition.

  2. Choose how to compare under Type.

  3. Enter or pick the Value.

  4. Click Save. The canvas grows an If true and an If false path, each with its own +.

  5. Build both paths and end each one with End Workflow. You can't switch the automation on until both paths are complete.

Condition

Type

Value

Billing country, Shipping country

Is, Is not

A country from the list

Product name, Variant name

Is, Is not, Contains, Does not contain

Any text

Quantity of product

Is, Is not

A whole number, at least 1

Currency

Is, Is not

A currency from the list

How it decides:

  • Text is matched without regard to capitals or extra spaces at either end.

  • Orders with several products: Is and Contains match when any product matches. Is not and Does not contain match only when no product matches.

  • Quantity of product is the total quantity of all items in the order, compared exactly.

  • Billing country uses the shipping country when there's no separate billing address.

Example: Shipping country Is Germany. On If true, send a German email; on If false, send an English one. End both paths with End Workflow.

Limits:

  • One rule per Condition. There's no AND or OR. To check two things, put a second Condition inside one of the paths.

  • No country fields for On Opt-in. Someone who just left their email may not have an address yet.

  • No "has purchased" condition.

  • To turn a Condition into another step type, or the other way round, delete it and add a new step.

  • On Purchase, New Subscription, Recurring Payment: the order.

  • On Opt-in, Purchase Attempt: the checkout as it was at that moment.

  • Recurring Payment Fails, Subscription Canceled: the subscription's original order, or the subscription product if there is no order.

Webhook

Sends the event to another tool that accepts webhooks. In Zapier, for example, that's a webhook trigger (Zapier's guide); in Make, a custom webhook (Make's guide). Both give you a URL to paste here.

  1. Leave Preset on CUSTOM.

  2. Paste the tool's address into Endpoint URL. It must be a public https:// address: "Use a public HTTPS URL. Local and private addresses are not allowed."

  3. Leave Method on POST unless the tool asks for GET or PUT. GET sends no data in the body.

  4. Optional: add Headers (JSON object) if the tool asks for them, such as an API key.

  5. Leave Body template as it is unless the tool expects a specific format. By default it sends the event's name and all of its data.

  6. Click Save.

Good to know:

  • Timeout is in milliseconds: 5000 by default, between 1000 and 15000.

  • Any response other than a success counts as a failure and is retried, up to 3 attempts. Each retry carries the same identifier so the receiving tool can ignore duplicates.

  • Redirects aren't followed, and the data sent can't be larger than 100 KB.

End Workflow

Marks the end of a path. Every path must end with End Workflow before you can switch the automation on, including both paths after a Condition.

It has no settings: clicking its card does nothing, and you can only delete it. Nothing can come after it. To add steps to the end of a live automation, you first delete its End Workflow, which switches the automation off. See Edit a live automation.

Was this helpful?

Still need help? Ask the team