SendPulse
SendPulse is a marketing platform with email, chatbots and automations. A chain of its Automation 360 has the action Send webhook: at that step the chain sends the phone and the email of the contact and the variables of the chain to an address. Pointed at the Flows address, it starts your flows — an order is paid, a cart is left, a form is filled in — and the customer gets the right message in Viber or SMS.
This page is written from the public documentation of SendPulse and has not been checked on a live account yet.
Automation 360 webhooks are not part of the first release of AlphaFlow. SendPulse lets a chain send at most one webhook an hour unless the receiver returns a key in its answer to the first webhook. SendPulse does not publish the format of that key, and AlphaFlow does not return it. Until then, this connection is good for checking the link, not for an event about every contact. The other way into flows is the API Request element of SendPulse chatbots — see Chatbots.
What you need
- Any SendPulse plan. On the free plan SendPulse checks the request with a verification code; its documentation does not describe how.
- A phone of the contact in SendPulse. The webhook carries the phone only if the contact has one.
- One address for all the webhooks of the account: AlphaFlow tells the events apart by the name of the webhook.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose SendPulse. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Add the webhook to a chain
- Open Automation 360 and the chain. Add the element Action with the action Send webhook at the place of the chain after which the event should go.
- Give the webhook a name — the name of the event from the table below: Latin letters and digits only,
no spaces and no underscores, for example
OrderPaidorCartUpdated. AlphaFlow recognises the event by this name. - URL — the address from the cabinet, with nothing added. Do not add variables to the address
(
?key={{variable}}): SendPulse already puts them into the body, invariables. - Press Run a test request. The window shows the body that was sent and the
answer of AlphaFlow,
{"status":"success"}.
You do not write the body: SendPulse always sends the name of the webhook, variables, the time of the step, the id
of the chain, phone and email.
Step 3. Send a test
Press Run a test request in the element Action, then run the chain on your own contact with a phone.
The event appears in Flows → Connections → Event journal
within seconds. The connection shows Recognised: SendPulse.
Events
| Webhook name in SendPulse | AlphaFlow event |
|---|---|
OrderCreated | order_created |
OrderPaid | order_paid |
OrderShipped | order_shipped |
OrderDelivered | order_delivered |
OrderCancelled | order_cancelled |
CartUpdated | cart_updated |
LeadSubmitted | lead_submitted |
FormSubmitted | form_submitted |
AppointmentScheduled | appointment_scheduled |
DealStageChanged | deal_stage_changed |
Name a webhook OrderPaid, OrderShipped, OrderDelivered or OrderCancelled only in a chain that starts on that
very event or passes a condition on its value, for example the payment status "Paid": otherwise a partly paid
order reaches the customer as "paid".
- The properties of the event are all the variables of the chain from
variables— the variables of the event or of the address book. - The contact is found by
phoneandemailof the SendPulse contact. The SendPulse id of the contact is not used: it would not match the ids of your shop. To get the first name, put a variable with the name into the chain and point to it in the connection. - The names are a suggestion: a webhook can be named by any Latin word, and you can add your own rows to this table in the connection. Keep the letter case as in the table. The names of the events are the ones the ready-made templates expect — see Recommended events.
Chatbots: the API Request element
The API Request element of SendPulse chatbots lets you write the body and the headers of the request yourself. It is available on paid chatbot plans. There the event goes in the AlphaFlow format straight away, and nothing has to be mapped — see If you can write the request yourself and Event format.
Good to know
- SendPulse expects an answer in JSON and otherwise reports
Invalid response format. Expects json!. The address answers200with{"status":"success"}, which is JSON. - The SendPulse documentation does not describe retries. There is no signature: the secret in the address is enough.
- The time of the event is the time of the step from the body (
execution_date), read in the time zone SendPulse sends next to it. - The account webhooks of SendPulse (CRM, courses, email service) are another mechanism and are not covered by this page.
- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the webhook in SendPulse stays on.