Skip to main content

Actions

When an automation triggers and its conditions are met, it executes a sequence of actions. Each automation can have one or more actions.

Available Action Types

Apply Coupon

Creates (if needed) and applies a WooCommerce coupon to the cart.

Parameters:

FieldDescription
coupon_codeThe coupon code to apply
coupon_amountDiscount amount (optional, creates coupon if it doesn't exist)
coupon_typefixed or percent
usage_limitMaximum number of uses
usage_limit_per_userMax uses per customer
individual_useWhether coupon cannot stack
coupon_expiresExpiration date (timestamp or Y-m-d)

If the coupon already exists, it is applied without modifying its settings.

Webhook

Sends an HTTP request to a configured URL.

Parameters:

FieldDescription
URLThe webhook endpoint
webhook_methodPOST or GET
webhook_headersCustom headers (JSON object)
webhook_payloadCustom payload (JSON object)
webhook_timeoutRequest timeout in seconds (default: 10)
webhook_retriesNumber of retry attempts (0-2)

Security: Webhooks to private/internal IPs are blocked by default. Only safe HTTP headers are allowed.

Email

Sends an email to configured recipients.

Parameters:

FieldDescription
email_recipient_sourceorder_customer, all_admins, customer_role, or manual_list
email_recipient_roleSpecific role for customer_role source
email_subjectEmail subject line
email_bodyEmail body (HTML allowed)

Template variables: {{order_id}}, {{order_total}}, {{order_status}}, {{customer_name}}, {{customer_email}}, {{cart_total}}, {{site_name}}, {{site_url}}

Rate limiting: Maximum 50 emails per automation per hour (configurable).

Action Execution Order

Actions within an automation run sequentially. If an action fails with a fatal error, the remaining actions are skipped.