Skip to content
GUIDES#Claude agent#invoices#accountant

A Claude Agent That Collects Invoices for Your Accountant Every Month: A Practical Guide

Every end of month, the same ritual: hunting for invoices in your inbox, downloading PDFs one by one, sorting and sending them to your accountant. You can turn all of that into an automated task that runs on its own on the 3rd of every month.

Yaakov Tzedek
Yaakov Tzedek · AI expert·8 min read
A Claude agent that automatically collects invoices for the accountant every month
THE BOTTOM LINE
  • What you are building: An agent that collects expense invoices from Gmail, organizes them in Google Drive by year/month, and sends everything to the accountant, automatically every month.
  • What you need: A paid Claude plan (Pro, Max, Team, or Enterprise) and connected Gmail and Google Drive connectors.
  • Where to schedule it: In the cloud via claude.ai/code/scheduled (runs even when your computer is off) or in Cowork (requires the computer to be on).
~15 minutesSetup time
Automatic monthlyFrequency
In the cloudRuns even when computer is off
DID YOU KNOW?

Claude's Gmail connector creates a draft by default and will not send an email without an explicit instruction. That safety feature is worth using during the first month of any automation.

The same ritual every end of month: hunting through email for expense invoices, downloading PDFs one by one, organizing them into a folder, and sending everything to the accountant. All of that can become an automated task that runs on its own on the 3rd of every month. Here is how to set it up properly, including a complete prompt you can copy.

In short (TL;DR)

  • What you are building: An agent that collects expense invoices from Gmail, organizes them in Google Drive by year/month, and sends everything to the accountant, automatically every month.
  • What you need: A paid Claude plan (Pro, Max, Team, or Enterprise) and connected Gmail and Google Drive connectors.
  • Where to schedule it: In the cloud via claude.ai/code/scheduled (runs even when your computer is off) or in Cowork (requires the computer to be on).
  • The critical rule: First month, draft only, no automatic sending. Approve only after you have verified everything looks right.

What is an "invoice agent"? It is a Claude Scheduled Task that executes a sequence of actions on its own: reads your inbox, identifies expense invoices, downloads them, organizes them in Drive, and sends them to the accountant, without you having to type the request again each time. The agent relies on Connectors, authenticated connections to Gmail and Google Drive through which Claude reads and acts on your tools.

What does the agent actually do, step by step?

The agent scans the month that just ended, identifies emails containing expense invoices (an attached PDF or a download link), downloads them, saves them in Drive under a folder named by year/month, and sends everything to the accountant with a summary report. The advantage over a regular chat session: Claude runs code behind the scenes to process the data, which makes data-heavy tasks like identifying dates and amounts far more reliable than free-form text processing.

What do you need to prepare before you start?

Two things: a paid Claude plan (Pro, Max, Team, or Enterprise), and authenticated connections for two connectors, Gmail and Google Drive. If a connector is not connected, the task will simply fail.

  • Gmail: To read the inbox, identify invoices, and send to the accountant.
  • Google Drive: To create folders and save PDF files.

Important to know: The Gmail connector creates a draft by default and does not send an email without an explicit instruction. This is a safety feature, and also the reason why in the first month you should leave the sending step as a draft for manual approval.

The full prompt: copy it

This is the prompt that defines the entire task. Replace the square brackets with your own details (the accountant's email addresses), and run it once manually before scheduling.

Main prompt, monthly invoice agent:

I want a monthly task that collects expense invoices I have received by email. An expense invoice is an invoice or receipt for something I paid to a service provider, website, or platform I use (software subscriptions, hosting, advertising, domains, payment processing, etc.). Do not include invoices I issued to clients (income).

  1. Scan Gmail for the previous month only and identify emails with expense invoices or receipts: an attached PDF file, or an email with a link to download an invoice.
  2. Download each invoice as a PDF. If it is a link, navigate to it and download the file.
  3. Save in Google Drive under the structure: Invoices/[year]/[month] (for example Invoices/2026/06). Create the folder if it does not exist. Before downloading, check whether the file already exists there; if so, skip it.
  4. Name each file in the format: date_vendor_amount (for example 2026-06-12_OpenAI_72USD.pdf).
  5. Create a summary spreadsheet (Google Sheets): date, vendor, amount, currency, link to file.
  6. Prepare an email to the accountant at [accountant email 1] and [accountant email 2], with all the month's PDF files attached, plus a link to the Drive folder and the summary spreadsheet in the body of the email.

If you are not sure whether an email is an expense invoice, mark it "for review" and do not include it automatically. When finished, display a brief report: how many invoices were found, the total amount by currency, and what was transferred. At this stage, create the email as a draft only, do not send it.

How do you help Claude find invoices in your inbox?

Add search terms and filters to the prompt. The more precisely you direct it, the fewer invoices will be missed and the fewer irrelevant emails will be included. Useful search terms to specify: חשבונית, קבלה, invoice, receipt, billing, payment. You can also direct it toward filters like "emails with an attached PDF file" or "emails from known vendors" (the names of vendors you pay regularly).

Tip: On the first run, ask Claude to display the list of emails it identified before downloading. That way you can see whether it is picking things up correctly, and you can refine the search terms for the following month.

The Drive folder structure: why year/month?

A structure of Invoices/[year]/[month] maintains a chronological order that is easy for both you and your accountant to navigate, and prevents mixing between months. It is also the structure that is easiest for the agent to maintain over time.

PathWhat is there
Invoices/2026/06/All expense invoices for June 2026 and the summary spreadsheet
Invoices/2026/07/Invoices for July 2026
Invoices/_for-review/Emails the agent was not sure about, for manual inspection

How do you make it run on its own every month?

There are two ways to schedule the task for the 3rd of every month. The key difference is whether your computer must be on when it runs.

Option 1: Cloud scheduled task (Claude Code)

Go to claude.ai/code/scheduled, create a new task, paste the prompt, and choose a monthly frequency on the 3rd. These tasks run on Anthropic's cloud infrastructure and work with the connectors you have set up, so they are independent of your computer. This is the recommended approach for a task that must run on time regardless of whether your computer is open, exactly like a monthly deadline for the accountant.

Option 2: Scheduled task in Cowork (desktop)

In the Claude Desktop app, inside Cowork, type /schedule in a conversation or go to the "Scheduled" tab and create a new task. Choose a monthly frequency. Each task runs as a separate Cowork session with access to your connectors and files.

Important limitation in Cowork: A scheduled task runs only when the computer is awake and the desktop app is open. If the computer is asleep or the app is closed at the scheduled time, the task will be postponed and will run the next time you launch the app. For regular monthly work, the cloud (Option 1) is more reliable.

Safety: how to avoid mistakes with invoices?

Run it manually once before scheduling, keep the sending step as a draft in the first month, and set a precise date range to prevent duplicates. These three rules prevent the majority of mistakes.

Checklist before scheduling:

  • One complete manual run, and verification that every invoice landed in the correct folder with a valid name.
  • First month: the email to the accountant is saved as a draft. Send it manually only after reviewing.
  • An explicit date range ("the previous month only") and a file-existence check before downloading, to prevent duplicates.
  • A _for-review folder for anything the agent is uncertain about, so it does not get included in the report automatically.

Also keep an eye on usage: each scheduled task consumes from your plan's allocation just like any regular session. A single monthly task is light, but if you are building a system with multiple agents, it is worth tracking your usage.

The bottom line

A monthly invoice agent is one of the most worthwhile automations you can set up for a business. It eliminates a recurring ritual at the end of every month and ensures nothing gets forgotten for the accountant. The key is to define precisely what counts as an expense invoice, run it manually once, and keep sending as a draft until you are confident. From there, it runs on its own.

Continue reading: What is Claude Code · Getting organized with Claude Cowork · Claude Code with MCP · AI automations for business · Build a newsletter system with Vercel + Supabase + Resend

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →