← Calendar

Zapier connections

Download guide

What this release provides

Each business connects its own Zapier workflow and its own WhatsApp, SMS, email or other Zapier app accounts. Connections and delivery records are isolated by workspace; accounts are connected inside Zapier. The WhatsApp instructions below use Meta Cloud API, while other workflows can choose their own Zapier actions.

Each workspace owner or administrator can add Zapier Catch Hook connections under Menu → Zapier & customer reminders. Choose booking created, booking updated and/or customer reminder due. Reminder timing can be 1, 2, 24 or 48 hours before an appointment. Use separate connections for separate workflows.

Reminder events require the job's customer reminder opt-in and an international phone number, for example +447700900123. The calendar records when and by whom opt-in was entered. Keep the underlying customer permission record in your customer records. Existing jobs start with reminders off.

Connect Meta WhatsApp Cloud API through Zapier

1. In Zapier, create a Zap with Webhooks by Zapier → Catch Hook. Copy its HTTPS URL.
2. In the calendar, open Zapier & customer reminders. Name the connection, paste the URL, select Customer reminder due, choose the timing, and add it. Keep the Catch Hook URL private.
3. Leave customer messaging actions disabled while configuring. Click Send fictional test event to let Zapier learn the event structure. This uses integration.test, test:true and a fictional contact with opt-in false. It must never reach a messaging action.
4. Add Filter by Zapier: event exactly equals job.reminder_due and job.customer_reminders_opt_in is true. Do not use Delay by Zapier to schedule reminders: the calendar emits them when due.
5. In the calendar's API access, create a separate key with only Validate and claim customer reminders (reminders:claim). Store the key privately in the Zapier request header; never put it in a URL or expose it to customers.
6. Add Webhooks by Zapier → Custom Request, POST to https://calendar.gerrardselectrical.co.uk/v1/reminder-events/REPLACE_WITH_EVENT_ID/claim. Map the incoming top-level id into the URL. Set Authorization: Bearer YOUR_KEY and Content-Type: application/json. Send the JSON body {}.
7. Add another filter that continues only when the claim response send is true. This atomically blocks duplicate workflow runs and checks that the appointment is still active, at the same time, and opted in. Use the returned job fields for all following steps.
8. Add Formatter by Zapier to turn job.starts_at from UTC into your workspace's local timezone (Europe/London for Gerrards Electrical), including date and time.
9. Add WhatsApp Business → Send Template Message. Connect your Meta WhatsApp Business account in Zapier, choose your registered business number and a Meta-approved appointment reminder template. Map the recipient from the claim response job.phone and template variables from its customer_name and the formatted appointment date/time. Add the address only if appropriate for your approved template.
10. Test the full workflow using your own consenting business/test contact and a test appointment, then verify the message in Meta before enabling customer reminders. The fictional integration.test event cannot claim a real reminder; configure the guard with a real controlled test event, keeping the WhatsApp action off until ready.
11. Enable the Zap. Turn reminders on for each consenting customer's appointment.

Zapier's WhatsApp Business app requires a paid Zapier plan, a Meta Business Manager account and a registered WhatsApp Business account/number. Proactive reminders use Meta-approved templates. Recipient opt-in is required. WhatsApp processing charges depend on your account and usage; check your provider billing before enabling.

Official setup: https://help.zapier.com/hc/en-us/articles/40123068069005-How-to-get-started-with-WhatsApp-Business-on-Zapier
Message actions: https://help.zapier.com/hc/en-us/articles/41934249169037-Understanding-WhatsApp-Business-message-actions

Example event

```json
{
  "id": "22222222-2222-4222-8222-222222222222",
  "event": "job.reminder_due",
  "schema_version": 1,
  "workspace_id": "11111111-1111-4111-8111-111111111111",
  "occurred_at": "2026-10-06T08:00:00.000Z",
  "job": {
    "id": "33333333-3333-4333-8333-333333333333",
    "job_number": 1050,
    "version": 3,
    "customer_name": "Example customer",
    "address": "24 Meadow Lane",
    "phone": "+447700900123",
    "email": "",
    "description": "Electrical inspection",
    "starts_at": "2026-10-07T08:00:00.000Z",
    "duration_minutes": 60,
    "status": "scheduled",
    "assigned_user_id": "44444444-4444-4444-8444-444444444444",
    "customer_reminders_opt_in": true
  }
}
```
Internal notes and agreed price are excluded. Booking created/updated events are sent to connections explicitly subscribing to them even when customer reminder opt-in is false; a customer messaging workflow must filter consent and status as appropriate. The final claim endpoint applies to reminder events only.

Delivery and timing

The calendar worker checks due reminders about every five seconds. It retries failed webhook delivery up to eight attempts with increasing delays, for at most one day, and stops reminders once the appointment has started. Permanent HTTP errors stop delivery; temporary errors, timeouts, HTTP 408 and 429 can retry. A timeout can mean Zapier received the event, so the final claim step is essential.

Due reminders can catch up within a 15-minute window after downtime. Older missed windows are skipped; appointments made less than the selected lead time before they start may not produce that reminder. Pick a suitable lead time or handle booking confirmations in a separate workflow.

A reminder is created once per connection, job and appointment start time. Editing notes does not create another reminder. Moving an appointment cancels its pending reminder; a new start time can receive its own reminder when due. Completing/cancelling a job, withdrawing consent or disabling a connection stops pending reminders. The claim step rechecks before Zapier proceeds. A message already being processed by WhatsApp cannot be recalled by the calendar.

The claim allows one workflow to proceed. If WhatsApp fails after claiming, that claim cannot be reused: review the failure and handle the customer manually. This favors preventing duplicate messages over automatic retries after a claimed send. The small interval between validation and the external messaging action cannot be made an atomic calendar transaction.

Monitor and disable

Use Delivery status beside a connection to review its latest 30 events, attempt count and HTTP result. Accepted by Zapier confirms receipt only. It does not mean WhatsApp sent, delivered or read the message; confirm in Meta Business Manager or a separate WhatsApp message-status workflow.

Disable connection cancels its pending calendar deliveries. Disable the corresponding Zap too if it has already started processing events. Revoke the claim API key to stop further claims. To change a private endpoint or reminder timing, disable the old connection and create its replacement. Up to ten active connections are supported per workspace.

The calendar stores private Catch Hook endpoints in workspace-protected database records and includes them in encrypted backups. They are not returned in connection lists or delivery diagnostics. Only hooks.zapier.com HTTPS Catch Hook addresses are accepted; redirects, custom ports and arbitrary destinations are rejected.

Receive bookings from Zapier (inbound webhooks)

Each business creates its own API key in Calendar → API access. Select jobs:read, jobs:write and team:read for a workflow that looks up employees and creates/updates bookings. Use a different key per integration and store it privately in Zapier.

Both inbound booking operations accept POST:
- Create: POST https://calendar.gerrardselectrical.co.uk/v1/jobs
- Update: POST https://calendar.gerrardselectrical.co.uk/v1/jobs/JOB_UUID
- Read current booking/version: GET https://calendar.gerrardselectrical.co.uk/v1/jobs/JOB_UUID
- List available assigned users: GET https://calendar.gerrardselectrical.co.uk/v1/users

Use Webhooks by Zapier → Custom Request. Set Method to POST, send a JSON object and set these headers:
```http
Authorization: Bearer YOUR_CALENDAR_API_KEY
Content-Type: application/json
```
Keep the key in a header. The key identifies the business workspace; do not send tenant_id, cookies or an Origin header. These URLs receive Zapier requests; the Catch Hook URL configured in the calendar is for events sent in the other direction.

Example create body (replace assigned_user_id with an active member UUID from /users and map your source fields):
```json
{
  "customer_name": "Example customer",
  "address": "24 Meadow Lane",
  "phone": "+447700900123",
  "email": "customer@example.test",
  "description": "Electrical inspection",
  "agreed_price_pence": 12999,
  "starts_at": "2026-12-01T09:00:00+00:00",
  "duration_minutes": 60,
  "status": "scheduled",
  "internal_notes": "",
  "assigned_user_id": "11111111-1111-4111-8111-111111111111",
  "customer_reminders_opt_in": false,
  "allow_overlap": false
}
```

All editable job fields are required except the two optional booleans, which default false. Use genuine JSON numbers/booleans, not quoted numeric strings. Convert currency to integer pence (£129.99 → 12999). Include Z or an explicit timezone offset on starts_at. Status is scheduled, in_progress, completed or cancelled.

On a successful create, HTTP 201 returns the saved job, including id and version. Store that UUID alongside the source booking/quotation. Creation is not idempotent: do not blindly repeat POST after an uncertain timeout. Reconcile the saved record before retrying.

To update, first GET the existing job, map its editable fields, apply the changes and add its current version as a JSON integer. POST that full body to /v1/jobs/{id}. Do not send returned server fields such as id, job_number, tenant_id, created_at, updated_at, reminder_consent_at or reminder_consent_by. HTTP 200 returns the updated booking and incremented version. Existing PUT updates continue to work.

The update is a full replacement, so carry forward address/contact details, notes, assigned user and customer_reminders_opt_in if they should be retained. Set reminders true only with customer permission and an international phone number. The calendar records the consent actor/time.

HTTP 409 with code booking_conflict warns about overlapping employee appointments. Change the slot or explicitly approve allow_overlap:true; do not silently override. A 409 without that code means the version changed: reread and reconcile. Updates never create a missing booking and cannot cross workspaces. Revoked/expired keys return 401, read-only keys return 403 and malformed bodies return 400.

Inbound API saves use the same validation, phone alerts, job history and outgoing Zapier events as browser saves. Avoid automation loops: if an outgoing booking event feeds a workflow that posts back to the same calendar, filter out unchanged data and keep source booking IDs to prevent repeated creates.