Analyze contract risk from Google Drive PDFs with OpenAI, Claude, Gemini, Sheets and Gmail
n8n · Legal · checked 2026-11-02
Quick overview This workflow watches a Google Drive folder for new PDF contracts, extracts their text, analyzes them with OpenAI, Anthropic Claude, or Google Gemini to produce a structured risk assessment, logs the results to Google Sheets, and sends a Gmail alert when the risk score crosses a threshold. How it works Triggers when a new file is created in a specified Google Drive folder. Filters events to continue only when the uploaded file is a PDF. Downloads the PDF from Google Drive, extracts its text, and trims the content to a configurable maximum length. Sends the contract text to the selected AI provider (OpenAI, Anthropic Claude, or Google Gemini) to extract structured contract fields, risk flags, a summary, and a 0–100 risk score.
At a glance
- Brand
- n8n
- Jobs
- Legal
- Sources
- 1
Dimensions
- Brands: n8n
- Agents: n8n · Visit via /go/
- Occupations: Legal
- Industries: legal
- Tasks: inbox, analysis, content
Sources
- https://n8n.io/workflows/20473 · fetched 2026-11-02 — “Quick overview This workflow watches a Google Drive folder for new PDF contracts, extracts their text, analyzes them with OpenAI, Anthropic Claude, or Google Gemini to produce a st”
Last checked 2026-11-02. Description source: harvest.