AutomationMart
Home/Browse/Route and validate emailed documents with Gmail and Google Gemini
n8n

Route and validate emailed documents with Gmail and Google Gemini

n8nn8n37 modulesv1.0
GmailGemini

Quick Overview This workflow monitors Gmail for unread emails from a specific sender, classifies attached documents with Google Gemini, then extracts and validates structured data for bills of lading, invoices, and warranty claims, posts the results to an HTTP webhook endpoint, and replies to the sender with an HTML confirmation email. How it works 1. Triggers when an unread Gmail message arrives from the configured sender and downloads the email attachment. 2. Uses Google Gemini to classify the

At a glance

Route and validate emailed documents with Gmail and Google Gemini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Gemini
Modules
37
Price
Free
Version
v1.0
Route and validate emailed documents with Gmail and Google Gemini workflow diagram

About this workflow

Quick Overview This workflow monitors Gmail for unread emails from a specific sender, classifies attached documents with Google Gemini, then extracts and validates structured data for bills of lading, invoices, and warranty claims, posts the results to an HTTP webhook endpoint, and replies to the sender with an HTML confirmation email. How it works 1. Triggers when an unread Gmail message arrives from the configured sender and downloads the email attachment. 2. Uses Google Gemini to classify the attachment as a bill of lading, invoice, warranty claim, or other, while preserving the original binary file for downstream processing. 3. Routes the flow by document type and uses Google Gemini to extract the document into a structured markdown representation. 4. Uses a dedicated Google Gemini agent per document type to convert the extracted content into JSON that matches a predefined schema. 5. Runs Python validation checks on the structured data (for example, totals matching line items) and adds a validation result to the payload. 6. Posts the structured output to a configured HTTP webhook endpoint and uses a Google Gemini messaging agent to draft an HTML reply. 7. Sends the generated reply back to the original email sender via Gmail. Setup 1. Connect a Gmail OAuth2 credential and set the Gmail trigger filters (sender, unread status) and ensure attachments are enabled for download. 2. Connect a Google Gemini (PaLM) API credential and confirm the configured Gemini models are available for both extraction and the analysis/messaging agents. 3. Update the HTTP Request node URL (and any required headers/authentication) to point to your target webhook or API endpoint. 4. Review and adjust the structured output schemas and the Python validation rules to match the fields and business rules required for your bill of lading, invoice, and warranty claim formats.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Map which AI search topics each domain owns with SE Ranking and GPT

Find which AI search topics each domain owns with SE Ranking and GPT Who is this for - SEO teams wanting to understand topic-level AI search dominance across competitors - Content strategists building editorial plans around AI visibility gaps - Marketing managers benchmarking brand presence across AI search topics What this workflow does Pulls AI search prompts for your domain and up to 2 competitors, then uses GPT to cluster them i

Free

Daily AI news digest with Perplexity Pro, GPT format & Gmail delivery

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. 🧠 AI News Update Every 24 Hours (with Perplexity + GPT Formatter) Description: This workflow automatically delivers a clean, AI-curated summary of the latest AI news headlines from the past 24 hours directly to your inbox — every morning at 9 AM. For step-by-step video tutorial for this build, watch here: 🧰 How It Works: 🕘 Schedule Trigger  Runs daily at 9 AM t

Free

Insert Dynalist content from emails with a specific criteria

Every time a new email is received on Gmail containing a specific phrase in the subject, Make will automatically add the contents of that email to a document in Dynalist.

Free

Automated weekly tech stack reports with BuiltWith, GPT-4o & Gmail

Automated weekly report that summarizes technology stack changes, trends, and insights from your tracked companies. 🚀 What It Does - Compiles weekly technology updates - Highlights significant changes - Identifies emerging trends - Provides actionable insights - Delivers scheduled reports 🎯 Perfect For - CTOs and technical leaders - Sales and marketing teams - Business intelligence - Technology consultants - Market researchers ⚙️ Key Benefits ✅ Weekly digest of changes ✅ Trend analysis ✅ Compe

Free

Send the iAuditor inspection reports to Gmail

Make will watch your modified iAuditor inspections at regular intervals and send emails with attached inspection reports via Gmail.

Free

Monitor and track brand Sentiment on Facebook Groups with Bright data

Workflow documentation updated on 21 May 2025 This workflow keeps track of your brand mentions across different Facebook groups and provides an analysis of the posts as positive, negative or neutral and updates this to Googe sheets for further analysis This is useful and relevants for brands looking to keep track of what people are saying about their brands and guage the customer satisfaction or disatisfaction based on what they are talking about Who is this template for? This workflow is for

Free

Generate structured exams from PDFs with OpenAI GPT-4o and HTML to PDF

ExamForge AI Automated PDF to Structured Exam Generator (MCQ + Essay + Answer Key) Generate structured exams automatically from text-based PDF materials using AI. ExamForge AI is a production-ready n8n workflow that transforms educational content into multiple-choice and essay questions with customizable difficulty and automatic answer key generation. --- ✨ Features - 📄 Upload PDF via Webhook - ✅ File size validation (default: max 5MB) - 🧹 Automatic text cleaning - 📏 Token length

Free

Automate weekly SEO reports from Google Search Console to email

What this workflow does This n8n workflow connects to Google Search Console to fetch SEO performance data (clicks, impressions, CTR, and average position) for the last 7 days. It formats the results into a clean weekly summary and automatically sends it to your email inbox every Monday morning. Ideal for: - Website owners - Bloggers - SEO consultants who want to track site performance over time without manual reporting. --- Setup steps 1. Replace YOURSITEURL in the HTTP Request node with your v

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free