Route vendor invoice approvals with gpt-5.6-terra, Gmail, Google Sheets and Telegram
Ready for 3.0What 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.
- Normalize Invoice (Edit Fields (Set)): sets 9 fields: invoice_id, vendor_name, vendor_email…
- Validate Invoice Input (If): checks a condition and branches into true / false
- AI Invoice Assistant (AI Agent): runs an AI agent, with model: AP Model; 2 tools (Vendor Master Tool, Approval Policy Tool)
- Alert Invalid Invoice (Telegram): uses Telegram
- Parse Invoice Decision (Code): runs custom JavaScript code
- Email Invalid Notice (Gmail): uses Gmail
- Route Approval Decision (Code): runs custom JavaScript code
- Log Invoice to Sheet (Google Sheets): append
- Reattach Invoice Decision (Edit Fields (Set)): sets 13 fields: invoice_id, vendor_name, vendor_email…
- If: checks a condition and branches into true / false
…plus 4 more steps. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Telegram
n8n-nodes-base.telegram
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…