Speed up monthly bookkeeping by pulling PDF receipts and invoices from Gmail and filing them in Google Drive. You choose a date range and an optional email step, and the system sorts and stores the right files for finance work.
A secure webhook starts the run with a start date, end date, and a send email flag. A dated folder is created in Google Drive and the webhook responds right away with the folder link so you can track results. Emails with attachments are fetched from Gmail. Each attachment is checked for PDF, the text is read, and a size check prevents sending very long text to the AI. OpenAI then confirms if a file matches your target phrase, like receipt or invoice, set in the Configure node. Matched PDFs are uploaded to the Drive folder. If the flag is on, the matched files are bundled and sent in one Gmail message to your chosen address.
Set up needs Gmail, Google Drive, and OpenAI credentials in n8n. Adjust Match on, maxTokenSize, replyTokenSize, and your recipient email. Expect faster month end close, fewer filing mistakes, and easier audits. Ideal for finance teams, bookkeepers, and solo founders who get many vendor receipts.