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

⚑ 1,081 views · 🎯 AI Summarization & Classification

Description

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 tracking.

It’s designed for legal, compliance, or contract review use cases, but can be adapted for any document analysis scenario. Test it here: PDF Document Assistant

πŸ”Ή Instructions / Setup

  1. Webhook Input
  1. Extract from File
  1. Pre-processing (Code Node)
  1. Basic LLM Chain (OpenAI)
  1. Post-processing (Code Node)
  1. AI Agent (OpenAI)
  1. Gmail
  1. Google Sheets
  1. Respond to Webhook

πŸ”Ή Credentials Needed

πŸ”Ή Example Use Case

Upload a contract PDF β†’ workflow extracts clauses β†’ AI flags risky terms β†’ Gmail sends formatted summary β†’ results stored in Google Sheets.

πŸ”— Nodes Used

Google Sheets, Webhook, Gmail, AI Agent, Basic LLM Chain, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup