๐ 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