The flow
Starts it 1Model 3Logic 12Service 13
The steps in the order they run, from what starts it.
- 1When WhatsApp Message ReceivedWhats App triggerStarts it
- 2Gemini Chat AI ModelLm Chat Google GeminiModel
- 3Parse Structured OutputOutput Parser StructuredModel
- 4Set Message DetailsSetLogic
- 5Intelligent Response AgentAgentModel
- 6Check for Message ContentIfLogic
- 7Dispatch WhatsApp ReplyWhats AppService
- 8Check If Text MessageIfLogic
- 9Free Processing LockRedisService
- 10Fetch Deduplication KeyRedisService
- 11Notify Non-Text MessageWhats AppService
- 12Check Processing StatusIfLogic
- 13Ignore Duplicate MessageNo OpLogic
- 14Record Deduplication KeyRedisService
- 15Retrieve Message BufferRedisService
- 16Integrate Message into BufferSetLogic
- 17Store Merged BufferRedisService
- 18Update Message TimestampRedisService
- 19Wait 15 Seconds to DebounceWaitLogic
- 20Verify Message TimestampRedisService
- 21Confirm Latest Message StatusIfLogic
- 22Acquire Processing LockRedisService
- 23Abort Stale ProcessNo OpLogic
- 24Check If Lock is BusyIfLogic
- 25Abort Due to Busy LockNo OpLogic
- 26Establish Processing LockRedisService
- 27Fetch Final Message BufferRedisService
- 28Assemble Combined TextSetLogic
- 29Reset Message BufferRedisService