Workflows

Triggers

Every event that can start a workflow, with its settings and the data it provides.

A trigger starts a workflow for a contact. Pick it on the workflow’s first step. Most triggers have settings that narrow them down (only certain products, a minimum cart total, a specific popup). Data a trigger provides can be used in conditions and as merge tags such as {{trigger.order_id}}.

Note
Triggers only listen while an active workflow uses them, so unused triggers cost nothing. Integration triggers appear when that plugin is active. Need something else? The WordPress hook trigger listens to any plugin’s action hook, and developers can register their own.

Who the contact is

User triggers run for that user. Order triggers use the customer’s account, or their billing email for guest checkouts. Visitor triggers (cart, product views, popups) need a known visitor: someone logged in, or a guest recognised by email or, with consent, by cookie. See Guests.

WordPress

Users, posts, comments, tags and SwiftAction's built-in actions.

Users

User registers

A new user account is created.

ID core.user_registered

No settings: it fires for every matching event.

Provides: User ID {{trigger.user_id}}

User logs in

A user signs in.

ID core.user_login

No settings: it fires for every matching event.

Provides: User ID {{trigger.user_id}}

User profile updated

A user's profile is saved.

ID core.profile_updated

No settings: it fires for every matching event.

Provides: User ID {{trigger.user_id}}

User role changes

A user is given a different role.

ID core.role_changed
SettingTypeDetails
Only when the new role isChoiceAny role · Administrator · Editor · Author · Contributor · Subscriber · Customer · Shop manager
Provides: User ID {{trigger.user_id}}, New role {{trigger.role}}, Previous roles {{trigger.old_roles}}
Content

Post published

A post, page or custom post type is published. Runs for the author.

ID core.post_published
SettingTypeDetails
Post typesMultiple choicePost · Page · ProductLeave empty for any public post type.
Provides: Post ID {{trigger.post_id}}, Post type {{trigger.post_type}}

Comment posted

Someone leaves a comment. Works for guests too (identified by email).

ID core.comment_posted
SettingTypeDetails
Only approved commentsToggle
Provides: Comment ID {{trigger.comment_id}}, Post ID {{trigger.post_id}}, Approved {{trigger.approved}}
SwiftAction

Tag added

A tag is added to a contact.

ID core.tag_added
SettingTypeDetails
TagsTagsLeave empty for any tag.
Provides: Tag ID {{trigger.tag_id}}, Tag name {{trigger.tag_name}}

Tag removed

A tag is removed from a contact.

ID core.tag_removed
SettingTypeDetails
TagsTagsLeave empty for any tag.
Provides: Tag ID {{trigger.tag_id}}, Tag name {{trigger.tag_name}}

Manual enrollment

Contacts are added by an admin or from code with swiftaction_enroll_contact().

ID core.manual

No settings: it fires for every matching event.

Popups

Popup button clicked

A visitor clicks a link button in a SwiftAction popup.

ID core.popup_clicked
SettingTypeDetails
PopupChoicePick from your site (or “Any popup”).
Provides: Popup ID {{trigger.popup_id}}, Popup name {{trigger.popup_title}}

Popup dismissed

A visitor closes a SwiftAction popup without clicking or submitting.

ID core.popup_dismissed
SettingTypeDetails
PopupChoicePick from your site (or “Any popup”).
Provides: Popup ID {{trigger.popup_id}}, Popup name {{trigger.popup_title}}

Form submitted (popup or banner)

A visitor submits the form in a SwiftAction popup or banner. The answers are available as {{form.…}} merge tags and conditions.

ID core.popup_submitted
SettingTypeDetails
Popup or bannerChoicePick from your site (or “Any popup or banner”).
Provides: Popup ID {{trigger.popup_id}}, Popup name {{trigger.popup_title}}, Submission ID {{trigger.submission_id}}, Page URL {{trigger.page_url}}
Banners

Banner clicked

A visitor clicks a SwiftAction banner (its link, a link button or a linked image).

ID core.banner_clicked
SettingTypeDetails
BannerChoicePick from your site (or “Any banner”).
Provides: Banner ID {{trigger.banner_id}}, Banner name {{trigger.banner_title}}, A/B variant {{trigger.variant}}

Banner dismissed

A visitor closes a SwiftAction banner.

ID core.banner_dismissed
SettingTypeDetails
BannerChoicePick from your site (or “Any banner”).
Provides: Banner ID {{trigger.banner_id}}, Banner name {{trigger.banner_title}}, A/B variant {{trigger.variant}}
Emails

Contact unsubscribes

A contact unsubscribes from marketing emails: from an email's link, their email app's unsubscribe button, an admin or a workflow.

ID core.email_unsubscribed
SettingTypeDetails
From emailChoicePick from your site (or “Any email”).Only when they unsubscribed from this email's link.
Provides: Email ID (if from an email) {{trigger.email_id}}, Source (link, one_click, admin, workflow, api) {{trigger.source}}

Email opened

A contact opens a designed email (first open only). Opens are an estimate: some email apps load images automatically, others block them.

ID core.email_opened
SettingTypeDetails
EmailChoicePick from your site (or “Any email”).
Provides: Email ID {{trigger.email_id}}, Email name {{trigger.email_title}}, Subject {{trigger.subject}}, Send ID {{trigger.send_id}}

Email link clicked

A contact clicks a link in a designed email (once per link and email).

ID core.email_clicked
SettingTypeDetails
EmailChoicePick from your site (or “Any email”).
Only links containingTexte.g. "/pricing" or "utm_campaign=spring". Leave empty for any link.
Provides: Email ID {{trigger.email_id}}, Email name {{trigger.email_title}}, Subject {{trigger.subject}}, Send ID {{trigger.send_id}}, Link {{trigger.url}}

WooCommerce

Orders, payments, refunds, product views and reviews, cart activity, abandoned carts, coupons.

WooCommerce orders

Order placed

A customer completes checkout (before payment is confirmed). Works with classic and block checkout.

ID woo.order_placed
SettingTypeDetails
Also for orders created in wp-adminToggle
Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}

Payment successful

An order is paid: a gateway confirms payment, or an order moves to Processing or Completed. Fires once per order.

ID woo.payment_complete
SettingTypeDetails
Cash on delivery: wait until the order is completedToggleCash on delivery orders go to Processing before any money is collected.Default: on
Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}

Order status changed

An order moves from one status to another.

ID woo.order_status_changed
SettingTypeDetails
From statusChoiceAny status · Pending payment · Processing · On hold · Completed · Cancelled · Refunded · Failed · Draft
To statusChoiceAny status · Pending payment · Processing · On hold · Completed · Cancelled · Refunded · Failed · Draft
Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Previous status {{trigger.from_status}}, New status {{trigger.to_status}}

Payment failed

An order's payment fails (status Failed).

ID woo.payment_failed

No settings: it fires for every matching event.

Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Previous status {{trigger.from_status}}

Order completed

An order is marked Completed (fulfilled).

ID woo.order_completed

No settings: it fires for every matching event.

Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Previous status {{trigger.from_status}}

Order cancelled

An order is cancelled by the customer, an admin, or because it went unpaid.

ID woo.order_cancelled

No settings: it fires for every matching event.

Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Previous status {{trigger.from_status}}

Order on hold

An order is put On hold, e.g. awaiting a bank transfer.

ID woo.order_on_hold

No settings: it fires for every matching event.

Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Previous status {{trigger.from_status}}

Order refunded

A full or partial refund is made.

ID woo.order_refunded
SettingTypeDetails
RefundsChoiceFull and partial · Full refunds only · Partial refunds onlyDefault: Full and partial
Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Refund amount {{trigger.refund_amount}}, Refund reason {{trigger.refund_reason}}
WooCommerce products

Product purchased

Fires once for each product in an order when the order is paid.

ID woo.product_purchased
SettingTypeDetails
Only these productsMultiple choicePick from your site.
Or products in these categoriesMultiple choicePick from your site.Leave both empty for any product.
Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order status {{trigger.status}}, Order total (number) {{trigger.total}}, Payment method ID {{trigger.payment_method}}, Billing email {{trigger.billing_email}}, Number of items {{trigger.item_count}}, Product ID {{trigger.product_id}}, Product name {{trigger.product_name}}, Quantity {{trigger.quantity}}, Line total {{trigger.line_total}}

Product viewed

A known shopper (logged in, or a guest who allowed tracking) opens a product page. Throttled per shopper and product (see Settings → WooCommerce).

ID woo.product_viewed
SettingTypeDetails
Only these productsMultiple choicePick from your site.
Or products in these categoriesMultiple choicePick from your site.Leave both empty for any product.
Provides: Product ID {{trigger.product_id}}, Product name {{trigger.product_name}}

Product reviewed

Someone posts a product review.

ID woo.product_reviewed
SettingTypeDetails
RatingChoice2 stars or more · 3 stars or more · 4 stars or more · 5 stars · Any rating · 2 stars or less · 1 star
Only approved reviewsToggle
Only these productsMultiple choicePick from your site.
Or products in these categoriesMultiple choicePick from your site.Leave both empty for any product.
Provides: Product ID {{trigger.product_id}}, Product name {{trigger.product_name}}, Rating {{trigger.rating}}, Review ID {{trigger.comment_id}}
WooCommerce cart

Added to cart

A product is added to the cart. Fires for logged-in shoppers and guests who allowed tracking.

ID woo.added_to_cart
SettingTypeDetails
Only these productsMultiple choicePick from your site.
Or products in these categoriesMultiple choicePick from your site.Leave both empty for any product.
Provides: Product ID {{trigger.product_id}}, Product name {{trigger.product_name}}, Quantity {{trigger.quantity}}, Cart total (number) {{trigger.cart_total}}, Items in cart {{trigger.cart_item_count}}

Removed from cart

A product is removed from the cart. Fires for logged-in shoppers and guests who allowed tracking.

ID woo.removed_from_cart
SettingTypeDetails
Only these productsMultiple choicePick from your site.
Or products in these categoriesMultiple choicePick from your site.Leave both empty for any product.
Provides: Product ID {{trigger.product_id}}, Product name {{trigger.product_name}}, Quantity {{trigger.quantity}}, Cart total (number) {{trigger.cart_total}}, Items in cart {{trigger.cart_item_count}}

Cart updated

Anything in the cart changes: items, quantities or coupons. Fires at most once per page load. Fires for logged-in shoppers and guests who allowed tracking.

ID woo.cart_updated
SettingTypeDetails
Also when the cart is emptiedToggle
Provides: Cart total (number) {{trigger.cart_total}}, Items in cart {{trigger.cart_item_count}}

Cart abandoned

A known shopper leaves items in the cart without ordering (after the time set in Settings → WooCommerce). Use {{cart.recovery_url}} to bring them back to their cart.

ID woo.cart_abandoned
SettingTypeDetails
Minimum cart totalNumberDefault: 0
Provides: Cart total (number) {{trigger.cart_total}}, Items in cart {{trigger.cart_item_count}}, Minutes since the last change {{trigger.minutes_idle}}

Coupon applied

A coupon is added to the cart. Fires for logged-in shoppers and guests who allowed tracking.

ID woo.coupon_applied
SettingTypeDetails
Coupon codeTextLeave empty for any coupon.
Provides: Coupon code {{trigger.coupon_code}}, Cart total (number) {{trigger.cart_total}}, Items in cart {{trigger.cart_item_count}}
WooCommerce customers

Customer account created

WooCommerce creates a customer account, e.g. at checkout or on the My Account page.

ID woo.customer_created

No settings: it fires for every matching event.

Provides: Customer user ID {{trigger.customer_id}}

Easy Digital Downloads

Purchase completed, download purchased, order refunded.

Purchase completed

An order is paid and complete.

ID edd.purchase_completed

No settings: it fires for every matching event.

Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order total (number) {{trigger.total}}, Customer email {{trigger.email}}, Payment gateway {{trigger.gateway}}

Download purchased

Fires once for each download in a completed order.

ID edd.download_purchased
SettingTypeDetails
Only these downloadsMultiple choiceLeave empty for any download.
Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order total (number) {{trigger.total}}, Customer email {{trigger.email}}, Payment gateway {{trigger.gateway}}, Download ID {{trigger.download_id}}, Download name {{trigger.download_name}}

Order refunded

An order is fully or partially refunded.

ID edd.order_refunded

No settings: it fires for every matching event.

Provides: Order ID {{trigger.order_id}}, Order number {{trigger.order_number}}, Order total (number) {{trigger.total}}, Customer email {{trigger.email}}, Payment gateway {{trigger.gateway}}, Refund amount {{trigger.refund_total}}

Custom events

Start workflows from any plugin or theme: a custom event fired from code, or any WordPress action hook.

Custom event

Fired from code: swiftaction_fire_event( 'event_name', $data, $who ).

ID generic.event
SettingTypeDetails
Event name *TextLowercase letters, numbers and "_". The keys of $data are available as {{trigger.key}} merge tags.
Provides: Event name {{trigger.event}}

WordPress hook

Any action hook fired by WordPress, a plugin or your theme (for example a form plugin's "form submitted" hook).

ID generic.wp_hook
SettingTypeDetails
Hook name *Text
Who is the contact?ChoiceThe current visitor (logged-in user or recognised guest) · A user ID passed to the hook · An email address passed to the hookDefault: The current visitor (logged-in user or recognised guest)
Argument numberNumber1 is the first argument the hook passes. For arrays, the "user_id" / "email" key inside it is used.Default: 1Shown when Who is the contact? is A user ID passed to the hook or An email address passed to the hook.
Provides: Hook name {{trigger.hook}}, Argument 1 {{trigger.arg1}}, Argument 2 {{trigger.arg2}}, Argument 3 {{trigger.arg3}}
For SwiftAction 1.0 · Updated 5 December 2026 · Questions or corrections?