Skip to Content
StarsellDocs
MarketingAutomations

Actions

The steps that do something - wait, send one of your emails, alert the team, send a signed webhook, add an order note - and the placeholders alerts and notes can use.

Click a + between two cards (Add a step here) to add a step. Besides Condition (see Conditions) there are five:

StepWhat it does
WaitPause for a while, or until a time of day.
Send emailOne of your emails, to the customer, the team or an address.
Alert the teamA short email to chosen team members.
Send a webhookA signed POST with the event to a URL.
Add order noteA line on the order's timeline for the team.

How a step ends

Each step writes one line to the run's log. What happens next depends on the result:

ResultExampleThe run
DoneThe email was queued.Goes on to the next step.
SkippedThe customer has no email address, or unsubscribed.Goes on to the next step. A skip is a normal outcome, not an error.
StoppedA checkout reminder found the checkout became an order.Ends, as done.
FailedThe email this step sends was deleted.Ends as failed.

Wait

Under Kind of wait:

  • For a while: a number of minutes, hours or days. At least 1 minute, at most 365 days.
  • Until a time of day: the next time the clock shows that time in the store's time zone. If it is already past that time today, the run waits for tomorrow. Use it to send at 09:00 instead of at 3 in the morning.

The wait counts from the moment the run reaches the step. Changing a wait later does not move runs already waiting on it. An automation cannot end with a wait.

Send email

Sends one of your emails.

SettingNotes
EmailAny email in the store, grouped into Automation, Campaign and Store emails (transactional). Preview opens it.
Send toCustomer, Team (tick team members) or An address (type one).
Marketing emailFor Customer only. On: sent only to customers who agreed to marketing at checkout. Off: sent whether or not they agreed, for service emails about their own order.
  • Language. A customer gets the email in their language (the one they shopped in) when the email has it, otherwise the closest one it has: the store's main language, then English. Team and address emails use the store's main language.
  • Variables. The email is filled in with the checkout, order or product the trigger is about, read fresh when the step runs. For the customer, unsubscribe_url is their personal unsubscribe link.
  • Checkout reminders stop themselves. On a checkout trigger, the step looks at the checkout again right before sending. If it became an order, the run stops: no more reminders go out.
  • Product triggers have no customer. Send to the team or an address instead.
  • Never twice. If a run is interrupted and the step runs again, an address that already got the email is not sent a second copy.

The step is skipped when there is no email address for the customer, when Marketing email is on and the customer did not agree to marketing, when the address is on the store's suppression list for a reason that stops this email (see below), or when none of the chosen team members can open the store any more. It fails when no email is picked, when the email was deleted, or when the typed address is not valid.

The email's type decides what an unsubscribe stops

An email whose type is Transactional goes out as transactional mail: a customer who unsubscribed still gets it, and it has no unsubscribe headers. Any other type goes out as automation mail, which an unsubscribe stops. Marketing email is about consent at checkout, not this. A bounced address, one marked as spam or one blocked by hand gets neither. See Unsubscribes.

If the store has no email account yet, or its sender address can't be used, the email is queued anyway and the log says "Not sent yet" with the reason. It goes out once the account is fixed. See Sending.

Alert the team

A short email to the team, not the customer.

SettingNotes
Who gets itTeam members who can open the store and have an email address: owners, admins, and members given this store.
SubjectRequired. Placeholders work.
MessagePlaceholders work. Blank lines start new paragraphs.

Click a placeholder under Insert into the subject (or the message) to put it where the cursor is. The email links to the order or product with a View order, View product or View checkouts button, and its footer says which automation sent it. It goes out as transactional mail, so a team member who unsubscribed from the store's marketing still gets it.

Placeholders

Alerts and notes use these. Each trigger offers only the ones that fit it.

PlaceholderWhat it isTriggers
store.nameStore nameAll
customer.name, customer.emailCustomer name and emailCheckouts, orders, First order
order.numberOrder numberOrders, First order
order.totalOrder totalOrders, First order
order.linkLink to the order in the adminOrders, First order
checkout.totalCheckout subtotalCheckouts
checkout.itemsItems in checkoutCheckouts
checkout.linkLink to the checkouts listCheckouts
product.titleProduct titleProducts
product.variantVersionProducts
product.stockStock leftProducts
product.linkLink to the product in the adminProducts

Write them in double braces, as the buttons do:

Big order {{ order.number }}: {{ order.total }} from {{ customer.name }}

Placeholders are plain text replacements: there are no filters or if blocks here, unlike the email editor's variables. One that has no value prints nothing.

Send a webhook

Sends the event to your own system: a CRM, Zapier, n8n, your app.

SettingNotes
URLA public https:// address, without a user name or password in it, on port 80, 443 or above 1023. Plain http:// is refused. Turning the automation on checks that the host resolves to a public address.
Signing secretMade when you save. Click Reveal, then Copy. It starts with whsec_.

Each call is one POST with a JSON body:

Body
{
  "id": "<run id>:<step id>",
  "type": "checkout.abandoned",
  "created_at": "2026-11-27T09:12:44.000Z",
  "store": { "id": "...", "name": "...", "slug": "..." },
  "automation": { "id": "...", "name": "Recover abandoned checkouts" },
  "run_id": "...",
  "data": { "checkout": {}, "customer": {} }
}
HeaderValue
X-Starsell-Signaturet=<unix seconds>,v1=<hex>: an HMAC-SHA256 of <t>.<body> with the signing secret
X-Starsell-EventThe event type, such as order.created
X-Starsell-DeliveryThe same value as id in the body. The same step on the same run always sends the same one.
User-AgentStarsell-Automations/1.0

Verify the signature the same way as for store webhooks: see Webhooks. data is the event payload described in Events.

  • Any 2xx answer is success.
  • Your server has 10 seconds to answer. Redirects are not followed: a 3xx counts as a failure.
  • A timeout, no answer, a 5xx, a 429 or a 408 is tried twice more, 1 minute and 10 minutes later. The run waits in between. Any other answer, or the third failure, fails the step and the run.

Add order note

Adds a line to the order's timeline, for the team. For order triggers and First order only.

SettingNotes
NoteThe text, with placeholders. Example: "VIP customer: add a handwritten card".

The note shows on the order with the automation's name after it, in brackets. It is skipped when there is no order or the note comes out empty.

On this page