Skip to main content

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.

Written from Wix documentation

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, email and name. 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​

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

Step 2. Set up an automation in Wix​

  1. 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.

  2. Press + → Action → Send HTTP request.

  3. Method — POST.

  4. Webhook URL — the address from the cabinet.

  5. Switch off Nest request body under data.

  6. In the body choose Choose fields and press + Add New Item for each Key / Value pair:

    • event — the name of the event: form_submitted for a form, order_created for 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_id and total instead;
    • contact_id — the id of the Wix contact, if you want it; this is optional.
  7. Press Preview request body and check that the keys are flat, without a data wrapper:

    { "event": "form_submitted", "phone": "<phone from the trigger>", "email": "<email>", "name": "<name>", "form": "<form name>" }
  8. 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 eventAlphaFlow eventProperties
form_submitted, or no event at allform_submittedform
lead_submittedlead_submittedform
order_createdorder_createdorder_id, total
order_paidorder_paidorder_id, total
appointment_scheduledappointment_scheduledform
any other valueform_submitted; other names are set in the connectionform

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 nested contact cannot 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 with quota_exceeded and shown in the journal; the automation in Wix stays on.

Wix documentation​