Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Transfer Invoice Details into an Accounting Worksheet

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

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.

  1. Choose the agentSet up n8n.
  2. Connect the toolsConnect the tools this workflow relies on: n8n, Docker, Slack.
  3. 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.
  4. Gather your detailsCollect what the prompt asks for: Expense categories, Who approves rows, Spreadsheet for the year.
  5. Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
  6. 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].

Preview
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

About n8n-io/n8n

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. 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.
  2. 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.
  3. 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.
  4. 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.
Report a problem

More with n8n

Planned, not done

Support Customers Through Telegram Messages

An n8n workflow turns new customer emails and contact-form messages into tasks with draft replies, and sends each draft to the owner in Telegram with Approve and Decline buttons before anything goes out.

docs.n8n.ion8n-io/n8n
Planned, not done

Capture Restaurant Orders With a Conversational Agent

Build an n8n chat that takes a customer's food order from your menu, reads it back, and records it in a data table only after a staff member approves it in Slack.

docs.n8n.ion8n-io/n8n
Reported by source

Build a self-hosted AI agent workflow with human approval

Use n8n's visual canvas to wire an LLM agent to your apps, add tools and memory, and pause for human approval before it acts.

github.comn8n-io/n8n

View all: n8n