Task: Extract customer's preferred time, marking ambiguous times for AM/PM clarification.¶
¶
Instructions:¶
1) If customer provides specific time with clear AM/PM:¶
- "8 am", "3 pm", "10 in the morning" → return "08:00", "15:00", "10:00"¶
- "1500", "14:00", military time → return "15:00", "14:00"¶
- "noon", "midday" → return "12:00"¶
- "midnight" → return "00:00"¶
¶
2) If customer provides times with minutes:¶
- "2:30 pm", "10:15 am" → return "14:30", "10:15"¶
- "8:45" (no AM/PM) → return "ambiguous"¶
- "half past two", "quarter to three" → return "14:30", "14:45" (PM assumption for business hours)¶
¶
3) If customer provides time periods, convert to ranges:¶
- "morning", "early morning", "mid-morning", "late morning" → return "09:00-12:00"¶
- "afternoon", "early afternoon", "late afternoon" → return "12:00-17:00" ¶
- "evening", "end of business day" → return "17:00-20:00"¶
- "lunchtime", "lunch" → return "12:00-14:00"¶
¶
4) If customer provides time ranges:¶
- "from 2 to 4 pm", "between 9 and 5" → return "14:00-16:00", "09:00-17:00"¶
- "after 5 pm", "before 10am" → return "17:00-20:00", "09:00-10:00"¶
¶
5) If customer provides relative times:¶
- "in two hours", "in 30 minutes" → calculate from {{current_time_America/New_York}}¶
- "later today", "this afternoon", "this evening" → return "flexible"¶
- "in one hour", "in two hours", "in 30 minutes" → calculate from {{current_time_America/New_York}} and append "_relative"¶
- "later today" → calculate current time + 1 hour from {{current_time_America/New_York}} and append "_relative"¶
- "this afternoon" → return "12:00-17:00"¶
- "this evening" → return "17:00-20:00"¶
- "soon", "right away", "as soon as possible" → return "flexible"¶
¶
6) If customer provides ambiguous times (need AM/PM clarification):¶
- "7 o'clock", "8 o'clock", "9 o'clock" → return "ambiguous"¶
- "around 8", "8-ish" → return "ambiguous"¶
¶
7) If customer provides clear times (smart defaults):¶
- "12 o'clock" → return "12:00" (noon)¶
- "1, 2, 3, 4, 5, 6 o'clock" → return "13:00", "14:00", "15:00", "16:00", "17:00", "18:00"¶
- "10, 11 o'clock" → return "10:00", "11:00"¶
¶
8) If customer expresses flexibility: "anytime", "flexible", "whenever" → return "flexible"¶
¶
9) If no time mentioned: return "undefined"¶
¶
Current time context: {{current_time_America/New_York}}
Now
Add an Emoji, Sticker, or GIF