Review contracts and generate legal PDF reports with Google Drive, OpenAI, and Slack
UnknownWhat this workflow does
This AI workflow has 11 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Slack, OpenAI and Htmlcsstopdf (community).
How it runs
Trigger: On Google Drive events (file created).
- Download Contract File (Google Drive): download
- Extract Text from PDF (Extract from File): extracts data from a file (pdf)
- Query OpenAI Model (OpenAI): uses OpenAI
- Parse AI Analysis (Code): runs custom JavaScript code
- Generate Attorney Insights (OpenAI): uses OpenAI
- Prepare Attorney Report (Code): runs custom JavaScript code
- Convert to PDF (Htmlcsstopdf): uses Htmlcsstopdf
- Save Report to Drive (Google Drive): uses Google Drive
- Move Report File (Google Drive): move
- Send Slack Notification (Slack): uses Slack
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-htmlcsstopdf is verified or supports 3.0 (used in Convert to PDF).
Nodes used (7)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - OpenAI
@n8n/n8n-nodes-langchain.openAi - Htmlcsstopdf
n8n-nodes-htmlcsstopdf.htmlcsstopdf
From the author
Quick overview This workflow monitors a Google Drive folder for new contract files, extracts text from uploaded PDFs, analyzes key clauses and risks with OpenAI, generates an attorney-ready PDF report via HTML-to-PDF conversion, saves the report back to…