Chat Held-Draft → Stripe Payment Link
Audience: front-desk staff and operators. Scope: Suite-side procedure only — no Concierge changes needed.
The flow
- Guest chats with the ViveReply Chatbot (website widget).
- Chatbot checks live availability and quotes the seasonal rate.
- Chatbot creates a PENDING booking draft — a hold on the room.
- Staff confirm the draft in Admin → Chatbot Admin (handoff board).
- Payment link is generated (Stripe Checkout) and sent to the guest.
- Guest pays → booking confirms, hold converts to a real reservation.
- No payment in time → the hold expires and the room releases.
Hold expiry
Hold window: 24 hours from draft creation (founder decision 2026-10-27, enforced in
pending-expiry.ts). The hourly sweep expires stale drafts, so the effective window is 24–25 hours. Quote “24 hours” to guests.
- PENDING drafts expire 24 hours after creation when no payment evidence exists.
- Expiry is enforced by the hourly booking-hold cron (see the deployment runbook).
- Expired holds release the room automatically — no staff action needed.
- The guest is notified if contact details were captured.
Generating the payment link
- Open the handoff in Admin → Chatbot Admin.
- Review the draft: dates, room type, quoted total.
- Click Generate payment link — this creates a Stripe Checkout session (idempotent: re-clicking returns the same link for 24h, no duplicate payments).
- Copy the link and send it to the guest (email, or the channel they chatted on).
- The handoff status moves to AWAITING_PAYMENT.
When payment lands
- Stripe webhook
checkout.session.completedfires → Suite marks the booking CONFIRMED. - The 15-minute reconcile cron catches anything the webhook missed.
- Staff see the confirmation in the handoff board and the booking list.
When payment doesn’t land
checkout.session.expiredfires → booking returns to PENDING until the hold window lapses, then expires.- Staff can re-generate the link (same idempotency window) or cancel the draft.
Edge cases
| Situation | What happens |
|---|---|
| Guest pays twice | Idempotency: second payment is refunded automatically |
| Guest disputes | Logged in Finance → Stripe disputes with evidence deadline |
| Hold expires mid-chat | Chatbot is told the room released; offers alternatives |
| Staff cancel the draft | Hold releases immediately; guest notified if reachable |
Last updated on