Docs Automations
Triggers and conditions
A trigger is the event that starts an automation. Conditions are optional checks on that event. If the conditions don't match, the automation stops there and no credits are used.
Triggers
Choose a trigger in When should this automation run? An automation has exactly one trigger.
Orders
| Trigger | Starts when |
|---|---|
| When a new order is created | A new order is created in your Shopify store. |
| When an order is updated | An existing order is modified. |
| When an order is paid | An order's payment is completed. |
| When an order is cancelled | An order is cancelled. |
| When an order is fulfilled | An order is fulfilled. |
Customers
| Trigger | Starts when |
|---|---|
| When a new customer signs up | A new customer is created in your Shopify store. |
| When a customer is updated | A customer's information is modified in Shopify. |
Products and inventory
| Trigger | Starts when |
|---|---|
| When a product is created | A new product is created in Shopify. |
| When a product is updated | A product is modified in Shopify. |
| When inventory levels change | The available quantity of an item changes at a location. |
Tasks
| Trigger | Starts when |
|---|---|
| When a task is created | A task is created in NoteDesk, by a person or by another automation. |
| When a task status changes | A NoteDesk task moves from one status to another, for example when it is completed or reopened. |
Avoid running twice for the same record
Shopify can report the same order more than once, for example when it is edited after being paid. Only run once per record, under the trigger, makes the automation run at most once for each order, customer, or product. See Automations.
Conditions
Conditions are optional. With none, the automation runs for every trigger event.
Add a condition
- In the Conditions section, click Add condition.
- In Check, choose the field to look at. The fields offered depend on the trigger.
- In Condition, choose how to compare it.
- In Value, enter what to compare it with.
When you choose a field, NoteDesk shows a hint under the row where it has one, sometimes with values you can click to fill in. For example, Payment Status lists pending, authorized, partially_paid, paid, partially_refunded, refunded, and voided.
What you can check
| Trigger | Fields include |
|---|---|
| Order triggers | Order Total Amount, Order Subtotal, Total Tax, Order Number, Payment Status, Fulfillment Status, Order Tags, Order Notes, Number of Items, Currency, Order Source, Total Discounts, Shipping Cost; Customer Email, name, Phone, Customer Tags, Customer Order Count, Customer Total Spent; Shipping Country, State/Province, City, Postal Code |
| When an order is cancelled | Everything above, plus Cancellation Reason and Cancellation Date |
| Customer triggers | Customer Email, Customer First Name, Customer Last Name, Customer Phone, Customer Tags. When a customer is updated also offers Total Orders and Total Spent. |
| Product triggers | Product Title, Product Type, Vendor, Product Tags, Product Status |
| When inventory levels change | Available Quantity, Product SKU, Product Title |
| Task triggers | Task Title, Task Status, Project Name, Important, Assignee; Customer Email and name. When a task status changes also offers Previous Status. |
Comparisons
| Condition | Matches when |
|---|---|
| Equals / Not equals | The field is exactly the value, or isn't. Capital letters matter. |
| Greater than / Less than / Greater than or equal / Less than or equal | The field is a number above or below the value. Also works for dates when the value is written as YYYY-MM-DD. |
| Contains / Not contains | The value appears, or doesn't appear, anywhere in the field. Capital letters don't matter. |
| Starts with / Ends with | The field begins or ends with the value. Capital letters don't matter. |
| In list / Not in list | The field is, or isn't, exactly one of several values. Separate the values with commas. |
| Has tag / Does not have tag | A tags field includes, or doesn't include, a whole tag. See below. |
| Is empty / Is not empty | The field has no value, or has one. Leave Value blank. |
Tag conditions
For Order Tags, Customer Tags, and Product Tags, use Has tag or Does not have tag.
- They match one whole tag, so
VIPdoesn't match a tag namedVIP-gold. - Capital letters don't matter.
- To match any of several tags, separate them with commas:
VIP, wholesale.
Combining conditions
From the second condition on, each row has an And / Or choice. NoteDesk combines the rows like this:
- Every condition set to And must match. The first condition always counts as And.
- If any conditions are set to Or, at least one of them must also match.
So a first condition followed by a single Or condition requires both to match. To accept one of several values for the same field, use one condition with In list, or Has tag with several tags, instead of separate Or rows.
Examples
Orders over 100 from wholesale customers
- Trigger: When an order is paid
- Order Total Amount Greater than
100 - And Customer Tags Has tag
wholesale
Orders that haven't shipped
- Trigger: When an order is updated
- Fulfillment Status Is empty
Fulfillment Status is blank until something is fulfilled, so Is empty is how you match unfulfilled orders.
Point of sale and draft orders only
- Trigger: When a new order is created
- Order Source In list
pos, shopify_draft_order
Orders shipping to the United States or Canada
- Trigger: When a new order is created
- Shipping Country In list
United States, Canada
Use the full country name, as Shopify sends it.
Customers with a company email address
- Trigger: When a new customer signs up
- Customer Email Ends with
@example.com
Important tasks that were just completed
- Trigger: When a task status changes
- Task Status Equals
completed - And Important Equals
true
Task statuses are active, completed, overdue, and archived.
Next, choose what the automation does: Actions and placeholders.
Still stuck? Use the help button inside NoteDesk, or see the ways to get support.
Install on Shopify