Blog · Automations

How to automatically tag orders and customers in Shopify (with or without Flow)

A NoteDesk automation shown as a flow that tags an order and then creates a task, with a card listing its recent runs.

Tags are how most Shopify stores sort their orders and customers: wholesale, high-value, international, rush. Adding them by hand works until the day gets busy, and then the tag that mattered is the one nobody added.

This guide covers two ways to add tags automatically, with rules you can copy. It also covers the part that tagging guides tend to leave out: a tag only labels the order. Someone still has to do the work it points at.

What a tag can and can't do

A few facts from Shopify's own tag documentation are worth knowing before you design any rules:

  • An order or a customer can carry up to 250 tags.
  • Tags aren't case-sensitive, so Wholesale and wholesale are the same tag.
  • Shopify recommends using only letters, numbers and hyphens.

Tags let you search and filter in Shopify admin, and other tools can read them. What a tag can't do is assign the order to a person, set a deadline, or tell you whether the job behind it has been done. Keep that in mind when you decide what each tag is for.

Option 1: Shopify Flow

Shopify Flow is Shopify's own automation app. At the time of writing it is free and available on the Basic, Grow, Advanced and Plus plans.

Flow is very good at tagging. It has actions that add order tags and customer tags, and its conditions can look inside an order's line items, which is how you tag orders that contain a particular product. Shopify publishes a template for exactly that, called "Tag orders that include specific products".

Where Flow stops is the follow-up. Its own actions change records in Shopify or send a message, such as an internal email to staff. For a to-do with an owner and a due date, it relies on apps that add their own actions to Flow.

Option 2: tag the order and create the task in one automation

A NoteDesk automation can add the tag and create the task in the same run, so the label and the job always arrive together.

Here is the high-value order rule, step by step:

  1. Go to Automations and click Create automation.
  2. Enter a Name, such as "High-value orders".
  3. Under Trigger, choose When a new order is created. Leave Only run once per record selected.
  4. Under Conditions, click Add condition. Set Check to Order Total Amount, Condition to Greater than, and Value to 500.
  5. Under Steps, click Add step and choose Add Shopify Tag. Set Record to tag to The order and Tags to high-value.
  6. Click Add step again and choose Create Task. Set Task title to Review order {{order.order_number}}, choose who it goes to in Assign to, and pick a Due date such as Tomorrow.
  7. Click Create automation.
A NoteDesk automation that tags orders over 500 as high-value and creates a task to review them

The task that appears is linked to the customer and has the order attached, so whoever picks it up can open the order in Shopify admin from the task.

Rules you can copy

Each rule below is one automation. The trigger for all of them is When a new order is created or When an order is paid; pick paid if you only want to act once the money is in.

Goal Condition Tag Task
High-value orders Order Total Amount Greater than 500 high-value on the order Review order {{order.order_number}}
Point of sale orders Order Source Equals pos pos on the order None needed
Orders from draft orders Order Source Equals shopify_draft_order draft-order on the order Confirm delivery date with {{customer.first_name}}
International orders Shipping Country In list Canada, United Kingdom, Australia international on the order Check customs paperwork for order {{order.order_number}}
Wholesale orders Customer Tags Has tag wholesale wholesale on the order Send wholesale invoice
Repeat customers Customer Order Count Greater than 1 repeat on the customer None needed

A few notes on getting these right:

  • Order Source uses Shopify's own values, such as web, pos and shopify_draft_order. NoteDesk lists them under the condition when you choose the field.
  • Shipping Country needs the full country name, as Shopify sends it: United States, not US.
  • To accept any of several values, use one condition with In list, or Has tag with several tags separated by commas. Don't add separate Or rows for this. NoteDesk requires every And condition to match and at least one Or condition, so a first condition followed by a single Or still needs both. Triggers and conditions explains the rules in full.
  • Add Shopify Tag can tag The order or The customer on any order trigger. Use the customer when the tag describes the person, as in the last row.
  • A step can add up to 25 tags, and NoteDesk cuts each tag to 40 characters.
The automation form in NoteDesk with a trigger, two conditions and two steps

Tagging by product

This is the one job where Flow is the better tool. NoteDesk's conditions check the order as a whole, its customer and its shipping address. They don't look inside line items, so NoteDesk can't tag "orders that contain product X".

Two approaches work:

  • Let Flow tag, and let NoteDesk create the work. Use Flow's line-item condition to add a tag such as preorder to the order. Then create a NoteDesk automation with the trigger When an order is updated and the condition Order Tags Has tag preorder, with a Create Task step. Flow labels the order, and NoteDesk gives the job an owner.
  • Tag the products themselves. With the trigger When a product is created or When a product is updated, NoteDesk can check Product Type, Vendor or Product Status and add a tag to the product.

For more on working in both directions, see Shopify Flow recipes for operations.

Stop a rule from running twice

Shopify can report the same order more than once, for example when it is edited after it is paid. Adding a tag is itself an edit. Three things keep that from causing duplicates:

  • Only run once per record is selected by default for order triggers. With it on, each automation runs at most once for each order.
  • Add Shopify Tag skips tags the record already has, and keeps the tags that were there.
  • Fixed tag names are safest. A tag that changes on every run, such as a date, updates the record each time.

You can see what each automation has done, and which runs failed, in its run history.

Run history for a NoteDesk automation, with the result and credits used for each run

Once the tag is on

Decide what each tag is for before you create it. A tag earns its place if it does one of these:

  • Filters a view you look at, such as wholesale orders awaiting payment.
  • Feeds another tool, such as a shipping app or a Flow workflow.
  • Starts work. These are the tags that need a task. If someone has to do something because an order is high-value or international, put the Create Task step in the same automation as the tag.

If a tag does none of the three, leave it out. A Shopify order tag system that runs your workflow goes further into naming and keeping the list short.

Plan and credits

Automations are included in the Solo, Team and Scale plans. Each run uses one credit per step, so the two-step rule above costs two credits each time an order matches. Orders that don't meet the conditions use nothing. Solo includes 50 credits a month, Team 500 and Scale 5,000, and you can buy extra packs that don't expire. Assigning tasks to other staff needs Team or Scale. See Credits and run history and pricing.

To try it, install NoteDesk from the Shopify App Store, start from the High-value order tasks template on the Automations page, and add an Add Shopify Tag step.