Review contract risk and rewrite clauses with Groq, Google Drive, Notion, and Slack
Ready for 3.0What 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).
- Download File (Google Drive): download
- Check if PDF (If): checks a condition and branches into true / false
- Extract content from PDF (Extract from File): extracts data from a file (pdf)
- Extract Content (Code): runs custom JavaScript code
- Extract Contract Clauses (Basic LLM Chain): sends a prompt to an LLM, with model: Groq Chat Model; output parser: Structured Output Parser
- Fetch Standard Clauses (Notion): get many (database page)
- Merge: merges the data from its input branches
- Compare Vendor vs Standard Clauses (Code): runs custom JavaScript code
- AI Risk Analysis & Executive Report (Basic LLM Chain): sends a prompt to an LLM, with model: Groq Chat Model; output parser: Structured Output Parser
- Prepare Clause Comparison Dataset (Code): runs custom JavaScript code
…plus 8 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 (13)
- Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - If
n8n-nodes-base.if - Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Slack
n8n-nodes-base.slack - Edit Fields (Set)
n8n-nodes-base.set
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…