婚嫁珠寶諮詢時段預留:人手確認的兩階段預約模式
Holding Bridal Consultation Slots: A Two-Phase Booking Pattern With Human Confirmation
印度珠寶零售展廳可透過 WhatsApp 採用兩階段預約模式:系統先暫留婚嫁珠寶諮詢時段,再由職員確認,避免重複預約。系統暫留時段 30 分鐘;職員核對銷售員是否當值、家庭人數是否適合,以及顧客想看的系列後確認預約。自動訊息不列價格,系統亦會自動草擬附店舖位置的前一天提醒。
Bridal jewellery in India is usually bought in long, planned visits: the family comes together, often on a weekend, and expects a salesperson's full attention. Double-booking that slot is a real problem.
When I sketch AI automation for jewellery retail India showrooms booking bridal visits on WhatsApp, I use a two-phase pattern: the system holds a slot, a person confirms it.
Phase 1: hold
from datetime import datetime, timedelta
HOLD_MINUTES = 30
slots = {} # slot_id -> dict(state, phone, held_until, party)
def hold(slot_id, phone, party_size, now=None):
now = now or datetime.now()
s = slots.get(slot_id)
if s and s['state'] in ('held', 'confirmed') and (s['state'] == 'confirmed' or s['held_until'] > now):
return None # not available
slots[slot_id] = dict(state='held', phone=phone, party=party_size,
held_until=now + timedelta(minutes=HOLD_MINUTES))
return slots[slot_id]
The customer gets: "We have held Saturday 4 p.m. for you. Our team will confirm shortly."
Phase 2: confirm (a person)
def confirm(slot_id, staff_name, salesperson):
s = slots[slot_id]
if s['state'] != 'held':
raise ValueError('slot not held')
s.update(state='confirmed', confirmed_by=staff_name, salesperson=salesperson)
return s
def expire(now=None):
now = now or datetime.now()
for sid, s in slots.items():
if s['state'] == 'held' and s['held_until'] <= now:
s['state'] = 'free'
Staff confirm after checking that the right salesperson is in, that the family size fits the space, and whether the customer wants to see a particular collection.
Details that matter in jewellery
- Assign a salesperson, not just a time. Families often ask for "the same person as last time".
- Ask about the occasion and date in the hold message, so the salesperson can prepare pieces.
- Reminder the day before, drafted automatically, with the store location.
- No prices in any automated message.
Why two phases
Fully automatic booking is fine for a salon. For a high-value, emotional visit, the human confirmation is part of the service. For deciding what to build at all, see picking the first jewellery workflow to audit.
I run NxFlowAI (Mumbai). Code is illustrative.
來源:DEV Community · dev.to