Track contract renewals from Drive PDFs with Gemini, Sheets, Gmail and Slack
Ready for 3.0What this workflow does
This workflow has 43 nodes and runs on a schedule (every week) (plus 1 other trigger). Along the way it connects Google Drive, Google Sheets, Gmail and Slack.
How it runs
Trigger: On a schedule (every week) (plus 1 other trigger).
- Workflow Configuration (Edit Fields (Set)): sets 11 fields: geminiApiKey, driveFolderId, registrySheetId…
- List Contract PDFs (Google Drive): search (file folder)
- Load Contract Registry (Google Sheets): read (sheet within document)
- Identify New Or Changed Contracts (Code): runs custom JavaScript code
- Is New Or Changed Contract? (If): checks a condition and branches into true / false
- Download Contract PDF (Google Drive): download (file)
- Combine All Contracts (Merge): merges the data from its input branches
- Extract PDF Text (Extract from File): extracts data from a file (pdf)
- Compute Renewal Urgency (Code): runs custom JavaScript code
- Extract Contract Terms (Code): runs custom JavaScript code
…plus 30 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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 (14)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow scans a Google Drive folder of contract PDFs on a weekly schedule, extracts key renewal terms from new documents using the Gemini API, stores and updates a contract registry in Google Sheets, and sends renewal alerts via Gmail and…