Product ingredient safety analyzer with Google Gemini via WhatsApp
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud and Google Gemini Chat Model.
How it runs
Trigger: On WhatsApp events (messages).
- Route By Message Type (Switch): routes items into 2 branches
- Get Image Media URL (WhatsApp Business Cloud): media url get
- Analyze Text Query (AI Agent): runs an AI agent, with model: Gemini Model (Text Branch); output parser: JSON Parser (Text)
- Download Image File (HTTP Request): calls an HTTP API
- Send Analysis of Text (WhatsApp Business Cloud): send
- Convert Image to Base (Extract from File): extracts data from a file (binary to propery)
- Extract Text via OCR (HTTP Request): calls an HTTP API (POST)
- Analyze Image Ingredients (AI Agent): runs an AI agent, with model: Gemini Model (Image Branch); output parser: JSON Parser (Image)
- Send Analysis of Image (WhatsApp Business Cloud): send
Services it uses
Other WhatsApp + Google Gemini templates (84)
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)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Product Ingredient Safety Analyzer with AI via WhatsApp What does this workflow do? This workflow creates an intelligent WhatsApp bot that analyzes product ingredients and provides instant safety assessments. Users can send either text queries (product…