Mailchimp
Mailchimp is an email marketing platform. Its flows (Customer Journey) have a Webhook step that sends key–value pairs you write yourself, with merge tags as values. Pointed at the Flows address, the step starts your flows: an order is paid, a cart is left, a contact signs up or fills in a form — and the customer gets the right message in Viber or SMS.
This page is written from the public documentation of Mailchimp and has not been checked on a live account yet.
What you need
- The Standard or Premium plan. On Free and Essentials the step can be set up, but switched on only after moving to Standard.
- A phone in the PHONE field of the audience. The step sends the phone only if the contact has it.
- One address for all flows: the event is written in the
eventpair.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose Mailchimp. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Add the Webhook step
-
Open Automations → All flows and the flow. Press + where the event should go → Add a step → Webhook.
-
URL — the address from the cabinet.
-
Authentication — none. Basic and Bearer are there, but the secret is already in the address.
-
Choose JSON for the body.
-
Add the pairs below — the key on the left, the value on the right:
event order_paidmessage_id mc:order_paid:*|UNIQID|*:*|DATE:d/m/y|*phone *|PHONE|*email *|EMAIL|*name *|FNAME|*Change
order_paidineventand inmessage_idto the event that starts this flow:order_paid,cart_updated,lead_submittedorform_submitted(see Events). -
Press Save and switch the flow on.
*|PHONE|*,*|EMAIL|*and*|FNAME|*are the phone, the email and the first name of the contact;*|UNIQID|*is the Mailchimp id of the contact, and*|DATE:d/m/y|*is the date of sending. They make the event id.- Merge tags for the order are not described in Mailchimp's help. If you have the number and the sum of the order,
add the pairs
order_idandtotalyourself.
Step 3. Send a test
Mailchimp's help describes no test button for the step. Run the flow on your own contact with a phone in PHONE:
the step shows the number of requests sent, and the event appears in
Flows → Connections → Event journal within seconds. Open it
and check that it has the phone, the email and the name of the event from the event pair.
Events
| What starts the Mailchimp flow | AlphaFlow event | Properties |
|---|---|---|
| An order is paid | order_paid | order_id, total — if you add them |
| A cart is left without an order | cart_updated | — |
| A contact signs up | lead_submitted | — |
| A form is filled in | form_submitted | — |
Put order_paid only into a flow that starts on a payment or checks a paid status. A flow on a placed order sends
order_created: otherwise an unpaid order reaches the customer as "paid".
The contact is found by the phone and email pairs, the first name comes from name. The Mailchimp id
(*|UNIQID|*) is not used as the contact id: it would not match the ids of your shop. The names of the events are
the ones the ready-made templates expect — see Recommended events.
Good to know
- The step does not retry: if a request fails, it is not sent again.
- There is no signature: the secret in the address is enough.
- The event id ends with the date of sending, so the same contact on the same step on the same day is taken for a repeat and recorded once. Whether date merge tags work in the Webhook step is not confirmed by the documentation.
- A contact with an empty PHONE comes with the email only: AlphaFlow finds the contact by the email, and a message in Viber or SMS reaches it only if AlphaFlow already knows its phone.
- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the flow in Mailchimp keeps running.