Match and approve invoices with Google Sheets, Groq Llama 3.3, Notion and Gmail
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on a schedule (every day at 07:00). Along the way it connects Google Sheets, Notion, Gmail and Groq Chat Model.
How it runs
Trigger: On a schedule (every day at 07:00).
- fetch good receipt (Google Sheets): uses Google Sheets
- Fetch Purchase Order (Google Sheets): uses Google Sheets
- fetch invoice data (Google Sheets): uses Google Sheets
- Filter: Valid Pending Invoices Only (If): checks a condition and branches into true / false
- Merge & Similarity Scoring (Code): runs custom JavaScript code
- Resolve Best Match per Invoice (Code): runs custom JavaScript code
- Route: Decision Path via Match Score (Switch): routes items into 3 branches
- Prepare: Approval Metadata (Edit Fields (Set)): sets 3 fields: decision, reason, timestamp
- Prepare: Rejection Metadata (Edit Fields (Set)): sets or maps fields
- Retain Original Transaction Data (Edit Fields (Set)): sets 1 field: timestamp
…plus 15 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 (11)
- Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Notion
n8n-nodes-base.notion - Gmail
n8n-nodes-base.gmail - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - AI Agent
@n8n/n8n-nodes-langchain.agent - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow runs daily to three-way match invoices against purchase orders and goods receipts in Google Sheets, using fuzzy similarity scoring plus Groq Llama 3.3 semantic checks to approve, reject with Gmail alerts, or escalate for a…