# Cal.com + Slack

Follow up on a Cal.com booking by phone when requested and share the call receipt in Slack.

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

## Example

A prospect books a consultation and explicitly requests a callback. A verified Cal.com event reaches an Agent Worker, which places the authorized call and sends its final status to the team's chosen Slack channel. Cal.com also offers its own Slack app for booking notifications; this custom example adds the Thoughtly call and receipt.

## How it works

1. **Verify the booking.** Subscribe to the relevant Cal.com booking-created, rescheduled and canceled events. Set a webhook secret and verify X-Cal-Signature-256 as HMAC-SHA256 over the original request body before processing it. For reliable handoff, use your own receiver to verify and durably store the event, acknowledge promptly, then forward a normalized event with a stable event_id and the Worker's trigger secret. Reuse the same ID and body on delivery retry; inspect a failed run and reconcile side effects before sending a new recovery event.
2. **Call only when authorized.** Map a phone number and explicit permission from the approved booking fields; a booking by itself is not consent. Keep a separate callback request ID across a reschedule of the same request and derive the stable call key from it, not from a changing delivery ID. Check the current booking status and reconcile cancellations and reschedules before starting a call. A later cancellation cannot undo a call already started.
3. **Post a limited receipt.** Enable on_call_ended for calls this worker starts, then use Slack chat.postMessage for the call ID and final status in the approved channel. Exclude phone numbers, transcripts and meeting links unless approved. Check Slack's ok field and retain the channel and timestamp. Keep pending messages in your durable outbox; on a rate limit, have a separate scheduler retry after Retry-After. A call-ended run has a 30-second limit and is not automatically rerun after failure. Inspect the channel before retrying an uncertain post. Monitor failed runs; a completed call does not prove a person answered.

## What you need

- Access to the relevant Cal.com event's webhook settings and a signing secret. A booking may need custom fields to collect a phone number and explicit callback permission.
- A customer-operated receiver with durable storage, signature verification and retry monitoring. The Worker's direct private URL executes synchronously, and every delivery that starts a run is billed, including retries.
- A Slack app with chat:write and access to the chosen channel; store the bot token in Vault and allow slack.com. Keep a durable record to reconcile uncertain messages.
- An enabled Agent Worker, approved execution and per-call limits, a funded wallet and permission to call. Worker runs and phone calls are billed separately.

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 connect Cal.com and Slack for an explicitly requested callback. Verify signed booking events through a durable receiver, reconcile cancellations and reschedules, then call once with a stable callback key and post a minimal call receipt to my approved Slack channel. Explain the receiver, provider access, costs and safe retry handling, and test with fictional data before activation.
```

## Provider documentation

- [Cal.com webhooks](https://site.cal.com/features/webhooks)
- [Cal.com Slack app](https://website.cal.com/apps/slack)
- [Slack chat.postMessage](https://docs.slack.dev/reference/methods/chat.postMessage/)
- [Slack rate limits](https://docs.slack.dev/apis/web-api/rate-limits/)

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