Block 1 - Security: Upload to VirusTotal
- Type / Role
- n8n-nodes-base.httpRequest - httpRequest
- Config choices
- Version 4.4
Dual AI translator that turns legal jargon into plain English with 0 100 risk scoring Stop guessing what that 40 page lease actually says. This workflow uses two specialized AI agents to translate ...
n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.gmail
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mychel Garzon.
Original n8n.io sourceDual-AI translator that turns legal jargon into plain English with 0-100 risk scoring
Stop guessing what that 40-page lease actually says. This workflow uses two specialized AI agents to translate any PDF contract into plain English, calculate a 0-100 risk score, and flag hidden traps before you sign. You upload, it analyzes, you understand.
This is not another "AI contract generator" template. It does the opposite. You already have the contract, and this workflow decodes it for you. Your decision-making power stays intact because you see exactly what you're agreeing to in language that makes sense.
The workflow runs in eight stages:
Upload and validate: User submits PDF contract via web form. The form only accepts .pdf files to prevent format errors.
Security scan: The PDF is uploaded to VirusTotal for malware detection. A 20-second wait node gives the scan time to complete across 70+ antivirus engines.
Route based on threat level: An IF node checks the scan results. Clean files (0 malicious flags) proceed to analysis. Infected files trigger an immediate rejection email with scan details and stop the workflow.
Extract and prepare: A code node validates the form data and extracts the binary PDF. The Extract From File node converts the PDF to raw text. Another code node truncates the text to 40,000 characters (about 20 pages) to fit within AI context windows.
AI Agent #1 - Translation: Claude Sonnet 4.5 reads the contract and translates legal jargon into plain English. It identifies the core parties, summarizes the agreement goal, breaks down key sections, maps obligations for both sides, and flags red flags like hidden fees or auto-renewal clauses. Output is structured JSON.
AI Agent #2 - Risk Scoring: GPT-5 Mini analyzes the same contract text and assigns a 0-100 risk score. It looks for trap clauses (non-competes, one-sided indemnity, unfair termination terms) and provides a severity explanation. Output is structured JSON.
Merge and format: A code node parses both AI outputs, handles JSON extraction from markdown code blocks, assigns color-coded risk labels (Low: green, Medium: yellow, High: orange, Critical: red), and merges everything into a single structured report object.
Email delivery: The Gmail node sends a professional HTML email with the risk score visualization, executive summary, obligation breakdown, red flag warnings, and section-by-section translation table. The user gets the full analysis in their inbox.
Finds what lawyers find, without the bill: The dual-AI setup means one agent translates while the other hunts for risks. Different perspectives, better coverage.
Stops malware before it touches your AI: VirusTotal scans every upload across 70+ antivirus engines. Infected files get rejected instantly with clear instructions.
Obligation clarity in plain English: The report splits "what you must do" vs. "what they must do" into separate columns. No more rereading paragraphs five times.
Handles real-world contracts: 40,000 character limit covers most employment contracts, leases, NDAs, and SaaS agreements. Longer documents get truncated with a warning.
Professional email reports: Color-coded HTML with risk visualization, executive summary, and section-by-section breakdown. Looks like something a law firm would send.
Swap the AI models: Replace the Anthropic or OpenAI chat model nodes with Groq, Google Gemini, or any provider that handles structured JSON output. The prompts are model-agnostic.
Adjust risk thresholds: Open the "Merge AI Results" code node and change the score ranges. Current setup: 0-30 = Low, 31-60 = Medium, 61-85 = High, 86-100 = Critical.
Change the wait time: The VirusTotal scan defaults to 20 seconds. Reduce to 15s for faster results or increase to 25s for more reliable scanning on slower connections.
Customize the email design: The "Send Analysis Report" node has the full HTML template. Change colors, fonts, add your logo, or insert affiliate links to lawyer referral services.
Increase document limits: The "Clean & Truncate Text" code node caps at 40,000 characters. Increase the maxChars variable to handle longer enterprise contracts.
Add delivery channels: Drop a Slack, Teams, or WhatsApp node after the analysis to send reports through multiple channels instead of just email.
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.
| Workflow | AI Contract Report: Plain English Translation + Risk Score Email (Claude/GPT-4o) |
|---|---|
| Complexity | advanced |
| Nodes | 22 |
| Categories | Document Extraction, AI Summarization |
| Author | Mychel Garzon |
| Published | 02 Apr 2026 |
Use the JSON export at /data/workflows/14659/14659.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Dual AI translator that turns legal jargon into plain English with 0 100 risk scoring Stop guessing what that 40 page lease actually says. This workflow uses two specialized AI agents to translate ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.