Skip to main content

AfterHours Booker is operated by Washboard Labs LLC.

AfterHours Booker

How later pieces plug in

Booking storage stays local. Stripe Checkout opens when live payments are enabled. Calendar and live Twilio send are still seams.

Stripe Checkout (early access)
Starter checkout at launch pricing.

Starter checkout opens when live payments are enabled. Starter is $29/month or $290/year at launch. AfterHours Booker is operated by Washboard Labs LLC.

Google Calendar
Replace the stub slot writer, keep the same request id.

After OAuth for the business calendar, map `PendingSlot.windowStart` / `windowEnd` to an event with status `tentative` and extended property `afterhoursBookingId`.

Confirm in the inbox should PATCH the event to `confirmed`. Decline should cancel it. Use a Google service account or Calendar API user tokens stored per location — not in this repo.

Cal.com
Use Cal.com as the availability source, AfterHours as intake.

Call the Cal.com booking API with the captured attendee and a slot from their availability endpoint. Store `calBookingId` next to `slotId`. Incoming Cal.com webhooks can flip inbox status if a customer later reschedules on Cal.

Twilio
Parked for several weeks. Routes exist for later; this build does not answer live calls.

Buy a number, set Voice URL to `https://afterhoursbooker.com/api/twilio/voice` and Messaging URL to `/api/twilio/sms`. Verify `X-Twilio-Signature` with `TWILIO_AUTH_TOKEN` before calling `ingestTwilioEvent`. Gather speech or keypad input, then return the existing TwiML helper.

Text / email send
Stubs already store the copy.
Swap `queueConfirmationStubs` for Twilio Messaging or Resend. Keep the queued / sent / skipped fields on the booking so the inbox still shows delivery state.
Agent availability feed
Read-only JSON for AI assistants — open slots and a booking link, no holds or customer data.

Use the read-only sample business at /b/demo (DEMO — sample business, not a real shop). It is served from fixtures — no database rows and no real owner data. Assistants can fetch sample availability from:

/api/agent/availability/demo?from=YYYY-MM-DD&to=YYYY-MM-DD

Optional service filters by sample service name (for example Sample trim). Compare responses to /api/agent/availability/schema.json. Holds and booking calls stay refused until the shop turns on agent bookings (below).

{
  "schemaVersion": "1.0.0",
  "schemaUrl": "https://afterhoursbooker.com/api/agent/availability/schema.json",
  "business": {
    "slug": "demo",
    "name": "DEMO — sample business, not a real shop",
    "timeZone": "America/New_York"
  },
  "bookingUrl": "https://afterhoursbooker.com/b/demo",
  "agentBookingsAccepted": false,
  "services": [
    {
      "name": "Sample trim",
      "durationMinutes": 30
    }
  ],
  "window": {
    "from": "YYYY-MM-DD",
    "to": "YYYY-MM-DD"
  },
  "slots": [
    {
      "start": "YYYY-MM-DDTHH:mm:ss±HH:MM",
      "end": "YYYY-MM-DDTHH:mm:ss±HH:MM",
      "service": "…",
      "durationMinutes": 30
    }
  ]
}

Turning on agent bookings (real shop)

There is no dashboard toggle yet. After you sign in as staff at /admin/login, send an authenticated request to PATCH /api/booking/business-settings with body {"agentBookingsEnabled": true}. That updates ahb_business_settings for the default business. When the master switch is on, the live feed at /api/agent/availability/default reflects real open slots; agent hold and confirm APIs accept traffic. Turn it off with false — the feed answers agents_not_accepted again.