Extract purchase orders from Gmail using Gemini AI and save to Google Sheets
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
π AI-Powered Email to Purchase Order Workflow
Automatically scan your inbox for new purchase order requests, extract order details using Gemini AI, and log them into Google Sheets β all without manual effort.
β¨ Core Capabilities
- β± Runs every minute to check unread emails
- π§ Filters emails by subject
- π€ Uses Gemini AI to summarize email content & extract structured order details
- π Formats dates into ISO calendar weeks
- π Adds product data from Google Sheets to complete order info
- β Appends final purchase order records into a Google Sheet (without replacing previous ones)
π Setup Essentials
- π© Gmail account for fetching unread emails
- π Google Gemini (PaLM) API credentials
- π Google Sheet with predefined purchase order headers
π Activation Guide
- βοΈ Configure Gmail & Google Sheets credentials in n8n
- π― Adjust the subject filter to match your email rules
- π Connect Gemini AI with your API credentials
- π Create a Google Sheet with the required headers
- βΆοΈ Activate the workflow and let it run in the background
π¨ Customizing the Workflow
- π Email Filters β Change keywords in the filter node to match your purchase order email subjects
- π· Order Fields β Modify Set and Append to Google Sheet nodes if your schema differs
- βοΈ AI Instructions β Adjust the AI Agentβs prompt to fit your companyβs email style or product details
- β² Frequency β Update the Cron node if you want to scan emails less often
- π Target Google Sheet β Point to a different sheet or tab depending on your department or customer