Agent Recipes
Common multi-step workflows your agent can run. Each is 2 to 4 API calls in sequence. Copy the prompt into your agent; the endpoint sequence below it is what the agent should execute.
Recipe 1: Book a meeting from a missed call
Prompt: "Find missed calls from today and text the callers a booking link."
GET /api/v1/receptionists. Pick a receptionist.GET /api/v1/receptionists/:id/calls?direction=inbound&date_from=<today>- Filter for
outcome = no_answerorabandoned, extract thefromphones. POST /api/v1/receptionists/:id/smswith anIdempotency-Key. Text each caller a booking link.- When they reply (handled via the
sms.receivedwebhook on your side), update your CRM.
Valid call outcome values: completed, failed, abandoned, no_answer, busy, booked, handoff, unknown.
Recipe 2: Weekly revenue digest
Prompt: "Summarize this week's call activity in 4 bullets."
GET /api/v1/account. Plan and period stats.GET /api/v1/receptionists. Each active receptionist.GET /api/v1/receptionists/:id/calls?date_from=<7d ago>per receptionist (paginate).- Aggregate: total calls, bookings, outbound SMS, minutes used. Format as prose.
Recipe 3: Nurture a stale lead
Prompt: "Call back everyone who didn't answer last week."
GET /api/v1/receptionists/:id/calls?date_from=<7d ago>- Filter
outcome = no_answer, deduplicate byfrom. POST /api/v1/receptionists/:id/callswith anIdempotency-Key,customer_name,purpose: "follow_up", and an optionalsystem_promptreferencing the prior call.
Always pass an Idempotency-Key to prevent duplicate outreach on retry. Your agent is responsible for TCPA compliance on cold outbound at the REST layer: the MCP tool layer enforces prior-contact, REST does not. See TCPA rules for agents.
Recipe 4: Onboard a new customer
Prompt: "Set up a new HVAC receptionist named 'Acme HVAC' with my Cal.com calendar."
POST /api/v1/receptionistswith anIdempotency-Keyand a body like{ "business_name": "Acme HVAC", "industry": "hvac" }.- Poll
GET /api/v1/receptionists/:iduntil status isactive(typically 10-30 seconds). PATCH /api/v1/receptionists/:idwith the calendar config.POST /api/v1/receptionists/:id/callsto a test number to verify.