Skip to main content

Block Spam Customer Workflow

Automatically cancel new orders from customers you've flagged as spam.

Written by Camila

The Block spam customers workflow is a quick-start template that automatically cancels a new order when it comes from a customer you've flagged as spam. Instead of watching for and manually cancelling unwanted orders, you set the matching rules once and the workflow handles them for you.

What it does

When a new order is placed, the workflow checks the order against the conditions you set (for example, a customer phone number, email, or tag). If the order matches, the workflow automatically cancels it.

Add the workflow

  1. Go to Settings > Workflow.

  2. Click Create workflow to open the dropdown.

  3. Under Quick start, select Block spam customers. (Choosing Start from scratch instead lets you build a workflow from an empty template.)

The template opens with three steps: Trigger, Conditions, and Action.

1. Trigger

The trigger is set to New order — the workflow runs whenever a new order is placed.

2. Conditions

Conditions decide which orders the workflow acts on. Only orders that match your conditions run the action.

Each condition has three parts:

  • Field — choose Customer phone, Customer email, or Customer tag.

  • Operator — choose is any of or is none of.

  • Value — type a value and press Enter. You can add more than one value to the same condition.

Combine conditions with AND and OR:

  • AND — every condition in the group must match.

  • OR — the order matches if any one group matches. Use + OR to add another group.

For example, you can cancel orders where the Customer phone is any of your spam numbers, OR where the Customer tag is any of "spam".

Trigger — When: New order

Conditions — cancel the order if any group matches:

  • Customer phone is any of +60123456789, +60129998888

  • OR Customer tag is any of spam

Action — Do this: Cancel order

3. Action

The action is set to Cancel order. When a new order matches your conditions, it's cancelled automatically.

Save

Click Save to activate the workflow. You can edit its conditions at any time from Settings > Workflow.

For a general guide to workflow triggers, conditions, and actions, see Create Workflow.

Did this answer your question?