Skip to main content

Altegio

Altegio is an online booking system with an appointment journal. Its webhooks report every appointment that is created, changed or deleted in the journal, including the mark that the client came. Pointed at the Flows address, they start your flows: a client books — and gets a reminder the day before the visit; the appointment is cancelled — and the reminder stops; the visit is marked — and a review request follows.

Altegio already has the platform as a built-in SMS provider (Integrations → Notifications), so a simple reminder can be sent by Altegio itself. Flows are for what a single reminder cannot do: chains, a Viber-then-SMS cascade, a review request after the visit.

Written from Altegio documentation

This page is written from the public documentation of Altegio and has not been checked on a live account yet.

What you need​

  • Access to the Administration mode of Altegio, Settings → System Settings → For Developers.
  • The plan: the Altegio documentation does not say whether webhooks need a particular one.
  • Appointment events are enough. Altegio sends the same create, update and delete for clients, goods and staff; AlphaFlow skips them by itself, but there is no need for extra requests.
  • Webhooks are set per location (branch). With several branches, repeat the setup in each; the setting can hold several addresses.

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose Altegio.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Set up Altegio​

  1. In the Administration mode open Settings → System Settings → For Developers.
  2. Switch on sending hooks and paste the address from the cabinet.
  3. Among the events when creating, editing, deleting a booking in the Appointment Calendar is enough. The rest — clients, goods, staff — AlphaFlow skips by itself, so they can stay off.
  4. Press Save.

There is nothing to write: Altegio sends a body of its own that cannot be changed, and AlphaFlow reads it as it is.

Step 3. Send a test​

Altegio has no test button and no delivery log. Create a test appointment in the journal with your own phone number, then cancel it. Altegio sends a webhook 5 seconds after the change, and both events appear in Flows → Connections → Event journal within seconds. The connection shows Recognised: Altegio.

Events​

Altegio statusAlphaFlow eventProperties
create — an appointment is createdappointment_scheduledappointment_id, visit_at, service, master
update with attendance = 1 — the client is marked as arrivedvisit_completedappointment_id, visit_at, service, master
update — any other change of an appointmentappointment_scheduled with rescheduled = trueappointment_id, visit_at, service, master, rescheduled
delete — an appointment is deletedappointment_cancelledappointment_id, visit_at, service, master

Every event also carries location_id (the Altegio location), confirmed, online, attendance (the visit mark) and short_link. service is the first service of the appointment. master may come empty: the example in the Altegio documentation has no staff in it.

The contact is found by the client's phone (data.client.phone), email and the id of the client card in Altegio; the name comes from data.client.name.

visit_at is the time of the visit, so a flow can wait until 24 hours before it — the ready-made "Appointment reminder" does exactly that. The event names are the ones the templates expect — see Recommended events.

  • Any change is update — another master, a payment, a confirmation, not only a new time. The first change is recorded; further changes that keep the time of the visit and the visit mark are taken for repeats. The visit mark comes once, as visit_completed.
  • A move and the reminder. A change comes as appointment_scheduled with rescheduled = true and the current visit_at — after a move, the new time. The ready-made "Appointment reminder" restarts by itself on a moved appointment and reminds about the new time: there is nothing to copy or set up. Altegio does not say what has changed, so rescheduled is true after any change; a change that keeps the time brings no second reminder.

Good to know​

  • Altegio waits 10 seconds for the answer. It repeats only on a connection error, 429 or 5xx — twice, after 5 and 30 seconds; other 4xx and a timeout are not repeated. A repeat carries the current state of the appointment, and the order of webhooks is not guaranteed.
  • Altegio adds an Authorization header with a token of its own, the same for all its webhooks. It is not your secret, and AlphaFlow does not check it: the secret is in the address.
  • visit_completed is an update with attendance = 1 — the mark that the client came. The values of attendance are not described in the Altegio documentation, so this value is not confirmed. The ready-made "Review request" starts on order_delivered: for a visit, change its Start to visit_completed.
  • An appointment without the client's phone, email and id is refused with no_contact and shown in the journal.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the webhook in Altegio stays on.

Altegio documentation​