Templates / Explain contract PDFs and flag risky clauses with Gemini and Gmail

Explain contract PDFs and flag risky clauses with Gemini and Gmail

Ready for 3.0

by Oka Hironobu ✓ · 1 views · created 2026-07-23 · 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 15 nodes and runs when someone submits an n8n form (“Explain this contract to me”). Along the way it connects Google Gemini Chat Model, Google Sheets and Gmail.

How it runs

Trigger: When someone submits an n8n form (“Explain this contract to me”).

  1. Extract Contract Text (Extract from File): extracts data from a file (pdf)
  2. Has Readable Text (If): checks a condition and branches into true / false
  3. Explain Contract with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Contract Review Parser
  4. Email Unreadable PDF (Gmail): uses Gmail
  5. Parse Contract Review (Code): runs custom JavaScript code
  6. Email Review Failure (Gmail): uses Gmail
  7. Log Contract Review (Google Sheets): append
  8. Route by Risk Level (Switch): routes items into 3 branches
  9. Email Do Not Sign Yet (Gmail): uses Gmail
  10. Email Review Before Signing (Gmail): uses Gmail

…plus 2 more steps. See the full node list below.

Services it uses

Google Gemini Chat ModelGoogle SheetsGmail

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 (10)

From the author

Quick Overview This workflow collects a contract PDF via an n8n form, extracts its text, uses Google Gemini to generate a structured plain-language review with risk flags, logs the results to Google Sheets, and emails the requester a different summary based…

Excerpt from Oka Hironobu'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.