Templates / Validate wholesale order emails against a Google Sheets price list with Gmail and GPT-4o

Validate wholesale order emails against a Google Sheets price list with Gmail and GPT-4o

Ready for 3.0

by Khairul Muhtadin ✓ · 1 views · created 2026-09-15 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 27 nodes and runs on a schedule (cron 0 8 * * 1) (plus 1 other trigger). Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Telegram.

How it runs

Trigger: On a schedule (cron 0 8 * * 1) (plus 1 other trigger).

  1. Read Orders This Week (Google Sheets): uses Google Sheets
  2. Normalize Order Email (Edit Fields (Set)): sets 7 fields: email_id, thread_id, from_email…
  3. Summarise Order Week (Code): runs custom JavaScript code
  4. Has Order Details (If): checks a condition and branches into true / false
  5. AI Write Digest Summary (AI Agent): runs an AI agent, with model: Digest Model
  6. AI Extract Order Lines (AI Agent): runs an AI agent, with model: Order Extraction Model
  7. Log Unparsable Order Email (Google Sheets): append
  8. Format Digest Email (Code): runs custom JavaScript code
  9. Parse Extracted Order (Code): runs custom JavaScript code
  10. Alert Desk About Unparsable Email (Telegram): uses Telegram

…plus 13 more steps. See the full node list below.

Services it uses

GmailOpenAI Chat ModelGoogle SheetsTelegram

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick Overview This workflow monitors Gmail for unread wholesale order emails, uses OpenAI to extract order line items, validates them against a Google Sheets price list, and then sends either a confirmation or a revision request by email while logging the…

Excerpt from Khairul Muhtadin'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.