Templates / Review contract risk and rewrite clauses with Groq, Google Drive, Notion, and Slack

Review contract risk and rewrite clauses with Groq, Google Drive, Notion, and Slack

Ready for 3.0

by WeblineIndia ✓ · 27 views · created 2026-07-06 · 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 25 nodes and runs on Google Drive events (file created). Along the way it connects Groq Chat Model, Google Drive, Notion and Slack.

How it runs

Trigger: On Google Drive events (file created).

  1. Download File (Google Drive): download
  2. Check if PDF (If): checks a condition and branches into true / false
  3. Extract content from PDF (Extract from File): extracts data from a file (pdf)
  4. Extract Content (Code): runs custom JavaScript code
  5. Extract Contract Clauses (Basic LLM Chain): sends a prompt to an LLM, with model: Groq Chat Model; output parser: Structured Output Parser
  6. Fetch Standard Clauses (Notion): get many (database page)
  7. Merge: merges the data from its input branches
  8. Compare Vendor vs Standard Clauses (Code): runs custom JavaScript code
  9. AI Risk Analysis & Executive Report (Basic LLM Chain): sends a prompt to an LLM, with model: Groq Chat Model; output parser: Structured Output Parser
  10. Prepare Clause Comparison Dataset (Code): runs custom JavaScript code

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

Services it uses

Groq Chat ModelGoogle DriveNotionSlack

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

From the author

Quick overview This workflow watches a Google Drive folder for newly uploaded contract PDFs, extracts key clauses with Groq-hosted LLMs, compares them to standard clauses stored in Notion, generates a structured risk report and clause rewrites, sends a Slack…

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