The flow
Starts it 1Model 9Logic 2Service 4
The steps in the order they run, from what starts it.
- 1Google Gemini Chat ModelLm Chat Google GeminiModel
- 2Structured Output ParserOutput Parser StructuredModel
- 3Google Gemini Chat Model1Lm Chat Google GeminiModel
- 4Structured Output Parser1Output Parser StructuredModel
- 5Google Gemini Chat Model2Lm Chat Google GeminiModel
- 6Get a Message photo/textTelegram triggerStarts it
- 7Analyzes ingredients with user caption (Use/Do Not Use decision)AgentModel
- 8Analyzes ingredients without caption (detailed analysis)AgentModel
- 9Handles text messages and greetingsAgentModel
- 10Checks if message contains photoIfLogic
- 11Sends Use/Do Not Use recommendationTelegramService
- 12Sends detailed ingredient analysisTelegramService
- 13Sends conversational responsesTelegramService
- 14Retrieves photo file from TelegramTelegramService
- 15Analyzes product images using Google GeminiGoogle GeminiModel
- 16Routes based on caption presenceSwitchLogic