← Back to library

Summarize a week of payment notices in one email

Marianna Nakos, who gets about fifteen payment alerts a week, built an n8n flow that gathers them, trims the text to fit model limits, and has an AI node email a Sunday digest with per-payment lines and weekly spend stats.

  • OutcomeReceive one email each Sunday listing every payment notice from the week with vendor, amount and date, plus totals.
  • SetupUnder an hour
  • LevelStarter
  • CreditMarianna Nakos
View original
Works with
n8nChatGPT

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • Payment notices clutter your inbox
  • You want a weekly view without a finance app
  • You use n8n

Not for: Accounting records you need exact; Shared mailboxes

What do you need, and what do you get?

You need

  • Mail label for payment notices
  • n8n with mail and model credentials

You get

  • Weekly digest email with payments and stats

How does it work, step by step?

  1. Label the noticesRoute payment emails to one label or filter.
  2. Fetch the weekPull the past seven days from that label on a schedule.
  3. Combine and trimAggregate the messages and cut to a safe length for the model.
  4. Write the digestPrompt for one line per payment and a short stats block.
  5. Email itSend to yourself every Sunday.

The prompt

The original prompt by Marianna Nakos, word for word, with a link to where it was published. Below it is our adapted version with fill-in blanks, if you want it. Works in n8n and ChatGPT. Values in lime are placeholders.

Original prompt by Marianna Nakos

Word for wordby Marianna Nakos
Hi, here's your payments digest for this week:

## Payment Summary - Week of [Date]
- [Vendor] - $[Amount] - [Date]
- [Continue for each payment]

## Weekly Stats:
- Total Spent: $[Calculate sum]
- Payment Count: [Number]
- Largest Payment: [Vendor and amount]

Thanks,
Your AI agent

Exactly as published by Marianna Nakos in N8n Tutorial: Built an AI Workflow Agent to summarize insights on labeled emails on payment notifications.

Our adapted version (optional)

Adapted prompt0 variables
Below are this week's payment notification emails. Write a digest with one line per payment: vendor, amount, currency and date. Then add totals: amount spent, number of payments and the largest payment. If an email is not a payment, skip it. If an amount is unclear, list it under needs checking. Emails: [text]

What can go wrong?

  • Too many emails at once can exceed model limits; the author truncates the combined text.
  • Check totals against your bank now and then; summaries can drop a line.

Our take

A tidy beginner workflow, and the truncation node is a practical detail many tutorials skip. Turning the prompt into a fixed template keeps the digest stable. Routing every payment notice to one label first is what keeps the flow simple; the n8n job then only has to fetch a week from one place. Marianna's truncation step guards against sending more text than the model can take, which is the failure most beginner flows hit. Keep the prompt fixed: one line per payment and a short stats block make weeks easy to compare. Treat the digest as a view, not a ledger. Summaries can drop a line, so compare the totals against your bank statement now and then, and never use the digest as an accounting record. Read-only mail access is enough for the whole job. If a vendor floods the label, unsubscribe or filter at the mail level rather than asking the model to ignore it.

Where the time goes back: A week of scattered notices becomes a two-minute read.

FAQ

Why truncate?
Aggregated emails can be too long for the model to process in one go.
What stats are included?
Total, number of payments and the largest one.

Source and credit

The original prompt on this page is by Marianna Nakos, shown word for word with a link to where it was published. The summary, notes and adapted version are ours.

Original
N8n Tutorial: Built an AI Workflow Agent to summarize insights on labeled emails on payment notifications
Creator
Marianna Nakos
Published on
mariannanakos.substack.com (Substack)
Original date
Aug 16, 2025
License
Not openly licensed; the original prompt is shown word for word with credit and a link to the original
Originally for
n8n
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Money & Admin

All 82 Money & Admin playbooks →

Related playbooks

Money & AdminWorkflow✓ AI dry run

Send a Telegram message, get a Todoist task via n8n

Text a Telegram bot from anywhere and have an n8n workflow, with an LLM step for plain-language parsing, add the item to your Todoist list.

Credit: lucw on Hacker News

Under an hour
Money & AdminWorkflow✓ AI dry run

Add a scribbled appointment slip to your calendar

Snap a handwritten appointment card or note, and have a small agent read it, add a calendar event and file any matching PDF from email into your document archive.

Credit: pimeys on Hacker News

An afternoon+
Money & AdminWorkflow✓ AI dry run

Challenge an uninsured hospital bill using Medicare rates

Turn an opaque hospital bill into a line-by-line comparison with what Medicare would pay, then negotiate from that number with a written, rule-based argument.

Credit: Matt Rosenberg

Under an hour
Money & AdminPrompt✓ AI dry run

Find out why your dashboard warning light came on

When a dashboard warning comes on, have your assistant get an inexpensive diagnostic scanner, read the fault codes with you and explain what they mean before you decide on a repair.

Credit: Brian Snyder (@bsniz)

Minutes