Block 1 - Extract from File
- Type / Role
- n8n-nodes-base.extractFromFile - extractFromFile
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
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 result...
n8n-nodes-base.extractfromfile, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.gmail, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.respondtowebhook
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Swot.AI.
Original n8n.io sourceDescription
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
Summarizes or restructures document content using OpenAI.
Adjust the prompt inside to fit your analysis needs (summary, risk flags, clause extraction).
Sends the results to a recipient.
Configure Gmail credentials and set your recipient address.
🔹 Credentials Needed
OpenAI API key (for Chat Model + Agent)
Gmail account (OAuth2)
Google Sheets account (OAuth2)
🔹 Example Use Case
Upload a contract PDF → workflow extracts clauses → AI flags risky terms → Gmail sends formatted summary → results stored in Google Sheets.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Analyze Legal Documents with GPT & o4-mini plus Gmail & Google Sheets |
|---|---|
| Complexity | advanced |
| Nodes | 18 |
| Categories | AI Summarization, Multimodal AI |
| Author | Swot.AI |
| Published | 19 Aug 2025 |
Use the JSON export at /data/workflows/7610/7610.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 result...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Summarization, Multimodal AI use case.