This is another n8n automation by Ghulam-e -Mustafa PatelThis is another n8n automation by Ghulam-e -Mustafa Patel

This is another n8n automation

Portfolio project
Ghulam-e -Mustafa Patel
This is another n8n automation workflow — a Legal PDF Auto Summarizer. Here's the full picture:
What it does, end to end:
Watches a Google Drive folder — polls every minute for new files added to a "Legal Documents" folder.
Downloads & extracts text — grabs the PDF and pulls out the raw text content.
AI summarization via Google Gemini — feeds the text to a Gemini-powered AI Agent with a legal assistant persona. It's asked to identify the major findings of the document and format them cleanly with headings and bullet points.
Converts the summary to a text file — the AI's output is saved as a .txt file, named after the original PDF (e.g. contract_summary.txt).
Uploads the summary back to Drive — the .txt file is saved right back into the same "Legal Documents" folder alongside the original PDF.
Emails the summary — simultaneously sends the summary text to gmpatel404@gmail.com with a subject line like ContractName - Summary | 10 May 2026.
Tech stack: n8n + Google Drive + Google Gemini (PaLM) + Gmail.

0 likes · 0 views · May 10, 2026

This is another n8n automation workflow — a Legal PDF Auto Summarizer. Here's the full picture: What it does, end to end: Watches a Google Drive folder — pol...

Tags