Generate document drafts from PDFs using Google Drive, GPT-4 & notifications
Ready for 3.0What 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).
- Download Google Drive (Google Drive): download
- Extract from File: extracts data from a file (pdf)
- Aggregate Extract Text (Code): runs custom JavaScript code
- Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
- Drafting Agent (OpenAI): uses OpenAI
- CREATE GOOGLE DOC (Google Docs): uses Google Docs
- UPDATE Google Docs (Google Docs): update
- Email Summary Agent (OpenAI): uses OpenAI
- Edit Email Message (Edit Fields (Set)): sets 1 field: DraftURL
- Send Email (Gmail): uses Gmail
Services it uses
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)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Extract from File
n8n-nodes-base.extractFromFile - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Docs
n8n-nodes-base.googleDocs - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Drive
n8n-nodes-base.googleDrive - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail
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…