Skip to main content

Other system

Any system that can call an address when something happens can start flows, even if it is not in the list. AlphaFlow does not know its format yet, so you show it once: on a test request you point at the phone and say what the event is. Every next request is read the same way.

Before you start​

Find the webhook setting in your system. It is usually called "Webhook", "Webhook URL", "Callback URL", "Notifications to URL" or "HTTP request" and sits in the settings of integrations, notifications or automations. You need two things from it: a field for the address, and a choice of the events that call it.

Step 1. Create the connection​

  1. Open Flows → Connections and press Connect a system.
  2. Choose Other system and give the connection a name — the name of your system.
  3. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN>.

Step 2. Paste the address and send a test​

  1. Paste the address into the webhook setting of your system and choose the events.
  2. Make the event happen once: press the test button if your system has one, or place a test order, booking or form entry with your own phone number.
  3. Return to the connection in the cabinet: it shows the last request as it came — every field with its value.

Step 3. Show AlphaFlow the fields​

Click on the fields of the test request to say what they are:

WhatChooseExample
Contactthe field with the phone, the email or your id of the customer — at least onecustomer.phone
Eventa fixed name, or the field that names the event, with a table of its valuesstatus: paid → order_paid
Event idthe fields that make the event unique — a repeated request with the same values is not recorded twiceorder.id and status
Propertiesthe fields your texts and conditions will useorder.id, total, ttn
Timethe field with the time of the event, or the time of receiptupdated_at

Press Save. The next request of this system becomes an event in Event journal.

  • Name events the way the templates expect: order_created, order_paid, order_status_changed, appointment_scheduled and others — see Recommended events. A flow created from a template then works without edits.
  • A fixed name such as order_paid or order_shipped fits only a webhook the system sends for that state alone. For a webhook on any change of the status choose the status field with a table of values: paid → order_paid, the other statuses → order_status_changed.
  • Without an event id every request is a new event, and a repeated webhook sends the message twice.
  • A request the mapping cannot read — no phone, no email and no id — is listed in the journal as refused, with the reason.

If you can write the request yourself​

If your system lets you write the body of the request (an "HTTP request" or "Send webhook" action with a body field), send the event in the AlphaFlow format straight away:

{
"event": "order_paid",
"message_id": "shop:order_paid:A-1042",
"contact": { "external_id": "client-77", "phone": "+380671234567" },
"properties": { "order_id": "A-1042", "total": 1250.5 }
}

Such a request needs no mapping: AlphaFlow takes it as it is. The fields are described in Event format.

Send order_paid this way only when the payment has gone through; on any other change of the order send order_status_changed with status.