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:
| Field | Description |
|---|---|
coupon_code | The coupon code to apply |
coupon_amount | Discount amount (optional, creates coupon if it doesn't exist) |
coupon_type | fixed or percent |
usage_limit | Maximum number of uses |
usage_limit_per_user | Max uses per customer |
individual_use | Whether coupon cannot stack |
coupon_expires | Expiration 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:
| Field | Description |
|---|---|
| URL | The webhook endpoint |
webhook_method | POST or GET |
webhook_headers | Custom headers (JSON object) |
webhook_payload | Custom payload (JSON object) |
webhook_timeout | Request timeout in seconds (default: 10) |
webhook_retries | Number 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:
| Field | Description |
|---|---|
email_recipient_source | order_customer, all_admins, customer_role, or manual_list |
email_recipient_role | Specific role for customer_role source |
email_subject | Email subject line |
email_body | Email 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.