Templates / Analyze contract risk and red flags with OpenAI from a web form

Analyze contract risk and red flags with OpenAI from a web form

Ready for 3.0

by Incrementors ✓ · 22 views · created 2026-07-24 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs when someone submits an n8n form (“Contract & ToS Red-Flag Analyzer”). Along the way it connects OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Contract & ToS Red-Flag Analyzer”).

  1. Map Form Fields (Code): runs custom JavaScript code
  2. Long Enough? (If): checks a condition and branches into true / false
  3. Prepare Input (Code): runs custom JavaScript code
  4. Too Short - Error Response (n8n Form): shows the next form page
  5. Analyze Contract (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Risk Report Schema
  6. Build HTML Report (Code): runs custom JavaScript code
  7. Send Report (n8n Form): shows the next form page

Services it uses

OpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick overview This workflow collects pasted contract or terms-of-service text via an n8n Form and uses OpenAI to generate a structured risk score, plain-English summary, and flagged clauses, then returns a color-coded HTML report to the submitter. How it…

Excerpt from Incrementors's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.