Skip to content
Get Friday PicksSubmit

Invoice Processor & Validator with OCR, AI & Google Sheets

Free n8n template by Dhrumil Patel. Connects Google Sheets, OpenRouter; import it and run it.

In short: Free n8n template by Dhrumil Patel. Connects Google Sheets, OpenRouter; import it and run it. It is for n8n users who want a ready-made work & operations workflow they can copy and run.

Checked on · Added

Works with

Agent / toolAccess / costLink
n8nFree self-hosted / paid cloudn8n.io
n8n templateTemplate is free. Self-hosted n8n is free; AI and API calls (OpenAI, Gemini etc.) are billed by those providers.n8n.io

What they did

Dhrumil Patel published this as a ready-made n8n workflow. It chains these steps: AI Agent, Code, Google Sheets, OpenRouter Chat Model. You import it, connect your accounts and it runs on a trigger or schedule.

How it went

Live on the official n8n template library, free to use, 13,688 views so far. Checked 2026-10-15.

How the workflow works

Good for: Small finance or operations teams who receive supplier invoices as PDFs and want each line checked against their own price list, so overcharges and wrong item names stand out in a sheet.

  1. You start it by hand. It reads one invoice PDF from a fixed path on the machine running n8n (the file still has the author's own Windows path, so change it) and extracts the text layer from the PDF. There is no image OCR step, so scanned invoices without a text layer will come out empty.
  2. An AI agent running DeepSeek V3 through OpenRouter turns the raw text into JSON: invoice number, PO details and every line item with code, quantity, unit price and tax rates. A code step strips stray formatting and parses it; if parsing fails, the text is sent back to the AI for another try.
  3. Each line item becomes its own row with a unique key (invoice number plus line number) and is added to a Google Sheet.
  4. It then loads your master sheet of items and agreed costs and compares each line with a fuzzy name match (edit distance), so small spelling differences still match.
  5. Each row gets a result: the matched cost, the price difference, the total gain or loss for that line and a mismatch note, so you can spot billing errors at a glance.

What you need: An n8n install that can read files from its own disk (self-hosted; n8n Cloud cannot reach your local folders), an OpenRouter key, and Google Sheets with two tabs: one for extracted lines and a master list of items and costs. The sheet ids and column names in the file are the author's (including Indian GST columns and ₹ amounts), so point them at your own sheet and rename columns to match. It handles one PDF per run; add a folder or email trigger for batches.

Summarised in our own words from the template's page in the official n8n library.

Step by step

  1. Open the template on n8n.io and click "Use for free" (or copy the workflow JSON).
  2. Import it into your n8n. Self-hosted n8n is free; n8n Cloud is paid.
  3. Connect the accounts it needs: Google Sheets, OpenRouter.
  4. Run it once with test data and check every node's output.
  5. Turn it on (activate) and review the first real results before trusting it fully.

Watch out for

Templates call paid APIs with your own keys. Set usage limits first and keep a human check before anything is posted or sent.

Common questions

What is this n8n use case?

Free n8n template by Dhrumil Patel. Connects Google Sheets, OpenRouter; import it and run it. Dhrumil Patel published this as a ready-made n8n workflow. It chains these steps: AI Agent, Code, Google Sheets, OpenRouter Chat Model. You import it, connect your accounts and it runs on a trigger or schedule.

How did it go?

Live on the official n8n template library, free to use, 13,688 views so far. Checked 2026-10-15.

What do I need to try it?

n8n. Cost: Template is free. Self-hosted n8n is free; AI and API calls (OpenAI, Gemini etc.) are billed by those providers. Then follow the 5 steps on this page.

Sources & credit

All credit to the original authors. We rewrite in our own words and link back. Something wrong? Report it.

Related skills and use cases in Work & Operations

See all Work & Operations entries →

Related

Automated PDF Invoice Processing & Approval Flow using OpenAI and Google Sheets thumbnailAGENT USE CASE

Automated PDF Invoice Processing & Approval Flow using OpenAI and Google Sheets

Free n8n template by Billy Christi. Connects Gmail, Google Drive, Google Sheets, OpenAI; import it and run it.

n8n logon8n
Extract Invoice Data from Google Drive to Sheets with Mistral OCR and Gemini thumbnailAGENT USE CASE

Extract Invoice Data from Google Drive to Sheets with Mistral OCR and Gemini

Free n8n template by Ysqander. Connects Google Drive, Google Gemini, Google Sheets; import it and run it.

n8n logon8n
Parse Gmail Inbox and Transform into Todoist tasks with Solve Propositions thumbnailAGENT USE CASE

Parse Gmail Inbox and Transform into Todoist tasks with Solve Propositions

Free n8n template by Łukasz. Connects Gmail, OpenAI, Todoist; import it and run it.

n8n logon8n
Update Hubspot engagement by parsing inbox mail with AI thumbnailAGENT USE CASE

Update Hubspot engagement by parsing inbox mail with AI

Free n8n template by PollupAI. Connects HubSpot, OpenAI; import it and run it.

n8n logon8n
PPT Master: documents into editable PowerPoint decks thumbnailSKILL

PPT Master: documents into editable PowerPoint decks

Give your agent a PDF, Word file, web page or just a topic and it builds a real .pptx you can keep editing in PowerPoint: native shapes, charts backed by data, tables, speaker notes and transitions, not flat pictures of slides.

Claude Code logoCodex logoCursor logoClaude Code +2★ 65.9k
AI Job Search: a job hunt run by Claude Code thumbnailSKILL

AI Job Search: a job hunt run by Claude Code

Fill in your profile once, then let Claude Code search job boards, score each posting against you, and write a tailored CV and cover letter that a second agent reviews.

Claude Code logoCodex logoClaude Code +1★ 63.8k

Free newsletter

Friday Picks

New AI tools you can use right away, in plain words. Every Friday.

Free. No spam. Unsubscribe anytime.