Invoices, documents and PDFs

Email receipt, payment notice and expense line-item workflow

Short answer

This n8n workflow runs two Gmail triggers to collect both supplier receipts and bank payment notifications. Document extraction and structured language-model chains capture vendor, date, category and line items, then split multi-item receipts into individual rows. Built-in node error flags protect extraction before clean rows land in Google Sheets.

Catalogue ID
#1443
Functional nodes
21
Connections
21
Trigger
gmailTrigger
AI layer
AI-assisted
Business problem solved

Business problem solved

Company expenses arrive across card notifications, bank emails and attached receipts. Sorting hundreds of emails at month-end by hand delays reporting, while lumping multi-line receipts into single rows hides true category spend.

Trigger

Two dedicated Gmail triggers watch receipt emails and bank payment notices through separate intake branches.

Connected systems

Connected systems

  • Gmail
  • Google Sheets
  • Google Gemini
  • Groq language model
  • Structured output parser
  • Self-hosted n8n

Every workflow is deployed on your own server with documentation, a run log and an error queue.

Workflow steps

Workflow steps

  1. 01

    Dual-channel expense intake

    One Gmail trigger collects invoice and receipt attachments while the second listens for bank payment confirmations.

  2. 02

    File reading and structured parsing

    Attachments and email bodies are extracted and parsed into consistent vendor, date, category and amount fields.

  3. 03

    Multi-line expense splitting

    The Split Out step separates multi-item documents into individual expense lines for accurate ledger tracking.

  4. 04

    Expense ledger write

    Structured expense rows are appended to Google Sheets following your finance column layout.

Error queue and human approval

Error queue and human approval

Built-in state in the catalogue workflow

The verified catalogue workflow carries two built-in node error flags on the invoice extraction and payment extraction steps.

Production layer added by ALTAI

During live deployment, ALTAI connects both built-in error branches to a central error queue, locks category lists to your chart of accounts and adds approval gates for high-value expenses.

Frequently asked

Email receipt and expense extraction workflow Frequently asked questions

Supplier receipts and bank payment notices follow different formats. Separate triggers let each branch parse its own structure cleanly.

If a single corrupted PDF or unexpected bank email fails extraction, the built-in error path isolates that item instead of halting the rest of the batch.

Yes. Allowed category values are locked inside the structured schema to mirror your accounting codes.

No. The catalogue build demonstrates Gemini and Groq; on your server we standardise on one approved cloud or local model.

Mert Can Gundogdu
The founder takes the call, not a sales team
Next step

We write the proposal after we have found the problem together

In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.

30 minutes · no preparation needed

The call and the week of discovery are both free.Read the terms

Chat on WhatsApp