Skip to main content

AI Contract Report: Plain English Translation + Risk Score Email (Claude/GPT-4o)

Workflow preview

Workflow preview
100%
AI Contract Report: Plain English Translation + Risk Score Email (Claude/GPT-4o) preview
Open on n8n.io

1. Workflow Overview

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

Best for

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

Tools used

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

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI Contract Report: Plain English Translation + Risk Score Email (Claude/GPT-4o)
Workflow name
AI Contract Report: Plain English Translation + Risk Score Email (Claude/GPT-4o)

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

How the workflow works

The workflow runs in eight stages:

  1. Upload and validate: User submits PDF contract via web form. The form only accepts .pdf files to prevent format errors.

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

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

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

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

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

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

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

Benefits

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

Target Audience

  • Freelancers signing client contracts without legal review
  • Renters decoding landlord lease agreements before move-in
  • Solopreneurs evaluating SaaS Terms of Service or vendor agreements
  • Small business owners reviewing partnership or service contracts
  • Remote workers navigating international employment agreements
  • Anyone who needs to sign contracts but cannot afford a lawyer

Required APIs

  • Anthropic API (Claude Sonnet 4.5 for legal translation)
  • OpenAI API (GPT-5 Mini for risk scoring)
  • VirusTotal API (malware scanning, free tier available at virustotal.com)
  • Gmail OAuth2 with send email permissions

Easy Customization

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

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 - Security: Upload to VirusTotal

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 3 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 4 - README

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

Block 5 - Form Trigger

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

Block 6 - Security: Get Scan Results

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 7 - Form + Security Data

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

Block 8 - Clean or Malicious?

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

Block 9 - Malware Rejection

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 10 - Extract Form Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - PDF to Text

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1.1

Block 12 - Clean & Truncate Text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Translate to Plain English

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 14 - Calculate Risk Score

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 15 - Merge AI Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Send Analysis Report

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 17 - Sticky Note Input

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

Block 18 - Sticky Note Failure

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

Block 19 - Sticky Note Extract

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

Block 20 - Sticky Note AI

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

Block 21 - Sticky Note Output

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

Block 22 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

3. Summary Table

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

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14659/14659.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 AI Contract Report: Plain English Translation + Risk Score Email (Claude/GPT-4o) do?

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

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.