The flow
Starts it 5Model 4Logic 5Service 8
The steps in the order they run, from what starts it.
- 1Webhook Trigger (WhatsApp Input)WebhookStarts it
- 2LLM: GPT-4o Chat ModelLm Chat Open AiModel
- 3AI Conversation MemoryMemory Buffer WindowModel
- 4Create New Prospect in Google SheetGoogle Sheets ToolService
- 5Update Prospect with Booking DetailsGoogle Sheets ToolService
- 6Fetch Available Time SlotsTool Http RequestModel
- 7Trigger: Check Appointments Every HourSchedule triggerStarts it
- 8Switch: Confirm vs Chat FlowSwitchLogic
- 9AI Booking Assistant (Dr Firas)AgentModel
- 10Read Upcoming Appointments from SheetGoogle SheetsService
- 11Retrieve Prospect DetailsGoogle SheetsService
- 12Send Response to WhatsAppRespond To WebhookStarts it
- 13Filter Appointments Within Next 2 HoursCodeLogic
- 14Normalize Booking Time (UTC Format)CodeLogic
- 15Send SMS ReminderSms77Service
- 16Send BookingHttp RequestService
- 17Mark SMS as Sent in SheetGoogle SheetsService
- 18Format Date for Readability (Display)CodeLogic
- 19Check Booking Status (Success or Error)SwitchLogic
- 20Webhook Response: Booking ConfirmedRespond To WebhookStarts it
- 21Webhook Response: Booking FailedRespond To WebhookStarts it
- 22Mark Booking as Confirmed in SheetGoogle SheetsService