Templates / Review contract risks and route approvals with Google Drive, OpenAI, and Gmail

Review contract risks and route approvals with Google Drive, OpenAI, and Gmail

Ready for 3.0

by Intuz ✓ · 26 views · created 2026-08-13 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, OpenAI, Gmail and Google Sheets.

How it runs

Trigger: On Google Drive events (file created).

  1. Normalize File Metadata (Edit Fields (Set)): sets 5 fields: fileId, fileName, mimeType…
  2. Validate PDF Input (If): checks a condition and branches into true / false
  3. Download Contract PDF (Google Drive): download
  4. Extract Contract Text (Extract from File): extracts data from a file (pdf)
  5. Extract Contract Clauses (OpenAI): uses OpenAI
  6. Parse JSON (Code): runs custom JavaScript code
  7. Company Policy Engine (Code): runs custom JavaScript code
  8. Derive Approval Level (Switch): routes items into 2 branches
  9. Legal Approval Email (Gmail): send and wait for a reply
  10. Finance Approval Email (Gmail): send and wait for a reply

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

Services it uses

Google DriveOpenAIGmailGoogle Sheets

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

From the author

Quick overview This workflow monitors a Google Drive folder for new contract PDFs, extracts and analyzes their text with OpenAI, routes the contract for email-based approval via Gmail based on contract value and policy risks, and logs the final decision to…

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