AI Auto-Save Gmail Receipts to Google Sheets + Google Drive

Who is this for?

This workflow is ideal for:

For freelancers, business owners, and finance teams who receive receipts via Gmail
Automatically logs expenses for tax, bookkeeping and year-end audits

What problem is this workflow solving?

When tax season hits, missing receipts create panic.

This workflow keeps everything in one place. It uses AI to extract details from Gmail attachments, logs them in a Google Sheet, and stores the PDFs in Google Drive.

No digging. No copying. Just everything where it should be.

How it works?

Apply the label receipt to any incoming Gmail email. Do not mark it as read.

On a schedule (e.g. daily at 8:00 AM), the workflow triggers.

It searches for unread emails with the label receipt.

For each matching email, it downloads the attached receipt file.

It extracts text content from the receipt file.

It uploads the original receipt file to a specified folder in Google Drive.

It merges the extracted text with email metadata.

It sends this combined data to OpenAI.
OpenAI extracts structured fields: date merchant category description subtotal tax total

The extracted data is appended as a new row in the specific Google Sheet.

Finally, the email is marked as read to prevent it from being processed again.

How to set up?

Connect these services in your n8n credentials: Gmail (OAuth2) Google Drive Google Sheets OpenAI Configure the Google Drive upload: In the “Upload File” node, select the target folder where you want receipt PDFs stored. Set your execution schedule: Open the “Schedule Trigger” node and choose when it should run (default is once daily at 8:00 AM). Choose your Google Sheet and tab: In the “Append to Google Sheet” node, select your document and tab Ensure the sheet contains these columns:
Date, Merchant, Category, Description, Subtotal, Tax, Total.

How to customize this workflow to your needs? Change the Gmail label or search filter** to match your needs. Modify the OpenAI schema** to extract additional fields like currency, project, or notes.

0
Downloads
129
Views
8.94
Quality Score
intermediate
Complexity
Author:Matt Chong(View Original →)
Created:8/13/2025
Updated:8/25/2025

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments