Overview
A self-hosted n8n workflow reads invoice and receipt PDFs, has an AI Agent node pull out the accounting fields, asks you to approve each row in Slack, and only then adds it to your yearly spreadsheet.
Problem or Objective
- Which agents file, tag and organise receipts, bills and expenses?
- Which agents help with taxes and personal finances?
More in Finance and Admin
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Docker · Slack
- Prerequisites
- A server for self-hosted n8n with Docker, a chat model API key, a Slack app for approvals, and a spreadsheet tool n8n can write to.
How It Works
Self-host n8n with Docker and a persistent data volume. Drop invoice and receipt PDFs into one folder or send them to the workflow, and keep the originals. Use the Extract From File node to get each PDF's text, then an AI Agent node with a chat model that returns fixed fields: supplier, invoice number, date, net amount, tax amount, total, currency and category, leaving a field empty when it is not on the document. Have the workflow check the invoice number against rows already in the sheet to catch duplicates. Send each extracted row to Slack with Send and Wait for Response, and only after you approve does the workflow add the row to the spreadsheet; check which spreadsheet node fits your tool.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, Docker, Slack.
- Check the prerequisitesA server for self-hosted n8n with Docker, a chat model API key, a Slack app for approvals, and a spreadsheet tool n8n can write to.
- Gather your detailsCollect what the prompt asks for: Expense categories, Who approves rows, Spreadsheet for the year.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Extract accounting fields from an invoice
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
From the document text below, return these fields as JSON: supplier, invoice_number, invoice_date (YYYY-MM-DD), net_amount, tax_amount, total, currency, and category chosen from [Expense categories]. Use only values printed on the document; leave a field empty if it is missing or unclear, and never calculate a value that is not shown. Add a field "check" listing anything that looks inconsistent, such as a total that does not equal net plus tax. The row will be sent to [Who approves rows] for approval before it is added to [Spreadsheet for the year].Approve each row in Slack only after comparing it with the original PDF. Rejected rows stay out of the sheet.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n docs describe self-hosting with Docker, an Extract From File node that turns PDFs into data, an AI Agent node that works with a chat model, and a Slack operation that sends a message and waits for a response before continuing. They do not cover your spreadsheet tool, and nothing reports how accurately fields are read.
Limitations and Considerations
n8n recommends self-hosting for expert users, so weigh n8n Cloud if you are not comfortable running a server. Scanned receipts that are only images may give no text, so check whether you need a text recognition step. Check dates, tax amounts and duplicate supplier invoice numbers before approving, and keep every original for your records and your accountant. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Install with Docker | Deploy | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- n8n recommends using Docker for most self-hosting needs.
- n8n recommends self-hosting for expert users.
- Extract From File | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 04:17 UTC
What this source supports
- The Extract From File node extracts data from a binary format file and converts it to JSON, which can then be easily manipulated by the rest of your workflow.
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.
- Slack | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 04:14 UTC
What this source supports
- Send and Wait for Response: Send a message and wait for a response from the recipient before continuing; approvers can also respond directly inside Slack.

