bookameet.ing
All recipes

Add the people who book to Mailchimp

We add each person who books, and who agreed to get news from you, to a Mailchimp audience. Their tag is the name of the meeting.

Open as Markdown .md

Outcome

Someone books and ticks your "Keep me posted" box. Then we add them to your Mailchimp audience, with a tag that names the meeting. If they are already on it, we update them. We do not add a person who did not tick the box.

It runs through Make or Zapier, from a webhook. bookameet.ing posts a notice when someone makes a booking. Your scenario reads the booking from bookameet.ing and sends it on. The Make and Zapier apps of bookameet.ing are not available yet. Until they are, this recipe uses the webhook and HTTP modules that Make has.

What you need

A webhook, an API key and Make or Zapier.

  • A checkbox question on your meeting type, for example "Keep me posted about new workshops". It is in Meeting types → your meeting type → Questions. People must agree before you add them to a mailing list, and this question is how they agree.
  • An API key from Assistants and apps, with these boxes ticked:

    • The line that starts "see the meetings booked with you", for step 4. It is ticked at the start.
    • The line that starts "send your booking data to your webhooks again, or as a test", for steps 3 and 7. It is not ticked unless you tick it.
    • The line that starts "send your booking data to new places", for step 2. You need it only if you add the webhook with the key, not on the dashboard. It is not ticked unless you tick it.

    The recipe needs nothing more, so you can untick the other boxes.

  • A Make account connected to Mailchimp.

Steps

  1. In Make, start a scenario with Webhooks → Custom webhook, and copy its address.
  2. route:POST /api/v1/me/webhooks adds a webhook to that address for booking.created. You can also add it on the dashboard, under Integrations → Webhooks.
  3. route:POST /api/v1/me/webhooks/{id}/test sends a test notice, so that Make learns the shape of the notice. For a real sample, also book a time on your own page, and tick the box.
  4. HTTP → Make a request reads that booking. It uses route:GET /api/v1/me/bookings with id set to the data.id of the notice, and your key in the Authorization header. The scenario uses only this answer, and never the fields of the notice. Anyone who knows the address of the webhook can post to it. But only bookameet.ing can answer with your bookings.
  5. A filter lets through only the answers that have a booking whose answer to your checkbox question is yes.
  6. Mailchimp → Add/Update a Subscriber adds the email and the name of the person that the booking is for to your audience. The title of the meeting is the tag.
  7. If something does not arrive, route:GET /api/v1/me/webhooks/{id}/deliveries shows each notice that we sent and the answer of Make.

Flow

1  Webhooks · Custom webhook
2  Filter     type  equal to  booking.created
3  HTTP · Make a request
     URL      https://bookameet.ing/api/v1/me/bookings
     Method   GET
     Query    id = {{1.data.id}}
     Headers  Authorization = Bearer <your API key>
     Parse response   Yes
4  Filter     the booking is there (bookings is not empty)
              and its answer to "Keep me posted" is true
5  Mailchimp · Add/Update a Subscriber
     Audience       <your audience>
     Email          {{3.data.bookings[1].invitee.email}}
     First name     {{3.data.bookings[1].invitee.name}}
     Status         Subscribed (or Pending, for Mailchimp to ask them to confirm)
     Tags           {{3.data.bookings[1].eventTitle}}

The answers of each booking show with the question of each answer. Look at this shape one time in the output of step 3. Then set step 4 to the answer to your question.

Notes

  • To use Zapier, use these steps:

    1. Webhooks by Zapier → Catch Hook.
    2. A Webhooks by Zapier → GET step to the same address.
    3. A filter.
    4. Mailchimp → Add/Update Subscriber.
  • Mailchimp can email each person to confirm first. This is double opt-in. For it, set the status to Pending.

More recipes