Skip to content
agents/en vrai

Check every month that all your accounting documents are in before they go to your accountant

Every morning, the agent copies your documents from Dropbox to the Google Drive folder you share with your accountant. On the 5th and 12th, it reads last month's documents with OpenAI, flags anything missing or wrong and, once everything is in, prepares the email to your accountant.

L3 autonomousVerified sourceBased on official documentation we checked; not tested by us yet.Updated
Difficulty
Advanced
Setup time
≈ 2.5 h (estimate; the author quotes about 20 minutes of setup, plus filling in the expected documents table)
Estimated cost
n8n: €0 self-hosted or from €20/month (Starter, billed annually) + OpenAI API calls (gpt-4.1-mini in the template; number of files read and text length adjustable); Dropbox, Google Drive and Gmail: existing accounts
Category
Legal & admin

⏱ Trigger

Every morning at 7:50 am (copy) + on the 5th and 12th at 9 am (check) (cron)

✋ Human approval

Test mode at first: you get the full check email for a past month, with no drafts, no Drive copies and no table writes. In live mode, copying and checking run on their own, but the email to your accountant stays a draft that you send yourself.

→ Output

Up-to-date accountant Google Drive folder + check email (missing items, points to review) + Gmail draft with the document index

Autonomy level 3 — Autonomous: Runs end to end on its own; only low-risk actions (read, notify, archive).

01Connected tools

02What the agent does on its own

  1. step 01

    Every morning, mirrors the Dropbox archive (year/month folders) into the accountant's Google Drive folder: it creates missing folders and adds files, never overwriting or deleting anything on Drive.

  2. step 02

    On the 5th and 12th, compares last month with your "expected documents" table (invoices, bank statements, payslips, tax forms…), each with its folder, naming rule and where to get it.

  3. step 03

    Has OpenAI read the first pages of each new PDF (or the file name for other formats): document type, month it refers to, issuer and confidence. A file is only read again if its content changes.

  4. step 04

    Spots documents from another month, duplicates, empty or broken PDFs and unexpected files; when unsure, or if OpenAI doesn't answer, it falls back to the naming rules.

  5. step 05

    Emails you what is missing, what to check and what is already there.

  6. step 06

    Once the month is complete, prepares a Gmail draft for your accountant with an index of documents by type and month, only once per month.

03Agent instructions

$ instructions.txt · replace the {VARIABLES}
> You identify one document from the admin archive of {BUSINESS}, to check that a month is complete before it goes to the accountant. Month checked: {MONTH} (yyyy.MM); file name: {NAME}; folder: {FOLDER}; text of the first pages: {TEXT}; documents expected every month: {TYPES}. Rules: documentType is one of the expected names, copied exactly, or "other". period is the month the document refers to (invoice date, pay period, statement period), empty if nothing says so. issuer is who issued it, or empty. confidence goes from 0 to 1. Trust the text over the file name. Never invent a period or an issuer that isn't written.

04Limits and legal points

Emails are in Italian and the examples are designed for a small Italian business: translate them and adapt the list of expected documents to your situation. Your documents must be filed in Dropbox by year and month. The AI can get a type or month wrong: that's what the check email is for. The text of your invoices, statements and payslips is sent to OpenAI: this is sensitive data, record it in your GDPR register and make sure your accountant agrees. Requires an n8n version with data tables.

05In short

When does the agent run, and what does it produce?
Trigger: Every morning at 7:50 am (copy) + on the 5th and 12th at 9 am (check) (cron). Output: Up-to-date accountant Google Drive folder + check email (missing items, points to review) + Gmail draft with the document index.
What stays under your control?
Test mode at first: you get the full check email for a past month, with no drafts, no Drive copies and no table writes. In live mode, copying and checking run on their own, but the email to your accountant stays a draft that you send yourself. Autonomy level 3 — Autonomous: Runs end to end on its own; only low-risk actions (read, notify, archive).
How much does it cost and how long does setup take?
Estimated cost: n8n: €0 self-hosted or from €20/month (Starter, billed annually) + OpenAI API calls (gpt-4.1-mini in the template; number of files read and text length adjustable); Dropbox, Google Drive and Gmail: existing accounts. Setup time: ≈ 2.5 h (estimate; the author quotes about 20 minutes of setup, plus filling in the expected documents table), difficulty "advanced". Tools: n8n – Schedule Trigger, n8n – Dropbox, n8n – Google Drive, n8n – Basic LLM Chain, n8n – OpenAI Chat Model, n8n – Data tables, n8n – Gmail.

Answers taken from this recipe · updated 29 October 2026

06Source

https://n8n.io/workflows/21804-close-monthly-accounting-documents-from-dropbox-with-google-drive-gmail-and-openai/

07Related recipes

Same category or same connected tools.

All recipes in "Legal & admin" →

→ monthly newsletter

3 agents en vrai.
Every month.

Three reproducible, sourced autonomous agents. No hype, no "top 100 tools". One-click unsubscribe.