Analyze product ingredient photos with Telegram & Gemini 2.5 Flash
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 16 nodes and runs on Telegram events (message). Along the way it connects Google Gemini Chat Model, Telegram and Google Gemini.
How it runs
Trigger: On Telegram events (message).
- Checks if message contains photo (If): checks a condition and branches into true / false
- Retrieves photo file from Telegram (Telegram): work with file
- Handles text messages and greetings (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
- Analyzes product images using Google Gemini (Google Gemini): analyze (image)
- Sends conversational responses (Telegram): uses Telegram
- Routes based on caption presence (Switch): routes items into 2 branches
- Analyzes ingredients with user caption (Use/Do Not Use decision) (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Analyzes ingredients without caption (detailed analysis) (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Sends Use/Do Not Use recommendation (Telegram): uses Telegram
- Sends detailed ingredient analysis (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram Trigger
n8n-nodes-base.telegramTrigger - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if
From the author
Analyze Ingredient Photos using Telegram & Gemini AI Who’s it for - Skincare enthusiasts who want to know if a product is safe. - Food or supplement buyers checking ingredient safety. - Parents reviewing kids’ products. - Anyone wanting quick ingredient…