AI Agent Guardrails Bundle
AI agent guardrails you can test: Claude Agent SDK hooks, LangGraph undo/approval patterns, agent safety skills and an autonomy ladder. 4 kits, $69 ($124 separately).
View AI Agent Guardrails Bundle
Your voice agent sounds great until the platform retries a booking, two callers grab the last slot, or it offers 2:30 AM on the night the clocks change. This is the booking backend behind an AI receptionist, already tested against those calls.

44 tests, all offline. ./run_tests.sh runs them over real HTTP on localhost with Retell- and Vapi-shaped payloads.
| What goes wrong on real calls | What this backend does | Test |
|---|---|---|
| The platform retries a tool call after a timeout (Retell max_retry, network blips) | Idempotent: the same call + function + args returns the first booking | test_retry_with_same_idem_key_never_double_books, live HTTP retry test |
| Two callers grab the last slot at the same moment | Bookings run in BEGIN IMMEDIATE transactions: one wins, the other is offered alternatives | 12-thread race test |
| The agent offers 2:30 AM on a DST night, or skips an hour | Slots computed in UTC instants: 23 hourly slots on spring-forward day, 25 on fall-back day, nonexistent local times refused | DST tests (Mar 14 2027, Nov 1 2026) |
| Lunch breaks, holidays, buffers between appointments, "can't book within 2 hours" | All in one config, validated at start-up | slot tests |
| The owner's own calendar (conference day, staff training) | Import their private ICS address as busy time (TZID, UTC, all-day, DURATION, transparent/cancelled skipped) | ICS tests |
| A caller cancels someone else's booking by guessing a code | Cancel/reschedule require the booking's phone number; a wrong number gets the same answer as a missing booking | leak test |
| Reschedule fails half-way and the caller loses both times | Atomic move: the old time is kept unless the new one is booked | atomic reschedule test |
| Late cancellations | Policy window (e.g. 24 h) hands the request to a person as a message | late-cancel test |
| "My face is swelling" at 10 PM | Emergency keywords transfer day or night; "talk to a person" transfers in hours and takes a message after | routing tests |
| Names and numbers leaking into logs and Slack | Logs keep codes and refs only; notifications mask phones and scrub numbers/emails/cards from messages | PII tests |
| Forged webhooks | Retell X-Retell-Signature (HMAC-SHA256, 5-minute window) and Vapi Bearer / X-Vapi-Secret, constant-time compare | signature tests |
| Vapi says "no result returned" | Vapi replies are always HTTP 200 with a flat one-line result or error per toolCallId | multi-tool-call test |
Retell and Vapi tool definitions are included, ready to paste.

Then go live: host it anywhere that runs Python 3.9+ with a public HTTPS URL, set RETELL_API_KEY and/or VAPI_SECRET, and point Retell custom functions or Vapi tools at it (step-by-step in the README).
./run_tests.sh # 44 tests + config check
python3 scripts/simulate.py # see what the agent would say
cp config.example.json config.json # then edit: hours, services, holidays, routing
python3 -m receptionist.server --config config.json --checkAlready on Cal.com and Retell only? Retell’s native Cal.com integration may be all you need. Pick this backend when you use Vapi, want your own booking data, or need the policy rules (emergency transfer, late-cancel window, buffers, holidays).
Python 3.9+ (tested on 3.10 and 3.13). On Windows also pip install tzdata. No dependencies. Not affiliated with Retell AI or Vapi.
Zip, 37 KB, v1.0, 26 files. Use and modify it for yourself and for your clients, including paid client projects; no resale or redistribution of the kit itself. Full terms in LICENSE.txt.
Booking backend for Retell AI and Vapi receptionists: availability, book, reschedule, cancel, transfer. Retry-safe, 44 tests (Python).
AI agent guardrails you can test: Claude Agent SDK hooks, LangGraph undo/approval patterns, agent safety skills and an autonomy ladder. 4 kits, $69 ($124 separately).
View AI Agent Guardrails BundleBuild with x402 payments: builder skills, a paid agent API starter, Hermes and ElizaOS plugin templates. 4 tested kits, $59 ($96 separately).
View x402 Developer Bundle4 importable n8n AI agent workflows: FAQ support agent, Gmail AI triage, AI lead qualification with rule-based scoring, feedback sentiment router. Tested. $19.
View n8n AI Agent Workflows Pack