Templates / Route vendor invoice approvals with gpt-5.6-terra, Gmail, Google Sheets and Telegram

Route vendor invoice approvals with gpt-5.6-terra, Gmail, Google Sheets and Telegram

Ready for 3.0

by Khairul Muhtadin ✓ · 5 views · created 2026-09-03 · Invoice Processing, AI RAG

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 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Google Sheets, Gmail and Telegram.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Normalize Invoice (Edit Fields (Set)): sets 9 fields: invoice_id, vendor_name, vendor_email…
  2. Validate Invoice Input (If): checks a condition and branches into true / false
  3. AI Invoice Assistant (AI Agent): runs an AI agent, with model: AP Model; 2 tools (Vendor Master Tool, Approval Policy Tool)
  4. Alert Invalid Invoice (Telegram): uses Telegram
  5. Parse Invoice Decision (Code): runs custom JavaScript code
  6. Email Invalid Notice (Gmail): uses Gmail
  7. Route Approval Decision (Code): runs custom JavaScript code
  8. Log Invoice to Sheet (Google Sheets): append
  9. Reattach Invoice Decision (Edit Fields (Set)): sets 13 fields: invoice_id, vendor_name, vendor_email…
  10. If: checks a condition and branches into true / false

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

Services it uses

OpenAI Chat ModelGoogle SheetsGmailTelegram

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

Invoice approvals without the bottleneck. Vendor invoices arrive via webhook, AI checks them against your vendor and policy data, and each one is either auto-approved or routed to a human reviewer. Every decision logged to Sheets, everyone notified. Last…

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.