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

Populate a Financial Dashboard From Emailed Invoices

Overview

An n8n workflow reads supplier invoices that arrive by email, pulls out supplier, amount, date and description from each PDF, and adds a row to a Google Sheet that feeds a spending dashboard.

Problem or Objective

More in Finance and Admin

AI Agents and Models

Tools and Integrations

Tools
n8n · Google Sheets
Prerequisites
An n8n instance (cloud or self-hosted), an IMAP mailbox for invoices, a Google credential for Sheets, and access to a chat model for the Information Extractor (check what your n8n setup requires).

How It Works

Set up a mailbox, or a folder in an existing one, that only receives supplier invoices. In n8n, start the workflow with the Email Trigger (IMAP) node pointed at that mailbox, with Download Attachments turned on so each PDF arrives as binary data. Pass the file to the Extract From File node using Extract From PDF, then to the Information Extractor node with one attribute each for supplier, invoice number, invoice date, net amount, tax, total, currency and a short description. Write the result to Google Sheets with Append or Update Row, matching on supplier and invoice number so a resent invoice updates its row instead of adding a second one, and set a status column to "to check". Once a week, compare new rows against the PDFs, correct any field, and change the status to "checked". Build the dashboard tab (totals per supplier and per month) from checked rows only.

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, Google Sheets.
  3. Check the prerequisitesAn n8n instance (cloud or self-hosted), an IMAP mailbox for invoices, a Google credential for Sheets, and access to a chat model for the Information Extractor (check what your n8n setup requires).
  4. Gather your detailsCollect what the prompt asks for: Date format for the sheet, Maximum words in the description, Currency to assume when none is printed, Text extracted from the PDF.
  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 invoice fields for the spending sheet

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
From the invoice text below, return these fields: supplier name, invoice number, invoice date in [Date format for the sheet], net amount, tax amount, total, currency and a description of at most [Maximum words in the description] words. Use [Currency to assume when none is printed] only if the invoice states no currency. If a field is not printed on the invoice, leave it empty instead of guessing. Set status to "to check"; a person reviews every row against the PDF before it counts on the dashboard. Invoice text: [Text extracted from the PDF]

Use this as the instruction for the Information Extractor node. Every row lands with status "to check"; review rows against the PDFs and mark them "checked" before the dashboard counts them.

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 each building block: an IMAP trigger that can download attachments, a node that extracts fields from PDF files, an Information Extractor that returns structured data from text according to attribute descriptions, and Google Sheets operations including Append or Update Row. They do not report how accurately invoices are read, and they do not cover scanned invoices without selectable text, so check those separately.

Limitations and Considerations

Extracted amounts can be wrong, so keep the status column and check rows against the original PDF before relying on the totals. The IMAP node needs mail server credentials and the Sheets node a Google credential; use a dedicated mailbox and give the workflow access only to the sheet it writes. If your invoices arrive in Gmail, check that IMAP access is allowed for that account. Check which chat model your Information Extractor node is set to use, and that provider's cost per document and data terms, before sending supplier invoices to it. 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.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)n8n.io

Related Videos

About n8n-io/n8n

About n8n-io/n8n

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

Sources

  1. Email Trigger (IMAP) | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:51 UTC

    What this source supports
    • The IMAP Email node receives emails from an IMAP email server and is a trigger node; its Download Attachments toggle controls whether attachments are downloaded, which increases processing.
  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; Extract From PDF extracts fields from PDF files.
  3. Information Extractor | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 09:24 UTC

    What this source supports
    • The Information Extractor node extracts structured information from incoming data, and its schema can be defined from attribute descriptions.
  4. Google Sheets | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 23:44 UTC

    What this source supports
    • The Google Sheets node supports Append Row, and Append or Update Row, which appends a new row or updates the current one if it already exists.
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