The flow
Starts it 1Model 3Logic 12Service 14
The steps in the order they run, from what starts it.
- 1Receive A WhatsApp MessageWhats App triggerStarts it
- 2OpenAI Chat ModelLm Chat Open AiModel
- 3Classification FormatOutput Parser StructuredModel
- 4SettingsSetLogic
- 5Classify The Message IntentAgentModel
- 6Normalise The Incoming MessageCodeLogic
- 7Shape The ClassificationSetLogic
- 8Route By IntentSwitchLogic
- 9Read The Diary For The Requested WindowGoogle CalendarService
- 10Look Up The Existing Booking By PhoneData TableService
- 11Prepare The Owner AlertCodeLogic
- 12Work Out The Nearest Free SlotCodeLogic
- 13Do We Have A Booking On File?IfLogic
- 14Notify The Owner In SlackSlackService
- 15Re-check The Exact Slot Right Before BookingGoogle CalendarService
- 16Is This A Reschedule Or A Cancel?IfLogic
- 17Is The Slot Still Free?IfLogic
- 18Move The Booking To The New TimeGoogle CalendarService
- 19Delete The Booking From Google CalendarGoogle CalendarService
- 20Check For An Existing Booking For This SlotData TableService
- 21Apologise And Offer The Next SlotWhats AppService
- 22Confirm The Change To The CustomerWhats AppService
- 23Does This Booking Already Exist?IfLogic
- 24Confirm The Booking To The CustomerWhats AppService
- 25Create The Booking In Google CalendarGoogle CalendarService
- 26Should We Send An Automatic Reminder?IfLogic
- 27Read The Booking Back To Confirm It ExistsGoogle CalendarService
- 28Wait Until It Is Time To Remind ThemWaitLogic
- 29Save The Booking As Idempotency RecordData TableService
- 30Send The Reminder On WhatsAppWhats AppService