Extract & Classify Invoices & Receipts with Gmail, OpenAI and Google Drive
    100%
    Automation
    0(0 reviews)
    1096 downloads

    Extract & Classify Invoices & Receipts with Gmail, OpenAI and Google Drive

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    ### Who is it for? Anyone who wants to automatically aggregate their invoices or receipts. Main beneficiaries: small business owners and freelancers. ### How it works 1. Creates a folder in Google Drive for uploading invoices and receipts. Responds (Webhook response) with URL to the created folder. 2. Gets all emails with attachments from a Gmail mailbox. 3. (Optional) Filters emails, e.g. exclude emails sent to specific address. 4. Filters only PDF attachments. 5. Classifies all PDF attachment contents with an AI model (is it a receipt or an invoice?). 6. Uploads receipts and invoices to the created Google Drive folder and optionally sends an email with the attachments to, e.g., your accountant. ### Pre-conditions/Requirements - Gmail and Google Drive accounts - A Google Cloud OAuth 2.0 Client ID or a service account with Google Drive and Gmail APIs enabled - OpenAI API account and API key ### Set up steps 1. Provide credentials for the nodes: Gmail, Google Drive, OpenAI. 2. Configure parameters in the "Configure" node. Most importantly: - "sendInvoicesTo" for the email address where invoices/receipts should be sent. 3. It uses a Webhook node trigger. It expects a body with a schema such as: ```json { "name": "getInvoicesAndReceiptsFromEmails", "description": "Finds and uploads to Google Drive all receipts and invoices from emails within a specified date range.", "parameters": { "type": "object", "properties": { "startDate": { "type": "string", "format": "date-time", "description": "The start date of the range to search for emails. Must be in ISO 8601 format." }, "endDate": { "type": "string", "format": "date-time", "description": "The end date of the range to search for emails. Must be in ISO 8601 format." }, "sendEmail": { "type": "boolean", "description": "Indicates whether to send an email with all receipts and invoices after processing. Must be true or false." } }, "required": [ "startDate", "endDate" ] } } ``` Example body: ```json { "startDate": "2025-03-01T00:00:00Z", "endDate": "2025-04-01T00:00:00Z", "sendEmail": true } ``` ### How to use with AI chat You can trigger the workflow with an AI chat that supports tool use, such as [BrowseWiz](https://chromewebstore.google.com/detail/browsewiz-ai-assistant-ai/ioohfnlbpolaalcbppaggpgcgpldohfg). For setup instructions, read [the blog post](https://browsewiz.com/blog/invoice-and-receipt-aggregation-n8n-workflow-and-how-to-add-it-to-browsewiz).

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 30-60 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Dependencies & Requirements

    Gmail
    Communication
    OpenAI
    AI
    Google Drive
    Storage
    Webhook
    Trigger
    No credentials needed

    ⚠️ 3 services require credentials. Make sure you have accounts set up before importing.

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought