The flow
Starts it 8Model 5Logic 11Service 16
The steps in the order they run, from what starts it.
- 1Incoming SMS Webhook (Twilio)WebhookStarts it
- 2Follow-Up Cron (24h)CronStarts it
- 3User Signup Webhook1WebhookStarts it
- 4Verify Code Webhook1WebhookStarts it
- 5Extract SMS Data1CodeLogic
- 6Find Inactive SessionsPostgresService
- 7Generate Verification Code1CodeLogic
- 8Extract Verification Data1CodeLogic
- 9Find User Session1PostgresService
- 10🤖 AI Personalized ReminderOpen AiModel
- 11Store VerificationPostgresService
- 12Check VerificationPostgresService
- 13🤖 AI Sentiment AnalysisOpen AiModel
- 14Send Reminder SMSHttp RequestService
- 15Send Verification SMS (Twilio API)Http RequestService
- 16Validate CodeSwitchLogic
- 17Process AI AnalysisCodeLogic
- 18Signup Response1Respond To WebhookStarts it
- 19Create SessionCodeLogic
- 20Verify Failed ResponseRespond To WebhookStarts it
- 21🤖 AI Escalation RouterSwitchLogic
- 22Mark VerifiedPostgresService
- 23Insert SessionPostgresService
- 24Prepare Escalation Data1CodeLogic
- 25🤖 AI Intent RouterSwitchLogic
- 26Verify Success ResponseRespond To WebhookStarts it
- 27Mark Session EscalatedPostgresService
- 28🤖 AI Intake EnrichmentOpen AiModel
- 29Prepare CloseoutCodeLogic
- 30Send Escalation EmailGmailService
- 31Merge Enriched DataCodeLogic
- 32Finalize SessionPostgresService
- 33Upload to S3Aws S3Service
- 34Send Escalation SMS1Http RequestService
- 35Save Enriched Intake1PostgresService
- 36🤖 AI Personalized CloseoutOpen AiModel
- 37SMS Webhook ResponseRespond To WebhookStarts it
- 38🤖 AI Response GeneratorOpen AiModel
- 39Send Closeout SMSHttp RequestService
- 40Send AI Response SMSHttp RequestService