Templates / Extract purchase orders from Gmail using Gemini AI and save to Google Sheets

Extract purchase orders from Gmail using Gemini AI and save to Google Sheets

Needs changes

by SayOne Technologies ✓ · 1,022 views · created 2025-09-15 · Document Extraction, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Cron. 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs on a schedule (legacy Cron node). Along the way it connects Gmail, Google Gemini Chat Model and Google Sheets.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Get many messages (Gmail): get many
  2. Filter: keeps only the items that match a condition
  3. If: checks a condition and branches into true / false
  4. Set final output keys (Edit Fields (Set)): sets 1 field: final_json_keys
  5. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Get row(s) in sheet in Google Sheets)
  6. Reformatted to upload in Google sheet (Code): runs custom JavaScript code
  7. Append row in sheet (Google Sheets): append

Services it uses

GmailGoogle Gemini Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Cron: replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Cron
Cron
Schedule Trigger

Nodes used (10)

From the author

🚀 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…

Excerpt from SayOne Technologies's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.