Templates / Reconcile GST invoices from Gmail with GSTR-2B using Google Sheets and OpenAI

Reconcile GST invoices from Gmail with GSTR-2B using Google Sheets and OpenAI

Ready for 3.0

by Rahul Joshi ✓ · 3 views · created 2026-09-28 · 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-10-19.

What 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).

  1. Set Recon Rules (Edit Fields (Set)): sets 12 fields: companyName, companyGSTIN, accountsEmail…
  2. Parse GSTR-2B JSON (Code): runs custom JavaScript code
  3. Read Reconciliation History (Google Sheets): uses Google Sheets
  4. Upsert GSTR-2B Rows (Google Sheets): append or update
  5. Build Run Context (Code): runs custom JavaScript code
  6. Prepare Upload Run (Code): runs custom JavaScript code
  7. Search Invoice Emails (Gmail): get many
  8. Split & Skip Processed PDFs (Code): runs custom JavaScript code
  9. Read PDF Text (Extract from File): extracts data from a file (pdf)
  10. Extract Invoice Fields (OpenAI): uses OpenAI

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

Services it uses

Google SheetsGmailOpenAI

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

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…

Excerpt from Rahul Joshi'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.