Templates / Route AP invoice approvals with Google Sheets three-way match and Gmail

Route AP invoice approvals with Google Sheets three-way match and Gmail

Ready for 3.0

by AYLA BATOOL ✓ · 0 views · created 2026-11-01 · Invoice Processing, 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 workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets and Gmail.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Config — Safe Test Mode (Code): runs custom JavaScript code
  2. Read Invoice Queue (Google Sheets): uses Google Sheets
  3. Read PO Register (Google Sheets): uses Google Sheets
  4. Mark Invoice Records (Code): runs custom JavaScript code
  5. Mark PO Records (Code): runs custom JavaScript code
  6. Combine Invoice and PO Records (Merge): merges the data from its input branches
  7. Validate & Three-Way Match (Code): runs custom JavaScript code
  8. Route AP Decision (Switch): routes items into 3 branches
  9. Reserve AP Decision (Google Sheets): append
  10. Request Approval — Test Routed (Gmail): uses Gmail

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

Services it uses

Google SheetsGmail

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 (7)

From the author

Quick overview This workflow runs on a schedule (or manually) to read invoices and purchase orders from Google Sheets, validate each invoice with a three-way match against the PO register, and then log the decision and send approval/exception emails via Gmail…

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