Save receipt attachments from Gmail to Drive with Make

Build a receipt intake workflow that saves PDF attachments, records their source and prepares a review list in Google Sheets. Keep accounting decisions with a person.

What you will build

A labelled email produces a saved PDF and a row linking back to its source. A record key helps prevent reprocessing the same attachment.

Intermediate. Start with the supplied example, check the result, then adapt it to your work.

Download the starting files

CSV headers and one clearly marked sample row. Import into a Receipts tab and remove the sample before live use.

How it works

From receipt email to review register

Save the original PDF once, with a record of where it came from.

From receipt email to review register. Save the original PDF once, with a record of where it came from.
  1. Gmail: A labelled email. Read the attachments from the receipt inbox label.
  2. Make: Keep the PDFs. Process one PDF attachment at a time.
  3. Make data store: New attachment key?. Check the message ID and attachment ID. Alternative route (Already exists): Check its recorded state. Complete items are skipped. Unfinished items need review before retrying. Main route (Yes): continue to the next step.
  4. Drive + Sheets: Save and record. Reserve the key, upload the PDF and add a row.
  5. You: Review the receipt. Use the file and source links to check the document.

Free automation ROI calculator

Could this workflow give you time back?

Estimate receipt-handling time and running costs, leaving room for the accounting review that stays with a person.

Try the free calculator

Free to use. No signup.

Automate the filing around bookkeeping

This example handles a repeated admin task: opening an email, downloading its receipt and adding it to a folder for the person doing the accounts. It does not post an expense, claim tax or decide whether a receipt is valid.

Create a Gmail label called JS-Receipts, a private Google Drive folder called Receipt intake and a Google Sheet with a tab called Receipts. Import the downloadable register. You also need a Make account with available data store capacity and permission to connect these accounts.

Begin with one sample email and a harmless PDF. Avoid a general inbox rule while testing. Add the label manually to the test email so you control what enters the workflow.

Keep the original and its source together

The register should let a reviewer find the file and the email without searching the inbox. Leave accounting fields out until the responsible person decides how they should be entered.

FieldWhat to record
record_keyGmail message ID plus attachment ID
received_atThe email’s received date
sender / subjectSource information from Gmail
original_filenameThe attachment’s original name
drive_file_id / drive_urlThe saved file’s ID and link
review_statusneeds_review until a person changes it
review_noteQuestions or corrections from the reviewer

Two different emails can contain the same invoice. The attachment key prevents replaying the same Gmail attachment, not detecting every duplicate supplier invoice.

Watch the label and read the attachments

In Make, create a scenario and add Gmail > Watch emails. Select JS-Receipts, watch all matching emails rather than only unread ones, and keep the first limit small. Do not mark messages as read just to track processing.

Add Gmail > List email attachments and media. Map the message ID, select attachments and enable returned file data. Run once with your sample so you can inspect the filename, attachment ID and binary data in the output.

Use a filter to allow PDFs only. Check the MIME type is application/pdf and that file data exists. If your module output groups attachments into an array, add Tools > Iterator for that array before the filter. Each following operation must receive one attachment at a time.

Give each attachment a processing record

In Make, create a data store called Receipt intake with text fields for state, drive_file_id and sheet_row. Use the Gmail message ID and attachment ID joined with a colon as its key. Do not use a filename as the key.

Add Data store > Check the Existence of a Record. Continue only when the key does not exist. Then add Add/Replace a Record with that key, state processing and overwrite disabled. This reserves the item before the upload begins.

Enable processing runs in order for this scenario. The reservation makes an interrupted item visible, but it also means that an existing processing record needs investigation. Do not assume that “already exists” means the file was fully processed.

Example record key
[Gmail message ID]:[Gmail attachment ID]

Save the PDF and add the review row

Add Google Drive > Upload a File. Select the private Receipt intake folder. Map the attachment’s binary data into the file data field. Use a filename containing the message ID, attachment ID and original filename so separate files remain distinguishable.

Immediately update the data store record with the returned Drive file ID and state uploaded. If a later step fails, this is the file to recover, instead of uploading a second copy.

Add Google Sheets > Add a Row. Map the source fields and returned Drive ID into the register. You can build the private link using https://drive.google.com/file/d/[Drive file ID]/view. Set review_status to needs_review. Choose Raw input so email subjects and filenames stay text.

Finally update the data store record to complete and save the returned sheet row number. Do not change the file’s sharing permissions. The reviewer needs access through your chosen Drive permissions.

Know where to restart when something fails

Enable storing incomplete executions. Review failures before replaying a whole email. If Drive succeeded but Sheets failed, use the saved file ID to finish the register entry. If Sheets succeeded but the final record update failed, search the sheet for record_key before adding another row.

For the first version, inspect processing and uploaded records after each run. They are your unfinished-work list. Once the process is proven, add a separate exception notification with the record key and a link to the run.

Run these checks before using the schedule

Keep the schedule off and use Run once with sample data. Verify the actual saved PDF, not just the green success indicator in Make.

When these checks pass, enable a schedule that fits your volume. Review Make usage and storage, connection expiry and file permissions. Check that the owner of the accounts will remain available to maintain them.

You can add document extraction later to suggest the supplier, invoice number, total or date. Keep those values marked as suggestions and check them against the original. This first version needs no AI subscription because its job is reliable filing and a clear review list.

TestWhat to check
One PDF attachmentOne Drive file and one register row
Two different PDF attachmentsTwo keys, files and rows
Email signature imageExcluded by the PDF filter
Same attachment replayedExisting key stops another upload
Drive connection failsProcessing record remains for review
Sheet write fails after uploadRecover with the saved Drive ID
Different email, same invoiceReviewer spots the business duplicate

Take this into your own business.

For a connected setup, see bookkeeping admin. I can adapt the workflow to your tools and the people using it.

If you want to build it yourself, bring your questions to a one-hour consultation or work through it over several coaching sessions.

Ask about your version