Templates / Generate document drafts from PDFs using Google Drive, GPT-4 & notifications

Generate document drafts from PDFs using Google Drive, GPT-4 & notifications

Ready for 3.0

by Michael Gullo ✓ · 1,926 views · created 2025-06-28 · Document Extraction, AI Summarization

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-10-19.

What this workflow does

This AI workflow has 12 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, OpenAI Chat Model, Google Docs and OpenAI and 1 more.

How it runs

Trigger: On Google Drive events (file created).

  1. Download Google Drive (Google Drive): download
  2. Extract from File: extracts data from a file (pdf)
  3. Aggregate Extract Text (Code): runs custom JavaScript code
  4. Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
  5. Drafting Agent (OpenAI): uses OpenAI
  6. CREATE GOOGLE DOC (Google Docs): uses Google Docs
  7. UPDATE Google Docs (Google Docs): update
  8. Email Summary Agent (OpenAI): uses OpenAI
  9. Edit Email Message (Edit Fields (Set)): sets 1 field: DraftURL
  10. Send Email (Gmail): uses Gmail

Services it uses

Google DriveOpenAI Chat ModelGoogle DocsOpenAIGmail

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 (10)

From the author

Automate Drafts From Google Drive This workflow automates the end-to-end process of extracting and summarizing information from PDFs stored in a specific Google Drive folder. When a new PDF or any binary data is added, the workflow is triggered and begins by…

Excerpt from Michael Gullo'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.