Reconcile GST invoices from Gmail with GSTR-2B using Google Sheets and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 32 nodes and runs on a schedule (cron 0 10 15 * *) (plus 1 other trigger). Along the way it connects Google Sheets, Gmail and OpenAI.
How it runs
Trigger: On a schedule (cron 0 10 15 * *) (plus 1 other trigger).
- Set Recon Rules (Edit Fields (Set)): sets 12 fields: companyName, companyGSTIN, accountsEmail…
- Parse GSTR-2B JSON (Code): runs custom JavaScript code
- Read Reconciliation History (Google Sheets): uses Google Sheets
- Upsert GSTR-2B Rows (Google Sheets): append or update
- Build Run Context (Code): runs custom JavaScript code
- Prepare Upload Run (Code): runs custom JavaScript code
- Search Invoice Emails (Gmail): get many
- Split & Skip Processed PDFs (Code): runs custom JavaScript code
- Read PDF Text (Extract from File): extracts data from a file (pdf)
- Extract Invoice Fields (OpenAI): uses OpenAI
…plus 20 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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - OpenAI
@n8n/n8n-nodes-langchain.openAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Extract from File
n8n-nodes-base.extractFromFile
From the author
Quick overview This workflow runs monthly to extract GST purchase invoice details from Gmail PDF attachments using OpenAI, reconciles them against GSTR-2B data in Google Sheets, writes a reconciliation report, emails an ITC-at-risk summary to accounts, and…