Hi everyone,
I’m looking for the best way to build an n8n workflow that manages the quality control and compliance of legal documents. The main goal is to analyze documents (PDFs or images) page-by-page to verify the visual presence of mandatory elements (signatures, dates, checkboxes).
The Desired Workflow
-
Trigger: New document uploaded to an S3 bucket.
-
Step 1: Pre-Analysis (OCR/AI Vision):
-
I need a solution to analyze the input.
-
It must extract data and, crucially, perform a visual recognition check (e.g., “Is there ink in this area? Is there a checkmark in this box?”, “Is there a signature, even a digital one, in this rectangle?”).
-
-
Step 2: Quality & Compliance Check:
-
Verify that every page is legible (visual quality control).
-
For each page, check the presence of required elements (Ink/Digital Signatures, Handwritten Location/Date, Completed Checkboxes).
-
The result should be a structured JSON object for each page (similar to the output of an AI Assistant).
-
-
Step 3: Final Action:
-
If the result is “Conforming,” move the file.
-
If the result is “Non-Conforming,” send an email notification with the detailed JSON output.
-
My Key Questions (Seeking Advice)
-
Visual Recognition Service: What is the best node or service to integrate for the visual recognition of signatures/graphic marks?
-
Feasibility: Do you think this overall process is truly feasible and robust within an n8n environment?
-
PDF Handling: What is the most efficient way to handle a multi-page PDF input and analyze it page-by-page within the n8n workflow?
Thanks in advance for any suggestions or examples!