# Google Sheets + Calendly

Track Calendly bookings in Google Sheets and add a Thoughtly call when the invitee has agreed to be contacted.

This is an example to build and test for the user's accounts, not a preconfigured connector.

## Example

A small sales team uses a spreadsheet instead of a CRM. A new Calendly booking creates a row with the invitee, meeting time and booking identifier; an approved call can add its receipt to that same row.

## How it works

1. **Receive and verify the booking.** Subscribe to Calendly invitee.created and invitee.canceled events. Check the signing key, signature timestamp and raw request body before processing the event. For reliable delivery, use your own receiver to verify and durably store the event, respond within Calendly's 15-second read timeout, then forward a normalized event with a stable event_id to the authenticated Worker webhook. Reuse the same ID and body on retry. An accepted replay returns the existing run even if it failed; inspect its receipt and reconcile any side effects before sending a recovery event with a new event_id. The direct private URL runs synchronously; every delivery that starts a run is billed, including retries.
2. **Write a traceable row.** Use the Sheets API to append the agreed columns, including the Calendly invitee URI. Use RAW input for external text and keep a durable record of processed events so retries do not append duplicate rows.
3. **Update after the conversation.** If the invitee gave a phone number and permission, place an approved call. Save the call ID and observed result to the matching row. Use the old and new invitee references to reconcile reschedules.

## What you need

- Calendly access to create a signed webhook subscription and your own durable receiver for the handoff described above.
- Google authorization for the selected spreadsheet and a plan for refreshing short-lived credentials.
- An enabled Agent Worker, a funded wallet for calls, and a phone number plus permission for each call.

Agent Worker runs are billed separately from calls and texts. Check instance availability, [pricing](/docs#pricing), permissions and the user's approved limits. Test with fictional data before activation. Preserve stable event IDs and reconcile an uncertain write before retrying it.

## Prompt

```text
Help me record Calendly bookings in a Google Sheet with an Agent Worker. Verify signatures, prevent duplicate rows and handle canceled or rescheduled meetings. Call only if the invitee has provided a phone number and consent, then update the matching row. Test before activation and show the costs.
```

## Provider documentation

- [Calendly webhook subscriptions](https://developer.calendly.com/docs/api-guides/receive-data-from-scheduled-events-in-real-time-with-webhook-subscriptions)
- [Calendly webhook signatures](https://developer.calendly.com/api-docs/overview/webhooks/webhook-signatures)
- [Calendly webhook timeouts](https://developer.calendly.com/api-docs/overview/webhooks/webhook-timeouts)
- [Google Sheets: append values](https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/append)

[Agent Worker webhook playbook](/recipes/crm-trigger-call.md) · [Connection guide](/docs#worker-connections)
