Operations

After-hours calls

Every call that rang a Retell number routes here. Emergency-classified callers get a Cal.com slot and a live transfer; routine callers are logged for the morning summary.

Setup
RETELL · CAL · TWILIO
Wire Retell into this deploy
The after-hours agent answers via Retell, books Cal.com slots on emergencies, and texts the caller through Twilio. Point Retell at the webhook URL below, drop in your API keys, and the pipeline is live.

1. Webhook URL

Paste this into the Retell dashboard under Agent settings → Server URL. The webhook header is X-Retell-Signature (HMAC-SHA256 of the raw body, hex).

<your-deployed-url>/api/retell/webhook

2. Agent configuration (paste into the Retell dashboard)

Loading…

3. Environment variables (set these in the deploy)

  • RETELL_API_KEY
  • RETELL_WEBHOOK_SECRET
  • RETELL_AGENT_ID
  • RETELL_AGENT_PHONE_NUMBER_ID
  • CALCOM_API_KEY
  • CALCOM_EVENT_TYPE_ID (integer)
  • CALCOM_EMERGENCY_TIMEZONE (e.g. America/Los_Angeles)
  • TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER
  • OWNER_INBOX_EMAIL (defaults to your polsia.app inbox)
  • OWNER_LIVE_TECH_NUMBER (for emergency transfers)
  • ADMIN_TOKEN (gates /api/calls/**; long random value)
Loading feed…
Fetching the last 24 hours of after-hours calls.