Engineering an autonomous booking, upfront deposit & WhatsApp notification pipeline for a high-volume studio.
Namaste Priya! 🙏
Your booking for Bridal Couture Package has been confirmed.
📅 Date: Sunday, 24 Oct
⏰ Slot: 11:30 AM
💳 Deposit: ₹4,500 Paid (TXN_9921)
📍 Studio: Lucknow Studio Suite #4
*Bridal Prep Note:* Please ensure hands are moisturized and free of henna oil 24 hours prior to appointment.
The business bottlenecks that were strangling studio capacity.
In high-demand wedding seasons, client inquiries surge dramatically. The studio's previous manual workflow was leaking revenue and draining staff energy.
The DM Black Hole
Over 40% of potential brides inquiring on Instagram and WhatsApp waited hours for a human response during peak sessions. By the time staff replied with pricing and slot availability, clients had already booked competing studios.
Calendar Collisions
Multiple staff members manually promised overlapping slots across Instagram DMs, personal WhatsApp chats, and phone calls. Double-booking conflicts caused severe client friction during peak wedding dates.
No-Deposit Ghosting
Without an automated upfront deposit system, clients frequently cancelled bookings last-minute or failed to show up, leaving senior artists idle on high-value dates with zero compensation.
How the autonomous pipeline processes bookings without human intervention.
The system removes all human friction from the appointment lifecycle: from client selection to temporary slot locking, payment verification, and instant WhatsApp dispatch.
Engineering decisions & code architecture.
Temporary Reservation Lock to Prevent Race Conditions
When two clients simultaneously attempt to book the same wedding slot on auspicious festival dates, traditional booking forms fail with race conditions. Ajay engineered an atomic 10-minute temporary session lock in TypeScript. If the payment gateway modal is closed or abandoned, the lock cleanly releases back to the availability pool without database corruption.
export async function lockAppointmentSlot(
slotId: string,
userId: string
): Promise<ReservationLockResult> {
const existingLock = await cache.get(`lock:${slotId}`);
if (existingLock && existingLock.userId !== userId) {
return { success: false, reason: 'SLOT_OCCUPIED' };
}
// Set atomic lock for 600 seconds (10 mins)
await cache.set(
`lock:${slotId}`,
{ userId, lockedAt: Date.now() },
{ ttlSeconds: 600 }
);
return { success: true, expiresAt: Date.now() + 600000 };
}
Transactional WhatsApp Cloud API Message Dispatch
Rather than forcing clients to check email inbox spam folders, the application directly connects to Meta's WhatsApp Cloud API. Webhook listeners trigger an authenticated WhatsApp template message containing dynamic variables: client name, booking slot, payment transaction hash, studio Google Maps pin, and bridal prep advice.
{
"messaging_product": "whatsapp",
"to": "+919876543210",
"type": "template",
"template": {
"name": "mehendi_booking_confirmation",
"language": { "code": "en" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Priya" },
{ "type": "text", "text": "Bridal Couture Package" },
{ "type": "text", "text": "Sunday, 24 Oct @ 11:30 AM" },
{ "type": "text", "text": "TXN_9921 (₹4,500 Paid)" }
]
}
]
}
}
24/7 Conversational AI Client Assistant
A custom, lightweight chatbot embedded directly on the website answers 80%+ of repetitive customer questions—including pricing breakdown per hand/feet design, organic henna stain safety, artist travel policies, and appointment preparation instructions. The bot gently qualifies the bride and routes her straight into the booking calendar with zero human friction.
{
"agent_identity": "Mehendi Studio Assistant",
"operating_hours": "24/7",
"knowledge_base": [
"Bridal Couture Package: ₹12,000 (Advance: ₹4,500)",
"Arabic Fusion Style: ₹5,500 (Advance: ₹2,000)",
"Organic Henna: 100% natural, stains dark in 48 hrs",
"Location: Studio Suite #4, Hazratganj, Lucknow"
],
"conversion_objective": "Route qualified queries to /book calendar"
}
Real business results delivered in production.
Factual operational impact achieved after deploying the Next.js booking engine and WhatsApp automation pipeline.
Zero manual calendar updates needed by studio management. Bookings process autonomously 24 hours a day.
Atomic slot locking eliminated human scheduling conflicts on peak wedding weekends entirely.
Every appointment slot is secured with advance payment before calendar reservation is confirmed.
Next.js 14 architecture delivers sub-second load times across Indian mobile cellular networks (Lighthouse 98+).
Barber's Salon — Multi-Chair Booking & Python FastAPI Platform
High-throughput salon appointment platform with service catalogs, stylist profile matrices, and role-based revenue analytics.
Need a booking engine, custom web application, or automated WhatsApp pipeline for your business?
Discuss your requirements directly with Ajay. No agency middlemen, no junior hand-offs, no dropped context.