← Todas las ideas
0

Cal: Distribute round-robin bookings fairly and expose a no-show webhook event

LanzadaCalArreglo

Calendly round robin can optimize for availability or for equal distribution, and its API emits invitee_no_show.created webhooks (https://calendly.com/help/how-to-use-buffers mentions distribution effects; https://learn.microsoft.com/en-us/connectors/calendlyv2). In lib/calendar.ts createBooking increments rr_cursor by one whatever host pickFreeHost chose, so when the cursor host is busy the next host gets two bookings in a row and the skipped one loses its turn. Separately, the v1 no-show endpoint (app/api/v1/calendar/bookings/[id]/no-show/route.ts) never calls emitEvent, so webhooks and Flow cannot react to no-shows. First scope: set the cursor to the index after the host actually picked (or pick the least recently booked free host), and emit booking.no_show from both the admin and v1 paths. Priority: low. Effort: S. Compared with Calendly.

Comentarios 0

Sin comentarios todavía.