Skip to main content

Templates: what to send

The cabinet has six ready-made flows for shops and services: Flows → AlphaFlow templates. Each of them works without edits when your system sends the events and the properties listed below.

  • A flow created from a template is a draft: check the text and the sender name, try it on a test contact and publish it.
  • All six send a Viber message, and an SMS to those who have no Viber.
  • Every template has its texts in Ukrainian, Russian and English; the draft gets them in the language of your cabinet.
  • At night messages wait for the morning: quiet hours are set in the flows settings, by the recipient's time zone.

A property marked required is in every variant of the text. Without it the message is not sent: the flow report shows the reason "A variable is missing and there is no fallback text".

Order status​

Starts on order_status_changed — send it on every change of the status. Sends at once: "Order #A-1042: handed over for delivery. Track it: https://…".

PropertyWhat it is
order_idrequired
status_titlethe status in words, as the customer reads it; without it — "status updated"
tracking_urlthe tracking link; without it the text has no link
  • A service message: no consent is needed.
  • Put the status into message_id (shop:order_status_changed:A-1042:shipped): every status is a new event, and a repeat of the same one is not.
{
"message_id": "shop:order_status_changed:A-1042:shipped",
"event": "order_status_changed",
"occurred_at": "2026-11-21T09:00:00+02:00",
"contact": {
"external_id": "client-77"
},
"properties": {
"order_id": "A-1042",
"status": "shipped",
"status_title": "handed over for delivery",
"tracking_url": "https://novaposhta.ua/tracking/?cargo_number=20450000000000"
}
}

Abandoned cart​

Starts on cart_updated — send it on every change of a cart that has no order yet. Waits 2 hours after the last change: each new cart_updated starts the wait over. Leaves when order_created comes from the same person — nothing is sent. Sends a reminder: "Items are waiting in your cart. Complete your order: https://…".

PropertyWhat it is
cart_urlthe link to the cart; without it the text asks to complete the order without a link
cart_id, totalnot used in the text; handy for conditions
  • Marketing: it reaches only those who agreed to offers on the channel — see Consent to marketing.
  • One reminder in 3 days to the same person at most.
  • The goal is order_created within 3 days: the flow's report shows how many carts came back.
{
"message_id": "shop:cart_updated:C-311:5",
"event": "cart_updated",
"occurred_at": "2026-11-20T21:14:00+02:00",
"contact": {
"external_id": "client-77",
"phone": "+380671234567"
},
"properties": {
"cart_id": "C-311",
"total": 2140,
"cart_url": "https://shop.example.com/cart/C-311"
},
"consents": {
"viber_marketing": true,
"sms_marketing": true
}
}

Unpaid order​

Starts on order_created. Waits an hour. Leaves when order_paid comes from the same person — the reminder is not sent. Sends: "Order #A-1042 is awaiting payment: https://…".

PropertyWhat it is
order_idrequired
payment_urlthe payment link; without it the text asks to pay without a link
totalnot used in the text
  • A service message: no consent is needed.
  • Send order_paid with the same contact identifier as the order: that is how AlphaFlow knows the person paid.
  • The goal is order_paid within 3 days.
{
"message_id": "shop:order_created:A-1042",
"event": "order_created",
"occurred_at": "2026-11-20T12:05:00+02:00",
"dedupe_key": "A-1042",
"contact": {
"external_id": "client-77",
"phone": "+380671234567"
},
"properties": {
"order_id": "A-1042",
"total": 1250.5,
"payment_url": "https://shop.example.com/pay/A-1042"
}
}

Appointment reminder​

Starts on appointment_scheduled — when an appointment is made and every time it is moved. Waits until 24 hours before visit_at. Leaves on appointment_cancelled. Sends: "Reminder: 25.11 at 15:00 — Haircut. See you!".

PropertyWhat it is
visit_atrequired: the date and time of the visit, ISO 8601, with a time zone or without one (then the time zone of the account)
servicethe service; without it the text names only the date and time
appointment_id, masternot used in the text; handy for conditions and your own texts
  • A service message: no consent is needed.
  • Moved — send appointment_scheduled again with the new visit_at and a new message_id (salon:appointment_scheduled:5521:2): the reminder starts over for the new time.
  • Too late — if the visit is less than 24 hours away when the event comes, no reminder is sent: "tomorrow you have an appointment" would not be true.
  • One reminder per person. A new appointment_scheduled of the same person replaces the previous wait: with two appointments ahead, the reminder comes for the one sent last.
{
"message_id": "salon:appointment_scheduled:5521:1",
"event": "appointment_scheduled",
"occurred_at": "2026-11-18T19:30:00+02:00",
"dedupe_key": "5521",
"contact": {
"phone": "+380501112233"
},
"traits": {
"first_name": "Olena"
},
"properties": {
"appointment_id": 5521,
"visit_at": "2026-11-25T15:00:00+02:00",
"service": "Haircut",
"master": "Iryna"
}
}

Review request​

Starts on order_delivered; for services change the start event to visit_completed in the flow editor. Waits one business day — by the calendar of business days in the flows settings — and sends at the same time of day as the event. Sends: "How was order #A-1042? We would appreciate a review: https://…".

PropertyWhat it is
review_urlrequired: the link to the review form
order_idthe order number; without it the text thanks for the choice instead
  • An advice message: it goes to everyone who has not refused advice on the channel (viber_tips: false, sms_tips: false).
{
"message_id": "shop:order_delivered:A-1042",
"event": "order_delivered",
"occurred_at": "2026-11-22T16:10:00+02:00",
"dedupe_key": "A-1042",
"contact": {
"external_id": "client-77"
},
"properties": {
"order_id": "A-1042",
"review_url": "https://shop.example.com/review/A-1042"
}
}

Reactivation​

Starts on inactive_60d — an event AlphaFlow writes itself; you send order_paid. Sends: "Olena, it has been a while! Drop by — new arrivals are waiting.".

  • Creating the flow from the template also creates the inactivity rule "60 days without order_paid": it watches the customers who have paid at least once and writes inactive_60d for those who stopped. If the account already has a rule for order_paid and 60 days, the flow uses it.
  • The name comes from first_name in the contact's traits; without it the text has no name.
  • Marketing: it reaches only those who agreed to offers on the channel — see Consent to marketing.
  • Starts again for the same person only after the previous run is over. The goal is order_paid within 14 days.
  • Send the orders of the last two months as history — History from CSV: the customers who bought before you connected are then counted from their real last order.
  • The rule catches the 60th day of silence, not everyone who left long ago: a customer silent for more than 63 days when the rule appears gets no message. Otherwise a new rule would write to everyone who left a year ago.

"Abandoned cart" and "Reactivation" are marketing: they reach only those who agreed to receive offers, and only on the channels they agreed to. Send the consent with any event — at checkout or at registration:

"consents": { "viber_marketing": true, "sms_marketing": true }

With only sms_marketing, the message goes by SMS. false withdraws the consent: marketing on that channel stops. "Order status", "Unpaid order" and "Appointment reminder" are service messages and need no consent; "Review request" goes until the person refuses advice. More — Consents.