Receipts are the paperwork nobody files on the day. They arrive by email one at a time, sit in the inbox until the end of the quarter, and then someone has to open forty of them and type the totals into a spreadsheet. I'd build this for anyone who freelances or runs a small business on their own, because they are almost always the person doing that typing, and it usually happens on an evening they had other plans for.

This workflow does the filing every Monday morning. It reads the receipt emails you received in the last seven days and asks a small OpenAI model to pull out five things from each: who you paid, when, how much, in which currency, and what kind of spending it was. Each clean receipt becomes a row in a Google Sheet. You then get one email with the week's totals, grouped by currency and category, and a short list of anything it could not read with confidence, such as an order confirmation whose total sits in an attached PDF. Those never reach the sheet, so the numbers in it stay ones you can trust.

By a rough estimate, typing up a receipt takes a minute or two once you have found it, so twenty receipts a month cost half an hour of typing and as much again of searching. The workflow gets through a week of them in a few seconds. [Dev: one line on how you file receipts today, or delete]

It asks more of you than the earlier tutorials in this series. The flow splits into two branches, the AI fills fixed fields instead of writing prose, and the build plans for failure: a receipt the model cannot read is reported to you rather than stopping the run. There are eight main nodes plus the AI model, and you should allow 45 to 60 minutes.

What you need

  • n8n, either n8n Cloud or the free self-hosted Community Edition. As of 3 December 2026 the Starter cloud plan is listed at €20 a month billed annually, with 2,500 workflow executions a month. A weekly run uses four or five executions a month.

  • An OpenAI API account with billing set up. We use gpt-5.4-mini, which OpenAI lists at $0.75 per million input tokens and $4.50 per million output tokens as of 3 December 2026. A token is a chunk of text, about three-quarters of an English word. In our test each email used roughly 600 input tokens and up to 70 output tokens, which works out at well under a tenth of a US cent per receipt.

  • A Gmail account with a label called receipts. The easiest way to fill it is a Gmail filter that labels mail from the shops and services you buy from, though you can also drag receipts into the label by hand.

  • A Google Sheet with a tab named Expenses and these six headings in row 1, spelled exactly like this: Date, Vendor, Amount, Currency, Category, Email subject.

  • Three credentials in n8n: Gmail, Google Sheets and OpenAI. A credential is a saved, encrypted login that every workflow can reuse. The two Google ones open a sign-in window; the OpenAI one takes your API key.

The flow at a glance

Each step in an n8n workflow is called a node, and the data passing between nodes comes in items. Here one item means one email, so five receipts become five items travelling through the workflow side by side.

n8n canvas: schedule, Gmail, AI extractor, Code check, Google Sheets append and Gmail summary

Illustration of the n8n canvas, drawn from the built and tested workflow.

The picture shows the six main steps. In words: a schedule starts the run on Monday at 8am and a Gmail node fetches last week's receipt emails. An Information Extractor, the AI step, turns each email into tidy fields. A Code node checks every result and marks it as logged, to check, or skipped. From there the flow splits in two. On one branch a Filter lets only the logged receipts through to Google Sheets. On the other, a second Code node adds everything up and a Gmail node emails you the summary. The Filter and the summary Code node are the two smaller steps the picture leaves out.

Build it step by step

Start a blank workflow and give it a plain name that says what it does; ours is Log receipt emails to Google Sheets with AI and email me weekly totals. Then add the nodes in this order.

Step 1: Every Monday at 8am (Schedule Trigger)

A trigger is the node that starts a workflow, and this one starts it on a timer. Add a Schedule Trigger, rename it, and set:

  • Trigger Interval: Weeks

  • Weeks Between Triggers: 1

  • Trigger on Weekdays: Monday

  • Trigger at Hour: 8am

  • Trigger at Minute: 0

n8n reads the hour in the workflow's time zone, which you can check under the workflow's Settings. If yours is set to UTC, your Monday summary may arrive on Sunday evening.

Step 2: Get receipt emails from last week (Gmail)

Add a Gmail node and choose your Gmail credential. Then set:

  • Resource: Message

  • Operation: Get Many

  • Return All: off, with Limit 50

  • Simplify: off

  • Filters > Search: label:receipts newer_than:7d

  • Filters > Read Status: Unread and read emails

The search box takes the same words as the search bar in Gmail. Google's list of search operators explains both of ours: label:receipts keeps only the labelled emails and newer_than:7d keeps only those from the last seven days. Read Status matters because the node's default is unread mail only, and you have probably opened most of your receipts already.

Simplify needs switching off, and it is easy to miss. With Simplify on, Gmail returns a trimmed-down message made of headers and a short snippet, and a snippet often stops before the total. With it off, each item carries the full body in a field called text, which the next step reads.

Step 3: Pull out receipt details with AI (Information Extractor)

The Information Extractor sends text to a language model and gets back named fields of fixed types, a number for the amount and true or false for a yes-or-no question, instead of a paragraph. Add one and set Text to this expression (an expression is a small piece of code inside double curly brackets that n8n fills in for each item):

From: {{ $json.from?.text ?? "" }}
Subject: {{ $json.subject ?? "" }}
Received: {{ $json.date ?? "" }}

{{ ($json.text ?? "").slice(0, 4000) }}

The first three lines give the model the sender, subject and date, which often name the shop when the body does not. The last line sends the body, cut to 4,000 characters so a long marketing email cannot run up the bill. The ?? "" parts stand in an empty string when a field is missing, so a strange email cannot break the expression.

Set Schema Type to From Attribute Descriptions and add seven attributes:

  • is_receipt (Boolean, required): true if this email is about something you bought: a receipt, a paid invoice or an order confirmation. false for newsletters and adverts

  • total_in_email (Boolean, required): true only if the final amount paid is written in the email text itself, not only in an attachment

  • vendor (String): The business that was paid, short name only

  • purchase_date (String): Date of the purchase as YYYY-MM-DD

  • amount (Number): Final total paid including tax, as a plain number with no currency symbol

  • currency (String): Three-letter currency code such as AUD, USD, GBP or EUR

  • category (String): One of: Software (apps, hosting, subscriptions), Travel, Meals, Office, Advertising, Other

The descriptions do more work than they appear to, because the model reads them as instructions. Each one was rewritten after a test run, as the problems section below explains.

Under Options, add a System Prompt Template:

You read emails and extract receipt details. Only use facts written in the email. If a value is missing, leave it out rather than guessing.

and set Batch Processing > Batch Size to 5, so the node sends up to five emails to OpenAI at once. Then open the node's Settings tab and set On Error to Continue. With that setting, if OpenAI times out on one email, that item carries on with an error field instead of stopping the whole run, and the next step reports it to you.

Step 3a: OpenAI small model (OpenAI Chat Model)

Click the Model connector under the extractor and add an OpenAI Chat Model:

  • Credential to connect with: your OpenAI account

  • Model: gpt-5.4-mini

  • Use Responses API: off

  • Options > Sampling Temperature: 0

A temperature of 0 makes the model as consistent as it can be, which you want when the job is copying numbers. Turning off the Responses API fixed a real fault in our first test, described below.

Step 4: Check each receipt (Code)

A Code node runs a little JavaScript. This one never trusts the AI's answer blindly: it decides what happens to each email and tidies the fields for the sheet. Add a Code node, set Mode to Run Once for Each Item and Language to JavaScript, and paste:

const email = $('Get receipt emails from last week').item.json;
const r = $json.output || {};
const amount = Number(r.amount);
let status = 'logged';
let problem = '';
if ($json.error) { status = 'check'; problem = 'the AI step failed'; }
else if (r.is_receipt === false) { status = 'not_receipt'; problem = 'not a receipt'; }
else if (r.total_in_email === false) { status = 'check'; problem = 'total not in the email, see the attachment'; }
else if (!r.vendor) { status = 'check'; problem = 'no vendor found'; }
else if (!Number.isFinite(amount) || amount <= 0) { status = 'check'; problem = 'no total found'; }
return {
  json: {
    date: r.purchase_date || String(email.date || '').slice(0, 10),
    vendor: r.vendor || '',
    amount: Number.isFinite(amount) ? Math.round(amount * 100) / 100 : 0,
    currency: String(r.currency || '').toUpperCase(),
    category: r.category || 'Other',
    email_subject: email.subject || '',
    status: status,
    problem: problem
  }
};

Line by line: the first line reaches back to the Gmail node by name to fetch the original email, because by now the item only holds the AI's answer. r is that answer, and Number(r.amount) turns the amount into a real number. Every item starts as logged, and the chain of if lines then demotes it. An AI failure, a missing vendor or a missing or zero total all become check, with a reason in plain words; a newsletter becomes not_receipt. The return block builds the clean item. When the model gives no purchase date it falls back to the date the email arrived, and it rounds the amount to two decimals and puts the currency in capitals so the sheet stays consistent.

I'd keep this checking in code rather than ask the model to do it, because a rule in JavaScript behaves the same way every Monday and a prompt does not.

Step 5: Keep receipts that were read (Filter)

Connect a Filter node to the Code node. It keeps the items that match a condition and quietly drops the rest. Add one condition:

  • Value 1: {{ $json.status }}

  • Operation: String, is equal to

  • Value 2: logged

Step 6: Add to expense log (Google Sheets)

Connect a Google Sheets node to the Filter. The Append Row operation adds each item as a new row under your headings.

  • Resource: Sheet Within Document. Operation: Append Row

  • Document: By ID, YOUR_SHEET_ID (the long code in the sheet's web address, between /d/ and /edit), or pick it From list

  • Sheet: By Name, Expenses

  • Mapping Column Mode: Map Each Column Manually

  • Values to Send: Date {{ $json.date }}, Vendor {{ $json.vendor }}, Amount {{ $json.amount }}, Currency {{ $json.currency }}, Category {{ $json.category }}, Email subject {{ $json.email_subject }}

  • Options > Cell Format: Let Google Sheets format

  • Settings tab: On Error Continue

Letting Google Sheets format the cells means the amounts arrive as numbers you can add up and the dates as dates you can sort. On Error Continue means a hiccup at Google still lets the summary email go out.

Step 7: Build the weekly summary (Code)

Now the second branch. Drag a second connection from the Check each receipt node to a new Code node, so the Code node has two outputs running side by side. Set Mode to Run Once for All Items, which hands the code every email at once instead of one at a time, and paste:

const rows = $input.all().map(i => i.json);
const logged = rows.filter(r => r.status === 'logged');
const toCheck = rows.filter(r => r.status === 'check');
const skipped = rows.filter(r => r.status === 'not_receipt');
const totals = {};
for (const r of logged) {
  const cur = r.currency || 'Unknown';
  if (!totals[cur]) totals[cur] = { total: 0, cats: {} };
  totals[cur].total += r.amount;
  totals[cur].cats[r.category] = (totals[cur].cats[r.category] || 0) + r.amount;
}
const fmt = n => n.toFixed(2);
let body = 'Receipts from the last 7 days: ' + logged.length + ' logged, ' + toCheck.length + ' to check, ' + skipped.length + ' skipped.\n';
for (const cur of Object.keys(totals)) {
  body += '\nTotal ' + cur + ' ' + fmt(totals[cur].total) + '\n';
  const cats = Object.entries(totals[cur].cats).sort((a, b) => b[1] - a[1]);
  for (const [cat, sum] of cats) body += '- ' + cat + ': ' + cur + ' ' + fmt(sum) + '\n';
}
if (logged.length) {
  body += '\nLogged:\n';
  for (const r of logged) body += '- ' + r.date + ' ' + r.vendor + ', ' + r.currency + ' ' + fmt(r.amount) + ' (' + r.category + ')\n';
}
if (toCheck.length) {
  body += '\nPlease check by hand:\n';
  for (const r of toCheck) body += '- ' + r.email_subject + ' (' + r.problem + ')\n';
}
const headline = Object.keys(totals).map(c => c + ' ' + fmt(totals[c].total)).join(' + ') || 'nothing logged';
return [{ json: { subject: 'Weekly spend: ' + headline, body: body, logged: logged.length, to_check: toCheck.length, skipped: skipped.length } }];

The first four lines collect the items and sort them into three piles. The for loop adds up the logged amounts separately for each currency, and within each currency by category, because adding Australian and US dollars together would give you a number that means nothing. The rest writes a plain-text email, one line at a time: a count line, a total and a category breakdown per currency, the list of logged receipts and, only when there is something to report, the list to check by hand. Each \n starts a new line. The last line returns one item with a subject such as “Weekly spend: AUD 47.50 + USD 412.80” and the text in a field called body.

Step 8: Email me the weekly summary (Gmail)

Add a Gmail node after the summary node:

  • Resource: Message. Operation: Send

  • To: [email protected], replaced with your own address

  • Subject: {{ $json.subject }}

  • Email Type: Text

  • Message: {{ $json.body }}

  • Options > Append n8n Attribution: off

Test it

You can test with your own receipts by labelling two or three and clicking Execute workflow. For the build we used five made-up emails instead, pinned to the Gmail node. Pinning, in n8n, means freezing a node's output so later nodes run against sample data. The emails were a hosting receipt from Acme Hosting for AUD 29.00 with GST shown separately, a café receipt for AUD 18.50, a SkyLine Air ticket for USD 412.80, a desk-chair sale newsletter, and an order confirmation from Paper Trail Printing that said the invoice was attached as a PDF. The Google Sheets and sending nodes were pinned too, so nothing touched a real inbox or sheet, while the AI step ran for real against gpt-5.4-mini.

When this workflow ran on 3 December 2026, every node finished in 1.7 seconds with five model calls. Three receipts were logged with the right totals, the newsletter was skipped and the printing order went to the check list. The summary email read like this:

❝

Weekly spend: AUD 47.50 + USD 412.80

Receipts from the last 7 days: 3 logged, 1 to check, 1 skipped.

Total AUD 47.50
- Software: AUD 29.00
- Meals: AUD 18.50

Total USD 412.80
- Travel: USD 412.80

Logged:
- 2026-12-01 Acme Hosting, AUD 29.00 (Software)
- 2026-12-02 Harbour Cafe, AUD 18.50 (Meals)
- 2026-12-03 SkyLine Air, USD 412.80 (Travel)

Please check by hand:
- Order 1093 confirmed (total not in the email, see the attachment)

Notice that the model took AUD 29.00 for the hosting bill, the total including GST, and not the AUD 26.36 subtotal printed above it. That is what the word “Final” in the amount description asks for. After a clean run, use the toggle at the top of the editor to make the workflow active, and from then on Monday mornings look after themselves.

Common problems and fixes

Our first test run turned up the first three, and the build above already includes their fixes.

  • Every AI call happens twice. With the Responses API switched on, our model wrapped each answer in a form the extractor's parser rejected, so n8n asked again and ten calls did the work of five. The second attempts succeeded, which hides the fault unless you count the calls. Switching Use Responses API off in Step 3a brought it down to one call per email.

  • Hosting lands in Other. With a bare list of category names, the model filed the hosting bill under Other. Adding examples in brackets, “Software (apps, hosting, subscriptions)”, fixed it. If a category keeps going astray, add examples to its description before you touch anything else.

  • Orders with PDF invoices vanish. At first the model marked the printing order as not a receipt, so it was skipped without a word, and a receipt that disappears quietly is far harder to catch than one that fails loudly. The total_in_email attribute and its line in the Code node now send these to the check list.

  • The model sees only a few words of each email. Simplify is still on in Step 2. Switch it off so the full text field comes through.

  • Rows land in new columns. The headings in row 1 must match the names in Step 6 exactly, including capitals and the space in “Email subject”.

  • Receipts appear twice. Running the workflow by hand and then letting Monday's run go ahead logs the same week twice. For extra runs, see the first variation below.

  • No email on a quiet week. When Gmail finds nothing, the following nodes do not run, so no summary arrives. That is n8n's normal behaviour with zero items, and on a quiet week silence does no harm.

Make it yours

  • Mark receipts once they are logged. Add a Gmail node after Step 6 with the Add Label operation and a label called logged, then change the search in Step 2 to label:receipts -label:logged. You can then run the workflow as often as you like without duplicates.

  • Read the PDF too. Switch on Download Attachments in the Gmail node's options and add an Extract from File node before the AI step, so invoices that arrive only as PDFs can be read as well.

  • Use your accountant's categories. Replace the six categories in Step 3 with the ones in your chart of accounts, so the sheet sorts straight into your bookkeeping.

Download the workflow

Copy the JSON below and paste it onto an empty n8n canvas, or save it as a .json file and choose Import from File. No credentials travel with the file, so n8n will ask you to pick your own Gmail, Google Sheets and OpenAI accounts. Then put your own sheet ID and email address in place of YOUR_SHEET_ID and [email protected].

{"name": "Log receipt emails to Google Sheets with AI and email me weekly totals", "nodes": [{"name": "Every Monday at 8am", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [0, 300], "parameters": {"rule": {"interval": [{"field": "weeks", "weeksInterval": 1, "triggerAtDay": [1], "triggerAtHour": 8, "triggerAtMinute": 0}]}}}, {"name": "Get receipt emails from last week", "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [220, 300], "parameters": {"resource": "message", "operation": "getAll", "returnAll": false, "limit": 50, "simple": false, "filters": {"q": "label:receipts newer_than:7d", "readStatus": "both"}, "options": {}}}, {"name": "Pull out receipt details with AI", "type": "@n8n/n8n-nodes-langchain.informationExtractor", "typeVersion": 1.2, "position": [440, 300], "parameters": {"text": "=From: {{ $json.from?.text ?? \"\" }}\nSubject: {{ $json.subject ?? \"\" }}\nReceived: {{ $json.date ?? \"\" }}\n\n{{ ($json.text ?? \"\").slice(0, 4000) }}", "schemaType": "fromAttributes", "attributes": {"attributes": [{"name": "is_receipt", "type": "boolean", "description": "true if this email is about something you bought: a receipt, a paid invoice or an order confirmation. false for newsletters and adverts", "required": true}, {"name": "total_in_email", "type": "boolean", "description": "true only if the final amount paid is written in the email text itself, not only in an attachment", "required": true}, {"name": "vendor", "type": "string", "description": "The business that was paid, short name only", "required": false}, {"name": "purchase_date", "type": "string", "description": "Date of the purchase as YYYY-MM-DD", "required": false}, {"name": "amount", "type": "number", "description": "Final total paid including tax, as a plain number with no currency symbol", "required": false}, {"name": "currency", "type": "string", "description": "Three-letter currency code such as AUD, USD, GBP or EUR", "required": false}, {"name": "category", "type": "string", "description": "One of: Software (apps, hosting, subscriptions), Travel, Meals, Office, Advertising, Other", "required": false}]}, "options": {"systemPromptTemplate": "You read emails and extract receipt details. Only use facts written in the email. If a value is missing, leave it out rather than guessing.", "batching": {"batchSize": 5, "delayBetweenBatches": 0}}}, "onError": "continueRegularOutput"}, {"name": "OpenAI small model", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "typeVersion": 1.3, "position": [440, 520], "parameters": {"model": {"__rl": true, "mode": "list", "value": "gpt-5.4-mini"}, "responsesApiEnabled": false, "options": {"temperature": 0}}}, {"name": "Check each receipt", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [660, 300], "parameters": {"mode": "runOnceForEachItem", "language": "javaScript", "jsCode": "const email = $('Get receipt emails from last week').item.json;\nconst r = $json.output || {};\nconst amount = Number(r.amount);\nlet status = 'logged';\nlet problem = '';\nif ($json.error) { status = 'check'; problem = 'the AI step failed'; }\nelse if (r.is_receipt === false) { status = 'not_receipt'; problem = 'not a receipt'; }\nelse if (r.total_in_email === false) { status = 'check'; problem = 'total not in the email, see the attachment'; }\nelse if (!r.vendor) { status = 'check'; problem = 'no vendor found'; }\nelse if (!Number.isFinite(amount) || amount <= 0) { status = 'check'; problem = 'no total found'; }\nreturn {\n  json: {\n    date: r.purchase_date || String(email.date || '').slice(0, 10),\n    vendor: r.vendor || '',\n    amount: Number.isFinite(amount) ? Math.round(amount * 100) / 100 : 0,\n    currency: String(r.currency || '').toUpperCase(),\n    category: r.category || 'Other',\n    email_subject: email.subject || '',\n    status: status,\n    problem: problem\n  }\n};"}}, {"name": "Keep receipts that were read", "type": "n8n-nodes-base.filter", "typeVersion": 2.3, "position": [880, 180], "parameters": {"conditions": {"options": {"caseSensitive": true, "leftValue": "", "typeValidation": "strict"}, "conditions": [{"leftValue": "={{ $json.status }}", "operator": {"type": "string", "operation": "equals"}, "rightValue": "logged"}], "combinator": "and"}}}, {"name": "Add to expense log", "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.7, "position": [1100, 180], "parameters": {"resource": "sheet", "operation": "append", "documentId": {"__rl": true, "mode": "id", "value": "YOUR_SHEET_ID"}, "sheetName": {"__rl": true, "mode": "name", "value": "Expenses"}, "columns": {"mappingMode": "defineBelow", "value": {"Date": "={{ $json.date }}", "Vendor": "={{ $json.vendor }}", "Amount": "={{ $json.amount }}", "Currency": "={{ $json.currency }}", "Category": "={{ $json.category }}", "Email subject": "={{ $json.email_subject }}"}, "matchingColumns": [], "schema": [{"id": "Date", "displayName": "Date", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true}, {"id": "Vendor", "displayName": "Vendor", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true}, {"id": "Amount", "displayName": "Amount", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true}, {"id": "Currency", "displayName": "Currency", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true}, {"id": "Category", "displayName": "Category", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true}, {"id": "Email subject", "displayName": "Email subject", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true}]}, "options": {"cellFormat": "USER_ENTERED"}}, "onError": "continueRegularOutput"}, {"name": "Build the weekly summary", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [880, 420], "parameters": {"mode": "runOnceForAllItems", "language": "javaScript", "jsCode": "const rows = $input.all().map(i => i.json);\nconst logged = rows.filter(r => r.status === 'logged');\nconst toCheck = rows.filter(r => r.status === 'check');\nconst skipped = rows.filter(r => r.status === 'not_receipt');\nconst totals = {};\nfor (const r of logged) {\n  const cur = r.currency || 'Unknown';\n  if (!totals[cur]) totals[cur] = { total: 0, cats: {} };\n  totals[cur].total += r.amount;\n  totals[cur].cats[r.category] = (totals[cur].cats[r.category] || 0) + r.amount;\n}\nconst fmt = n => n.toFixed(2);\nlet body = 'Receipts from the last 7 days: ' + logged.length + ' logged, ' + toCheck.length + ' to check, ' + skipped.length + ' skipped.\\n';\nfor (const cur of Object.keys(totals)) {\n  body += '\\nTotal ' + cur + ' ' + fmt(totals[cur].total) + '\\n';\n  const cats = Object.entries(totals[cur].cats).sort((a, b) => b[1] - a[1]);\n  for (const [cat, sum] of cats) body += '- ' + cat + ': ' + cur + ' ' + fmt(sum) + '\\n';\n}\nif (logged.length) {\n  body += '\\nLogged:\\n';\n  for (const r of logged) body += '- ' + r.date + ' ' + r.vendor + ', ' + r.currency + ' ' + fmt(r.amount) + ' (' + r.category + ')\\n';\n}\nif (toCheck.length) {\n  body += '\\nPlease check by hand:\\n';\n  for (const r of toCheck) body += '- ' + r.email_subject + ' (' + r.problem + ')\\n';\n}\nconst headline = Object.keys(totals).map(c => c + ' ' + fmt(totals[c].total)).join(' + ') || 'nothing logged';\nreturn [{ json: { subject: 'Weekly spend: ' + headline, body: body, logged: logged.length, to_check: toCheck.length, skipped: skipped.length } }];"}}, {"name": "Email me the weekly summary", "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [1100, 420], "parameters": {"resource": "message", "operation": "send", "sendTo": "[email protected]", "subject": "={{ $json.subject }}", "emailType": "text", "message": "={{ $json.body }}", "options": {"appendAttribution": false}}}], "connections": {"Every Monday at 8am": {"main": [[{"node": "Get receipt emails from last week", "type": "main", "index": 0}]]}, "Get receipt emails from last week": {"main": [[{"node": "Pull out receipt details with AI", "type": "main", "index": 0}]]}, "Pull out receipt details with AI": {"main": [[{"node": "Check each receipt", "type": "main", "index": 0}]]}, "OpenAI small model": {"ai_languageModel": [[{"node": "Pull out receipt details with AI", "type": "ai_languageModel", "index": 0}]]}, "Check each receipt": {"main": [[{"node": "Keep receipts that were read", "type": "main", "index": 0}, {"node": "Build the weekly summary", "type": "main", "index": 0}]]}, "Keep receipts that were read": {"main": [[{"node": "Add to expense log", "type": "main", "index": 0}]]}, "Build the weekly summary": {"main": [[{"node": "Email me the weekly summary", "type": "main", "index": 0}]]}}, "settings": {"executionOrder": "v1"}}

Before switching it on, I'd change the category list to the categories my accountant already uses, because a log that has to be re-sorted at tax time only does half the job.

Sources