Review and approve NDAs with Google Drive, Google Sheets, and OpenAI GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, OpenAI and Google Sheets.
How it runs
Trigger: On Google Drive events (file created).
- Fetch File from Drive (Google Drive): download
- Create NDA Identifier (Code): runs custom JavaScript code
- Check File Format (If): checks a condition and branches into true / false
- Send to Processing Folder (Google Drive): move
- Handle Extraction Error (Code): runs custom JavaScript code
- Fetch Processed File (Google Drive): download
- Log Extraction Error (Google Sheets): append or update
- Extract Text from Document (Extract from File): extracts data from a file (pdf)
- Check Text Extraction Success (If): checks a condition and branches into true / false
- OpenAI: uses OpenAI
…plus 10 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Drive + Google Sheets templates (720) · Other OpenAI + Google Drive templates (628)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Sheets
n8n-nodes-base.googleSheets - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow monitors a Google Drive folder for new NDA files, extracts their text, uses OpenAI to extract and assess clauses against a Google Sheets playbook, then either auto-approves and files the document or escalates it to legal review…