Skip to main content

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.

Written from Mailchimp documentation

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 event pair.

Step 1. Create a connection​

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

Step 2. Add the Webhook step​

  1. Open Automations → All flows and the flow. Press + where the event should go → Add a step → Webhook.

  2. URL — the address from the cabinet.

  3. Authentication — none. Basic and Bearer are there, but the secret is already in the address.

  4. Choose JSON for the body.

  5. Add the pairs below — the key on the left, the value on the right:

    event order_paid
    message_id mc:order_paid:*|UNIQID|*:*|DATE:d/m/y|*
    phone *|PHONE|*
    email *|EMAIL|*
    name *|FNAME|*

    Change order_paid in event and in message_id to the event that starts this flow: order_paid, cart_updated, lead_submitted or form_submitted (see Events).

  6. 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_id and total yourself.

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 flowAlphaFlow eventProperties
An order is paidorder_paidorder_id, total — if you add them
A cart is left without an ordercart_updated—
A contact signs uplead_submitted—
A form is filled inform_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 with quota_exceeded and shown in the journal; the flow in Mailchimp keeps running.

Mailchimp documentation​