Templates / Draft weekly purchase orders from stock and sales with OpenAI and Gmail

Draft weekly purchase orders from stock and sales with OpenAI and Gmail

Ready for 3.0

by Yuji ✓ · 0 views · created 2026-11-12 · CRM, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 26 nodes and runs on a schedule (every week at 09:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (every week at 09:00) (plus 1 other trigger).

  1. Set Reorder Settings (Edit Fields (Set)): sets 4 fields: buyer_email, company_name, safety_days…
  2. Sample Stock (Edit Fields (Set)): sets 1 field: rows
  3. Sample Sales (Edit Fields (Set)): sets 1 field: rows
  4. Load Stock (Data table): get (row)
  5. Split Stock (Split Out): splits a list into separate items
  6. Split Sales (Split Out): splits a list into separate items
  7. Combine Stock (Aggregate): combines items into one
  8. Insert Stock (Data table): insert (row)
  9. Insert Sales (Data table): insert (row)
  10. Load Sales (Data table): get (row)

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

Services it uses

OpenAI Chat ModelGmail

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

Quick overview This workflow runs every Monday morning to calculate weekly reorder quantities from n8n Data Tables stock and 28‑day sales, uses OpenAI to generate and verify Japanese purchase reasons, emails the plan for Gmail approval, and creates…

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