Extract Purchase Orders from Gmail using Gemini AI and Save to Google Sheets
Go to WorkflowDescription
π 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