Templates / Analyze Legal Documents with GPT & o4-mini plus Gmail & Google Sheets

Analyze Legal Documents with GPT & o4-mini plus Gmail & Google Sheets

Ready for 3.0

by Swot.AI · 1,243 views · created 2025-08-19 · AI Summarization, Multimodal AI

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 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Gmail and Google Sheets.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Extract from File: extracts data from a file (pdf)
  2. Respond to Webhook: sends the response back to the webhook caller
  3. Code: runs custom JavaScript code
  4. Basic LLM Chain: sends a prompt to an LLM, with model: OpenAI Chat Model
  5. Code: runs custom JavaScript code
  6. AI Agent: runs an AI agent, with model: OpenAI Chat Model
  7. Gmail: uses Gmail
  8. Google Sheets: append

Services it uses

OpenAI Chat ModelGmailGoogle 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 (9)

From the author

Description This workflow lets you upload a PDF document and automatically analyze it with AI. It extracts the text, summarizes the content, flags key clauses or risks, and then delivers the results via Gmail while also storing them in Google Sheets for…

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