workflows.fit
Back to n8n workflows
n8n templateFreeBy Felix

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 class...

CommunicationHITLCore NodesSticky NoteForm Trigger@easybits/n8n-nodes-extractor.easybits ExtractorIf
Loading interactive preview...

Template notes

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 documentclass and confidencescore 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: documentclass (e.g. medicalinvoice, hotelinvoice, or null if uncertain) and confidencescore (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: - documentclass – for the classification label - confidencescore – for the self-reported confidence 3. 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. 4. 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.