Skip to main content

Recommended events

You choose the names of your events: AlphaFlow adds a new name to the catalogue with its first event. But the ready-made templates and the AI assistant are built on the names below — send your events under these names and with these properties, and a flow created from a template works without edits.

Events​

EventWhenPropertiesTemplate
order_createdAn order is placedorder_id, total, payment_url"Unpaid order"; the exit and the goal of "Abandoned cart"
order_paidAn order is paidorder_id, totalThe exit and the goal of "Unpaid order"; the inactivity rule of "Reactivation"
order_status_changedThe status of an order changesorder_id, status, status_title, tracking_url"Order status"
order_deliveredAn order is deliveredorder_id, review_url"Review request"
cart_updatedA cart changed, and there is no order yetcart_id, total, cart_url"Abandoned cart"
appointment_scheduledAn appointment is made or movedappointment_id, visit_at, service, master"Appointment reminder"
appointment_cancelledAn appointment is cancelledappointment_idThe exit of "Appointment reminder"
visit_completedA visit took placeappointment_id, review_url"Review request" for services
inactive_60d60 days without order_paid—"Reactivation". You do not send it: AlphaFlow writes it itself
  • Dates are ISO 8601. A date without a time zone is read in the time zone of the account.
  • Links — payment_url, tracking_url, cart_url, review_url — are full https:// addresses: a template puts them into the text as they are.

What each template does with these events — Templates.

Shop: an order is placed and paid​

The order is placed, and fifteen minutes later it is paid. The "Unpaid order" flow waits an hour after order_created — the payment comes earlier, and no reminder is sent:

{
"batch": [
{
"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"
},
"consents": {
"viber_marketing": true,
"sms_marketing": true
}
},
{
"message_id": "shop:order_paid:A-1042",
"event": "order_paid",
"occurred_at": "2026-11-20T12:20:00+02:00",
"dedupe_key": "A-1042",
"contact": {
"external_id": "client-77"
},
"properties": {
"order_id": "A-1042",
"total": 1250.5
}
}
]
}

The consents came with the order: the customer ticked "send me offers" at checkout.

Shop: the status of an order​

Each change of the status is a separate event. The status is part of message_id, so a repeat of the same status does not count twice:

{
"message_id": "shop:order_status_changed:A-1042:shipped",
"event": "order_status_changed",
"occurred_at": "2026-11-21T09:00:00+02:00",
"dedupe_key": "A-1042",
"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"
}
}

status is your code of the status, handy for conditions ("only shipped"); status_title is the status in words, as the customer will read it.

Salon: an appointment​

An appointment is made. When it is moved, send the same event with the new visit_at and a new message_id: the reminder starts over for the new time.

{
"message_id": "salon:appointment_scheduled:5521:2",
"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"
}
}

The cancellation removes the reminder:

{
"message_id": "salon:appointment_cancelled:5521",
"event": "appointment_cancelled",
"occurred_at": "2026-11-19T10:00:00+02:00",
"dedupe_key": "5521",
"contact": {
"phone": "+380501112233"
},
"properties": {
"appointment_id": 5521
}
}

visit_at may come with a time zone or without one (then the time zone of the account). Without visit_at the reminder has no moment to wait for, and the person leaves the flow without a message.

History​

For "Reactivation" and for conditions like "bought three times" to work from the first day, send the orders of past months as history — a file in the cabinet (History from CSV) or events with backfill: true (History).

Events AlphaFlow writes itself​

These events appear in the journal next to yours, with context.source = flow. A flow can start on them or leave on them. You cannot send them: a message_id starting with flow: is refused.

EventWhenProperties
consent_revokedA contact withdrew a consent (false in consents) or unsubscribed by the link in an emailchannel, topic, source
message_deliveredAn SMS or a messenger message was deliveredidempotency_key, channel (which channel of a cascade delivered it), status
message_failedA message was not deliveredidempotency_key, channel, status, error
sms_stopA subscriber answered STOP to the number of your account, and you have a contact with this phonenumber, keyword, in_sms_id
inactive_60d and others of inactivity rulesA contact did not send the rule's event for the set number of daysevent, last_event_day, days_silent, active_days, window_days