Explain contract PDFs and flag risky clauses with Gemini and Gmail
Ready for 3.0What 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”).
- Extract Contract Text (Extract from File): extracts data from a file (pdf)
- Has Readable Text (If): checks a condition and branches into true / false
- Explain Contract with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Contract Review Parser
- Email Unreadable PDF (Gmail): uses Gmail
- Parse Contract Review (Code): runs custom JavaScript code
- Email Review Failure (Gmail): uses Gmail
- Log Contract Review (Google Sheets): append
- Route by Risk Level (Switch): routes items into 3 branches
- Email Do Not Sign Yet (Gmail): uses Gmail
- Email Review Before Signing (Gmail): uses Gmail
…plus 2 more steps. See the full node list below.
Services it uses
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail
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…