Wix
Wix is a website builder. Its Automations react to what happens on the site — a form is submitted, an order is placed in Wix Stores — and one of their actions sends an HTTP request. Pointed at the Flows address, that request starts your flows: a request from the site gets an answer in Viber or SMS, an order gets a confirmation.
This page is written from the public documentation of Wix and has not been checked on a live account yet.
What you need
- Automations with the Send HTTP request action. The Wix help does not name a plan for them, so this is not confirmed by the documentation. Shop triggers need Wix Stores on the site.
- One automation is one trigger and one event. All automations use the same address.
- You choose the fields of the request yourself: AlphaFlow reads the keys
event,phone,emailandname. In the cabinet Wix is connected as a Website form — the same connection that takes WPForms and Gravity Forms, see Website forms.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose Website form. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Set up an automation in Wix
-
In the dashboard of the site open Automations → + Create Automation → + Start from Scratch. Name the automation and choose the trigger, for example a form submission.
-
Press + → Action → Send HTTP request.
-
Method — POST.
-
Webhook URL — the address from the cabinet.
-
Switch off Nest request body under data.
-
In the body choose Choose fields and press + Add New Item for each Key / Value pair:
event— the name of the event:form_submittedfor a form,order_createdfor an order (see Events);phone— the phone of the contact from the data of the trigger;email— the email,name— the name;form— the name of the form; for an order —order_idandtotalinstead;contact_id— the id of the Wix contact, if you want it; this is optional.
-
Press Preview request body and check that the keys are flat, without a
datawrapper:{ "event": "form_submitted", "phone": "<phone from the trigger>", "email": "<email>", "name": "<name>", "form": "<form name>" } -
Activate the automation.
Whether Value takes a fixed text such as form_submitted (typed in, through Customize or a formula) is not
confirmed by the documentation. If it does not, pass the event as a parameter of the address instead: Customize
next to Webhook URL adds a query parameter event, and in the connection you set that the event comes from this
parameter.
Step 3. Send a test
After the automation is active, submit the form or place a test order with your own phone number. The event appears
in Flows → Connections → Event journal, and the connection
shows Recognised: Website form.
Events
Value of event | AlphaFlow event | Properties |
|---|---|---|
form_submitted, or no event at all | form_submitted | form |
lead_submitted | lead_submitted | form |
order_created | order_created | order_id, total |
order_paid | order_paid | order_id, total |
appointment_scheduled | appointment_scheduled | form |
| any other value | form_submitted; other names are set in the connection | form |
Put order_paid only into an automation whose trigger is the payment itself. An automation on a new order sends
order_created: a placed order is not yet paid, and it would reach the customer as "paid".
AlphaFlow takes the properties form, order_id and total from the keys of the same names, whichever of them the
request carries; other keys do not become properties.
The contact is found by phone, email and, if you added it, contact_id; the name comes from name. A request
with neither a phone, nor an email, nor a known contact_id is refused with no_contact. The time of the event is
the time it was received. The names of the events are the ones the ready-made templates expect — see
Recommended events.
Good to know
- The Wix help does not describe repeats of the request.
- The request has no id of its own, so AlphaFlow tells requests apart by their content: identical requests within 10 minutes become one event, a later one is recorded again.
- The body is either flat or wrapped entirely in
data— a nestedcontactcannot be built, which is why AlphaFlow reads flat keys. With Nest request body under data switched on, they are not found. - The body option All automation data sends all the data of the trigger, but its format is shown in the help only as a picture. This page does not cover it: use Choose fields.
- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the automation in Wix stays on.