💬 Product ingredient safety analyzer with Google Gemini via WhatsApp

201 views · 💬 Support Chatbots

Description

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 names/brands) or images of product labels, and receive AI-powered analysis covering food, cosmetics, personal care, pharmaceuticals, and household products.

Who’s it for?

What do you need to get started?

Required Accounts & APIs:

Setup Steps:

  1. Configure WhatsApp Business API credentials
  2. Enable Google Document AI in your Google Cloud project
  3. Create a Document AI processor for OCR
  4. Set up Google Gemini API access
  5. Configure all credentials in N8N

How does this workflow work?

User Input Options:

Processing Flow:

For Image Messages:

  1. WhatsApp receives image message
  2. Extracts and downloads the image
  3. Converts image to Base64 format
  4. Uses Google Document AI OCR to extract text
  5. AI analyzes extracted text + user caption
  6. Returns safety assessment via WhatsApp

For Text Messages:

  1. WhatsApp receives text query
  2. AI directly analyzes product name/ingredients
  3. Returns safety assessment via WhatsApp

AI Analysis Includes:

Response Format:

The AI provides concise, WhatsApp-friendly messages with:

Use Cases

Key Features

Technical Highlights

Example Interactions

User sends image of shampoo bottle: Response: “Hair Care Product Analysis - Contains sulfates and parabens. ⚠️ USE WITH CAUTION. Consider sulfate-free alternatives for healthier hair.”

User texts “Maggi noodles”: Response: “Food Product Analysis - High sodium content, contains MSG and artificial colors. ❌ AVOID REGULAR CONSUMPTION. Occasional treat okay.”

User texts “Hi”: Response: “Hi! I’m your Product Safety Analyzer. Send me a product name or photo of ingredients to check safety!”

Benefits

Notes


🔗 Nodes Used

HTTP Request, WhatsApp Business Cloud, AI Agent, Structured Output Parser, Extract from File, WhatsApp Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup