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.
| Field | What to record |
|---|---|
| record_key | Gmail message ID plus attachment ID |
| received_at | The email’s received date |
| sender / subject | Source information from Gmail |
| original_filename | The attachment’s original name |
| drive_file_id / drive_url | The saved file’s ID and link |
| review_status | needs_review until a person changes it |
| review_note | Questions 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.
[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.
| Test | What to check |
|---|---|
| One PDF attachment | One Drive file and one register row |
| Two different PDF attachments | Two keys, files and rows |
| Email signature image | Excluded by the PDF filter |
| Same attachment replayed | Existing key stops another upload |
| Drive connection fails | Processing record remains for review |
| Sheet write fails after upload | Recover with the saved Drive ID |
| Different email, same invoice | Reviewer 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