What an automation can do (actions)

Every action in the Then block, what each one changes, what it never does (no refunds, no deleting, no discount codes in order emails), which need a condition, and how to wait, loop and call another system.

The Then block holds the actions, which run in order. Click Add action and use the search box ("Search an action: email, tag, coupon, weight...") or browse the groups Send a message, Change data, Connect a system and Control the flow. Only actions that fit your trigger are offered. An automation can have at most 30 steps in total.

Send a message

  • Notify me: a notice in the dashboard bell. Write a Title and a Message, and use + Add detail to insert details of the trigger. Who gets the notice depends on what it prints: a notice that prints order, return, refund or cart details (or an order field) reaches only the managers who may also view orders, and one that prints customer details only those who may view customers. A manager who is limited to some sales channels does not get such a notice. A notice that prints only product, stock, store or date details reaches every manager.

  • Email the team: an email to 1 to 5 of your team members, with a subject (up to 150 characters) and a message (up to 2,000). It only ever goes to people on your team, never to a customer. A team member can only be chosen if they may manage automations and view what the email is about (orders or customers). On a schedule it can also carry a report table: orders, products or customers listed or counted in the email. A customer report counts how many customers there are, never who. When there is nothing to list, no email is sent.

  • Email the customer: sends a template from your email library to the customer of the order, cart or customer event. Choose the Type of email:

    • Marketing goes only to customers who agreed to marketing emails, and carries an unsubscribe link. Your store needs a postal address in the email settings.
    • About the order is for this order only and does not need marketing consent. It cannot contain an offer or a discount code: a template that reads like a promotion is skipped.

    Every customer email has a limit of one email per customer every N days (1 to 90). The limit is 90 days at most because the history it checks is kept for 90 days; the editor does not accept a longer period. The latest version of the template is sent each time. See Customize email templates and Campaigns.

What messages never do. A customer is never emailed from Email the team. An order note is never printed in a message. A name, email, phone number or address is never available as a detail. If your template prints an order field and that field is empty on the order, the email is not sent half empty: the run is skipped.

Change data about an order

  • Order tag: add or remove free-text tags on the order. Customers never see them.
  • Set an order field: write a value to a custom field of the order (typed by you, or taken from an earlier Call an external system step). The field must be an active order field. See Order custom fields.
  • Mark the order as paid: records the order as paid by hand, like the Mark as paid button. It collects no money. It also gives the loyalty points you set for the order and cancels a payment link that was still waiting.
  • Cancel the order: like the Cancel order button. Its stock goes back on sale, its coupon use is released and its loyalty points are reversed. It refunds nothing, so an order that is paid, partly paid, authorized or partly refunded, or whose card payment or payment link is still waiting, is skipped and never cancelled. You must choose a reason (kept in the history only, never shown to the customer) and whether to email the customer the store's cancellation email. If the same automation also emails the customer about the order, ticking the email makes it two emails.
  • Fulfillment hold: Hold puts an order on hold, Release takes it off. While an order is on hold nobody can ship it or buy a label for it, and the customer is not told. Only Pending and Processing orders can be held. A release returns the order to the status it had before.
  • Archive the order: moves a finished order (cancelled, refunded, completed, fulfilled or delivered) out of the main orders list. Its status and amounts do not change, and you can restore it from the Archived filter of the orders list.

These need the right permission from the person who approves: Update orders for tag, field, hold, archive and mark as paid, Cancel orders for cancel.

Change data about a customer

  • Customer tag: add or remove tags that already exist in your store. An order from a guest has no customer, so it is skipped.
  • Loyalty points: add points (a positive number) or remove points (a negative number), up to 10,000 either way. It only changes customers who already belong to your loyalty club. It never enrols anyone, never takes a balance below zero, and a store with no active loyalty club skips it. See Loyalty.
  • Create a personal coupon: a one-time code for this one customer (a percent or a fixed amount, valid 1 to 365 days, with an optional minimum order). No one else can use it. It creates the code but does not send it. Add Email the customer as a Marketing email after it, with a template that prints the coupon code, or the customer gets no code.

Change data about a product

  • Change status: set the product to Active or Draft. It changes the product only, never a variant.
  • Product tag: add or remove tags that already exist.
  • Add to a category / Remove from a category: the product keeps its other categories.
  • Change price: set the price, the sale price or both, with up to 2 decimals. It changes the product's own price, not variant prices, a sale price must stay lower than the price, and a kit priced from its parts is refused.
  • Change shipping weight: set the weight and unit (kg, lb, g or oz). A kit has no weight of its own and is refused.
  • Update a custom field and Table lookup: fill a product custom field with a fixed value, or look the new value up in a table of up to 2,000 rows (typed in or uploaded from a CSV with two columns). Table lookup is available when the automation runs on a product field change. An empty value never clears a field, and the latest change wins.

An automation never creates a tag or a category. The one you pick must already exist; if it is deleted later, the run fails with "The tag no longer exists in the store". Create tags and categories first.

Change stock, suppliers and discounts

  • Change the stock count: set, add or subtract a whole number (1 to 1,000,000; Set also accepts 0) on the item whose stock just changed. It works only under A variant's stock changed. It changes the count on hand. An item that is not tracked, that keeps stock in several warehouses, or that is a kit, is left alone.
  • Draft a purchase order: writes a draft purchase order for the item whose stock just changed. Nothing is sent to the supplier and no stock moves until you send and receive the order yourself. It needs exactly one active supplier on the item (or you choose a supplier), and it skips an item that already has an open order line. See Warehouses and purchasing.
  • Turn a coupon on or off and Turn a discount rule on or off: for a sale that starts or ends on time. The coupon's own start and end dates still decide when it can be used, and turning on a coupon that has already expired is skipped. A shop page can show the old price for a few seconds. These need Edit coupons or Edit discount rules. See Coupons and Discount rules.

Actions that need a condition

To protect you, these actions are refused unless something tests the event first: Cancel the order, Fulfillment hold, Archive the order, Change the stock count and Draft a purchase order. Without a test they would run on every single order or stock change. "Tests the event" means the trigger has a filter rule, or the action sits under a condition (or comes after a Check after the wait). The editor tells you when one is missing. Other actions, such as tags, emails, coupons and loyalty points, do not require one, but almost always should have one. See Conditions and filters.

Connect a system

Call an external system (HTTP) sends the details to your CRM, ERP, Slack or another service. It uses a saved connection, never a typed address or secret:

  1. In the automation editor, add the action Call an external system (HTTP). Next to Connection, click Manage connections to open the HTTP connections dialog, then click New connection.
  2. Give it a Name and an Address (https only, no password and no query string; private addresses are refused). Optionally add Headers such as an API key. The header values are stored encrypted and are never shown again.
  3. Tick Sign every call to add a signature header so the receiving system can check the call came from Brainerce. The signing secret is shown only once, when you create it. Copy it then. If you lose it, use New signing secret.
  4. Back in the action, choose the connection, a method (GET, POST, PUT, PATCH or DELETE) and a path that starts with /. For POST, PUT and PATCH write a message body. Optionally keep up to 5 values from the answer for later steps.

The run waits for the answer for up to 2 minutes. An answer with an error status fails the step. A connection that keeps failing is paused ("Paused after repeated failures"); fix the other system and click Resume. A store can have up to 50 connections.

Control the flow

  • Wait: pauses from 5 minutes to 90 days, then continues. An automation can have up to 3 waits, and all of them together can add up to 90 days. Waits exist in order, customer and cart automations, not in schedules. A wait never changes what the event knew: add Check after the wait to test the situation as it is now.
  • Check after the wait: continues only if a condition is still true. Fields marked (now) are read at that moment. Example: wait 3 days, then continue only if the order is still Not paid yet.

Find records on a schedule and act on each one

Under On a schedule only, you can read a list and then act on it:

  • Get orders: filter by Payment status, Order status and Older than a number of days (1 to 365). At least one filter is required, and at most 200 orders are read (50 if a Tag all the orders found step follows). Cancelled orders are left out unless you filter for them.
  • Get customers: Last order older than N days (a customer who never ordered is not included), Signed up more than N days ago, Has at least one of these tags, and Marketing emails. Only ids are read, never a name or email. Customers erased on request are left out.
  • Get products: Status, Stock at most (0 means sold out; products with untracked stock never match), Created more than N days ago, and tags.
  • Tag all the orders found: adds or removes order tags on the orders from Get orders.
  • Repeat for each one found: runs up to 5 actions for each item found (up to 200 items). One repeat per automation, and at most 2 Get steps. Inside a repeat you can only act on the items found: tag them, email a customer (marketing), create a personal coupon, or for products change status, tags and category. A repeat cannot contain a wait, a condition, a notice, a team email, an HTTP call, cancel or mark as paid.

If more records match than your limit, only the first ones are used. If one customer is skipped (no marketing consent, emailed too recently), the loop goes on with the next. If the whole setup is wrong (the template is gone, emails are switched off), the loop stops at the first item and the run ends Skipped. Items already done stay done. A repeat cannot be run again, because people already reached would be reached again; the next scheduled run starts from a fresh list.

What no action does

  • No refunds and no money moves. Cancel and mark as paid book state only.
  • No deleting of products, orders, customers, tags or categories.
  • No shipping, labels or fulfilment. Hold and archive only block or tidy.
  • No creating products, tags, categories or order fields.
  • No SMS or WhatsApp messages. Use the HTTP call to reach another service.
  • No emails to a customer outside a template from your library, and no discount code in an email about an order.