Skip to main content

Cal.com

Cal.com is a meeting scheduling service. Its webhooks report a booking that is created, rescheduled, cancelled or rejected, and a meeting that has ended. Pointed at the Flows address, they start your flows: a reminder the day before the meeting, a message after a cancellation, a review request after the meeting.

Written from Cal.com documentation

This page is written from the public documentation of Cal.com and has not been checked on a live account yet.

What you need​

  • The plan: the Cal.com documentation does not say whether webhooks need a particular one.
  • Access to Settings → Developer → Webhooks. A webhook belongs to the user or to one event type, a team event type included; one webhook takes all the triggers you choose.
  • A phone only if the event type asks for it. Otherwise the reliable contact is the attendee's email.

Step 1. Create a connection​

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

Step 2. Set up Cal.com​

  1. Open Settings → Developer → Webhooks (/settings/developer/webhooks) and press New.
  2. Subscriber URL — the address from the cabinet. cal.com takes only https:// addresses, and the Flows address is one.
  3. Event triggers — Booking created, Booking rescheduled, Booking canceled, and if you need them Booking rejected and Meeting ended (the meeting took place). Meeting ended is read only in a connection where Cal.com is chosen, as in step 1.
  4. Secret — optional. If you set it, paste the same secret into the AlphaFlow connection: AlphaFlow then checks the signature of every request. Cal.com does not show the secret again after saving.
  5. Custom headers — not needed: the secret of the connection is already in the address.
  6. Payload template — leave it empty: AlphaFlow reads the standard body of Cal.com.
  7. For the phone, switch on the Phone number field for the attendee in the event type.

Step 3. Send a test​

Book a meeting with yourself, reschedule it and cancel it: Cal.com does not send past events. The events appear in Flows → Connections → Event journal within seconds. The connection shows Recognised: Cal.com.

Events​

Cal.com triggerAlphaFlow eventProperties
Booking createdappointment_scheduledappointment_id, visit_at, service, master, location
Booking rescheduledappointment_scheduled with rescheduled = trueappointment_id, visit_at, service, master, location, rescheduled
Booking canceledappointment_cancelledappointment_id, visit_at
Booking rejectedappointment_cancelledappointment_id, visit_at
Meeting endedvisit_completedappointment_id, visit_at, service, location

Every event also carries booking_id, status and meeting_url (the link to the video call). appointment_id is the booking uid, service — the title of the event type (for Meeting ended — the title of the booking), master — the organizer.

The contact is found by the email of the first attendee (payload.attendees[0].email) and the answer to the Phone number field (payload.responses.attendeePhoneNumber); the name comes from the attendee. Meeting ended has a body of its own, with the attendees at the top level: there the phone is attendees[0].phoneNumber and the time of the event is the end of the meeting. In a seated event the attendees hold only the person of that seat.

visit_at is the start of the meeting, so a flow can wait until 24 hours before it — the ready-made "Appointment reminder" does exactly that. The event names are the ones the templates expect — see Recommended events.

A move and the reminder. A move comes as appointment_scheduled with rescheduled = true and the new visit_at. The ready-made "Appointment reminder" restarts by itself on a moved appointment and reminds about the new time: there is nothing to copy or set up.

After the meeting. The ready-made "Review request" starts on order_delivered: for a meeting, change its Start to visit_completed.

Good to know​

  • Retries of booking webhooks are not described in the Cal.com documentation. The signature, if a secret is set, comes in the x-cal-signature-256 header; without it the secret in the address is enough.
  • Meeting ended (MEETING_ENDED) sends a flat body without payload. A connection that recognises the system by itself does not recognise it — only a connection where Cal.com is chosen reads it. Whether this body carries the x-cal-webhook-version header is not said in the Cal.com documentation.
  • Cal.com can send a body of your own (Payload template), but its documented variables have no phone — keep the standard body.
  • Cal.com marks the version of the body in the x-cal-webhook-version header; this page is written for version 2021-10-20.
  • 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 webhook in Cal.com stays on.

Cal.com documentation​