Outcome
When someone books with you, their name and email go into your marketing system as a lead or a prospect. The title and the time of the meeting go with them. This takes about one minute. If the person is already there, we update them. We do not make a second record.
It runs through Zapier, from a webhook. bookameet.ing posts a signed notice when someone makes a booking. Your Zap reads the booking from bookameet.ing and sends it on. The Zapier and Make apps of bookameet.ing are not available yet. Until they are, this recipe uses the webhook steps that Zapier has, Webhooks by Zapier. Your Zapier plan must include them. Make works in the same way, with its own webhook and HTTP modules.
What you need
A webhook, an API key and Zapier.
An API key from Assistants and apps, with these boxes ticked:
- The line that starts "see the meetings booked with you", for step 5. 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 8. 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 Zapier account connected to Marketo or to Account Engagement.
Steps
- In Zapier, start a Zap with Webhooks by Zapier → Catch Hook, and copy its URL.
route:POST /api/v1/me/webhooksadds a webhook to that URL forbooking.created. You can also add it on the dashboard, under Integrations → Webhooks. Keep the signing secret. It shows only one time.route:POST /api/v1/me/webhooks/{id}/testsends a test notice, aping, so that Zapier has a sample to use. For a realbooking.createdsample, also book a time on your own page.- In the Zap, a filter lets through only the notices whose
typeisbooking.created. - A Webhooks by Zapier → GET step reads that booking from bookameet.ing. It uses
route:GET /api/v1/me/bookingswithidset to thedata.idof the notice, and your key in theAuthorizationheader. The Zap uses only this answer, and never the fields of the notice. Anyone who knows the URL of the hook can post to it. But only bookameet.ing can answer with your bookings. - A filter lets through only the answers that have a booking.
- The Marketo or Account Engagement step makes or updates the lead or the prospect from the booking.
- If something does not arrive,
route:GET /api/v1/me/webhooks/{id}/deliveriesshows each notice that we sent and the answer of Zapier. We try a failed notice again for about one and a half days.
Flow
1 Trigger Webhooks by Zapier · Catch Hook
2 Filter Type (text) exactly matches booking.created
3 Action Webhooks by Zapier · GET
URL https://bookameet.ing/api/v1/me/bookings
Query id = <Data Id, from step 1>
Headers Authorization = Bearer <your API key>
4 Filter Bookings Id exists
5 Action Marketo · create or update a lead
(or Salesforce Account Engagement · create or update a prospect)
Email <Bookings Invitee Email, from step 3>
Name <Bookings Invitee Name>
Meeting <Bookings Event Title>, <Bookings Start>To add the webhook with your key, not on the dashboard:
curl -X POST "https://bookameet.ing/api/v1/me/webhooks" \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"url":"https://hooks.zapier.com/hooks/catch/…","events":["booking.created"]}'Notes
startis an ISO 8601 instant in UTC. If your field needs a different form, change the format in Zapier.- For cancels, add
booking.cancelledto the webhook. Then add a second path to the Zap that updates the lead.