Skip to main content

Classify invoices and route them to Google Drive with easybits and Slack

Workflow preview

Workflow preview
100%
Classify invoices and route them to Google Drive with easybits and Slack preview
Open on n8n.io

1. Workflow Overview

What This Workflow Does Upload a document (PDF, PNG, JPEG) via a web form and let easybits Extractor classify it into one of your defined categories. Based on the classification result and a confid...

Best for

  • Invoice Processing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.switch, n8n-nodes-base.if, n8n-nodes-base.googledrive, n8n-nodes-base.slack, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Felix.

Original n8n.io source

1.1 Workflow description

Title
Classify invoices and route them to Google Drive with easybits and Slack
Workflow name
Classify invoices and route them to Google Drive with easybits and Slack

What This Workflow Does

Upload a document (PDF, PNG, JPEG) via a web form and let easybits Extractor classify it into one of your defined categories. Based on the classification result and a confidence score, the document is automatically sorted into the correct Google Drive folder. Low-confidence or unrecognized documents are flagged for manual review via Slack.

How It Works

  1. User uploads a file through the hosted web form
  2. The binary file is converted to base64 and sent to easybits
  3. easybits returns a document_type and confidence_score
  4. The classification result is merged with the original file binary
  5. If confidence > 0.5 → routed to the matching Google Drive folder
  6. If confidence ≤ 0.5 or no category match → uploaded to Needs Review folder + Slack alert

Supported categories: medical_invoice · restaurant_invoice · hotel_invoice · trades_invoice · telecom_invoice


Setup Guide

1. Set Up Your easybits Extractor Pipeline

  1. Go to extractor.easybits.tech and create a new pipeline
  2. Add two fields to the mapping: document_class and confidence_score
  3. In each field's description, paste the corresponding classification or confidence prompt that tells the model how to analyze the document
  4. The classification prompt should return exactly one category label – or null if uncertain
  5. The confidence prompt should return a decimal number between 0.0 and 1.0
  6. Save & test the pipeline, then copy your Pipeline ID and API Key

2. Set Up Google Drive

  1. Create a folder in Google Drive for each category: Medical, Restaurant, Hotel, Trades, Telecom, and Needs Review
  2. In n8n, go to Settings → Credentials and create a Google Drive OAuth2 credential
  3. This requires a Client ID and Client Secret from the Google Cloud Console (APIs & Services → Credentials → OAuth 2.0 Client ID)
  4. Make sure the Google Drive API is enabled in your Google Cloud project
  5. Open each of the 6 Google Drive upload nodes in this workflow and select the correct target folder

3. Set Up Slack

  1. In n8n, go to Settings → Credentials and create a Slack API credential
  2. You'll need a Slack Bot Token – create a Slack App at api.slack.com/apps, add the chat:write scope, and install it to your workspace
  3. Create a channel for review notifications (e.g. #n8n-invoice-review)
  4. Invite the bot to that channel
  5. Open the Review Message node and select the correct channel

4. Connect the easybits Node

  1. Open the easybits Extractor (Classification) node
  2. Replace the pipeline URL with your own: https://extractor.easybits.tech/api/pipelines/YOUR_PIPELINE_ID
  3. Create a Bearer Auth credential using your easybits API Key and assign it to the node

5. Activate & Test

  1. Click Active in the top-right corner of n8n
  2. Open the form URL and upload a test document
  3. Check the execution log to verify the classification result
  4. Confirm the file lands in the correct Google Drive folder
  5. Test with an unrecognized document to verify the Slack notification fires

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.5

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Parse Result

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Category Router

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 7 - Confidence Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 8 - Upload to Review Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 9 - Upload to Telecom Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 10 - Upload to Trades Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 11 - Upload to Hotel Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Upload to Restaurant Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 13 - Upload to Medical Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 14 - Review Message

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 15 - Attach Original File

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 16 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - easybits Extractor for Classification

Type / Role
@easybits/n8n-nodes-extractor.easybitsExtractor - easybitsExtractor
Config choices
Version 2

3. Summary Table

Workflow Classify invoices and route them to Google Drive with easybits and Slack
Complexity advanced
Nodes 23
Categories Invoice Processing, AI Summarization
Author Felix
Published 09 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14960/14960.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Classify invoices and route them to Google Drive with easybits and Slack do?

What This Workflow Does Upload a document (PDF, PNG, JPEG) via a web form and let easybits Extractor classify it into one of your defined categories. Based on the classification result and a confid...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.