The flow
Starts it 3Logic 15Service 11
The steps in the order they run, from what starts it.
- 1Every 35 min (weekdays 9-4)Schedule triggerStarts it
- 2Every 40 min (weekdays 9-4)Schedule triggerStarts it
- 3Check inbox 3x dailySchedule triggerStarts it
- 4Get leadsGoogle SheetsService
- 5Get leads (follow-up)Google SheetsService
- 6Get recent inboxGmailService
- 7Pick next leadCodeLogic
- 8Decide follow-upCodeLogic
- 9Get inbox sendersCodeLogic
- 10Within daily limit?IfLogic
- 11Follow-up due?IfLogic
- 12Get leads (replies)Google SheetsService
- 13Build email promptCodeLogic
- 14Nothing to sendNo OpLogic
- 15Build follow-upCodeLogic
- 16No follow-up dueNo OpLogic
- 17Match repliersCodeLogic
- 18Write email (Claude)Http RequestService
- 19Write follow-up (Claude)Http RequestService
- 20Mark repliedGoogle SheetsService
- 21Parse emailCodeLogic
- 22Parse follow-upCodeLogic
- 23Send emailGmailService
- 24Send replyGmailService
- 25Build row updateSetLogic
- 26Mark stage + sentGoogle SheetsService
- 27Mark lead as sentGoogle SheetsService
- 28Pause after replyWaitLogic
- 29Pause after sendWaitLogic