Overview
Once a week an n8n workflow collects the payment notification emails you have labelled in Gmail, has an AI Agent node list who paid or charged what, and emails the summary only to you.
Problem or Objective
- Which agents file, tag and organise receipts, bills and expenses?
- Which agents sort email, draft replies and clear the backlog for you?
More in Finance and Admin
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Gmail
- Prerequisites
- An n8n instance, a Gmail account connected to n8n, a Gmail filter that labels payment notices, and a chat model API key.
How It Works
In Gmail, set up a filter that adds one label, for example Payments, to notices from your bank, card and payment apps. In n8n, start a workflow with a Schedule Trigger once a week. Add a Gmail node with Get Many, filtered to that label and to messages received after the last run, and turn Simplify off so the message body comes through. Pass the messages to an AI Agent node with a chat model and ask for one line per notice: date, sender, amount, currency and whether money came in or went out, plus a short list of anything unusual. Send the result with the Gmail node to your own address only. Check totals against your bank or payment provider before using them.
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, Gmail.
- Check the prerequisitesAn n8n instance, a Gmail account connected to n8n, a Gmail filter that labels payment notices, and a chat model API key.
- Gather your detailsCollect what the prompt asks for: Whose payments these are, Amount that counts as unusual, Senders you expect, Your email address.
- 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: Summarize this week's payment emails
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Below are this week's payment notification emails for [Whose payments these are]. For each one, write a line with date, sender, amount, currency, and "in" or "out". Use only amounts printed in the email; if an amount is unclear, write "unclear". Then give totals in and out per currency, and list anything unusual, such as a charge over [Amount that counts as unusual] or a sender not in [Senders you expect]. Format it as a short email to [Your email address]. Do not send anything to anyone else and do not suggest paying anything.The digest goes only to your own address. Check totals against your bank or payment provider before acting on 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 a Schedule Trigger that runs at fixed times, Gmail operations that get messages filtered by label and received date and send messages, and an AI Agent node that works with a chat model. They do not cover how each bank formats its notices, so the extracted amounts are unverified, and a digest built from emails is not a ledger.
Limitations and Considerations
Payment emails hold financial details; check where your model provider processes them and keep the n8n Gmail credential to the narrowest access that works. A scheduled workflow runs only after you save and publish it. Phishing emails can look like payment notices, so the digest should never be used to trigger a payment. Compare the weekly totals with your statements. 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
- Schedule Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- Use the Schedule Trigger node to run workflows at fixed intervals and times.
- If a workflow uses the Schedule node as a trigger, make sure that you save and publish the workflow.
- Message Operations | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 04:19 UTC
What this source supports
- Use the Message operations to send, reply to, delete, mark read or unread, add a label to, remove a label from, or get a message or get a list of messages in Gmail.
- For Get Many, Label Names or IDs only returns messages with the selected labels added to them, and Received After returns only those emails received after the specified date and time.
- Simplify: Choose whether to return a simplified version of the response (turned on) or the raw data (turned off).
- 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.

