Skip to main content

Classify documents and score confidence with easybits Extractor and Slack

Workflow preview

Workflow preview
100%
Classify documents and score confidence with easybits Extractor and Slack preview
Open on n8n.io

1. Workflow Overview

What This Workflow Does Upload a document (PDF, PNG, or JPEG) via a hosted web form and let the easybits Extractor classify it into one of your defined categories – with a self reported confidence ...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, @easybits/n8n-nodes-extractor.easybitsextractor, n8n-nodes-base.if, n8n-nodes-base.slack, n8n-nodes-base.noop

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 documents and score confidence with easybits Extractor and Slack
Workflow name
Classify documents and score confidence with easybits Extractor and Slack

What This Workflow Does

Upload a document (PDF, PNG, or JPEG) via a hosted web form and let the easybits Extractor classify it into one of your defined categories – with a self-reported confidence score on every classification. Low-confidence or unclassifiable documents are routed to Slack for manual review. Everything else continues through your pipeline.

Why Confidence Scoring Matters

Classification without confidence scoring is a black box: you never know whether the model was sure or guessing. By asking the extractor to return both document_class and confidence_score in a single call, you get a clean signal for routing decisions and a trivial error-handling pattern – no separate model call, no extra latency, no extra cost.

How It Works

  1. Form Upload – A user uploads a file through the n8n web form.
  2. Classify + Score via easybits – The file is sent to the easybits Extractor, which returns two fields: document_class (e.g. medical_invoice, hotel_invoice, or null if uncertain) and confidence_score (a decimal between 0.0 and 1.0).
  3. Validation – An IF node checks whether the class is empty OR the confidence is below 0.5. Either condition routes the document to Slack for manual review. Everything else passes through to the success branch.
  4. Continue Pipeline – From here, extend the workflow however you like: route to Google Drive folders, log to a spreadsheet, trigger type-specific extraction, etc.

Setup Guide

1. Create Your easybits Extractor Pipeline

  1. Go to extractor.easybits.tech and create a new pipeline.
  2. Add two fields to the mapping:
  • document_class – for the classification label
  • confidence_score – for the self-reported confidence
  1. In the description of each field, paste the matching prompt. Use the two prompt sticky notes in this workflow as starting points – they're production-tested.
  2. Adjust the categories and threshold guidance to fit your use case.

2. Install the easybits Extractor Node

  1. The node is verified and works on n8n Cloud out of the box – just search for it in the node panel.
  2. For self-hosted instances: Settings → Community Nodes → Install @easybits/n8n-nodes-extractor.

3. Configure the Node

  1. Add the easybits Extractor node to your workflow.
  2. Enter your Pipeline ID and API Key from the pipeline details page.

The node reads binary data directly from the previous node. No Base64 conversion or manual HTTP configuration needed.

4. Tune the Confidence Threshold

The default threshold in the IF node is 0.5. Raise it (e.g. 0.7) if your downstream pipeline is sensitive to misclassification, or lower it if you'd rather catch more edge cases manually. Adjust based on your review capacity.

5. Activate & Test

  1. Click Active in the top-right corner of n8n.
  2. Open the form URL and upload a test document – try both a clear-cut case and an ambiguous one.
  3. Check the execution output: you should see your document_class and confidence_score in the response, and the review branch should fire on the ambiguous document.

Credentials to Configure

  • easybits Extractor – Pipeline ID + API Key
  • Slack – workspace credentials and the channel/user to receive review alerts

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 - Sticky Note

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

Block 2 - Sticky Note4

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 Note2

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

Block 5 - Sticky Note5

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

Block 6 - Form Trigger: Upload Document

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

Block 7 - easybits: Classify & Score

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

Block 8 - IF: Empty or Low Confidence

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

Block 9 - Slack: Notify – Needs Review

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

Block 10 - Continue Workflow

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note6

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

3. Summary Table

Workflow Classify documents and score confidence with easybits Extractor and Slack
Complexity intermediate
Nodes 12
Categories Document Extraction, AI Summarization
Author Felix
Published 22 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15229/15229.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 documents and score confidence with easybits Extractor and Slack do?

What This Workflow Does Upload a document (PDF, PNG, or JPEG) via a hosted web form and let the easybits Extractor classify it into one of your defined categories – with a self reported confidence ...

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 Document Extraction, AI Summarization use case.