πŸ’¬ Analyze product ingredient photos with Telegram & Gemini 2.5 Flash

⚑ 377 views Β· πŸ’¬ Support Chatbots

Description

Analyze Ingredient Photos using Telegram & Gemini AI

Who’s it for

How it works / What it does

  1. Telegram Input – User sends a photo of a product label or a text list of ingredients.
  2. Photo Handling – Workflow checks if the message contains a photo.
    • If yes β†’ retrieves the file, extracts ingredients using Google Gemini AI.
    • If no β†’ handles text/greetings/off-topic queries.
  3. Caption Branching
    • With caption β†’ Gives Use / Do Not Use recommendation + reason.
    • Without caption β†’ Gives Advantages, Disadvantages, Recommended For, Not Recommended For (3 points each).
  4. Response on Telegram – Sends a friendly, structured response back to the user.

How to set up

  1. Import this workflow JSON into n8n.
  2. Create and connect a Telegram bot via BotFather β†’ paste the API token in Telegram credentials.
  3. Add Google Gemini (PaLM) API credentials inside n8n.
  4. Activate the workflow and send your first product photo via Telegram!

Requirements

  1. n8n instance (self-hosted or cloud).
  2. Telegram bot token.
  3. Google Gemini API credentials.

How to customize the workflow

πŸ”— Nodes Used

Telegram, Telegram Trigger, AI Agent, Structured Output Parser, Google Gemini Chat Model, Google Gemini

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup