Files & Documents

Process PDFs with AI and distribute summaries via Gmail

20 nodes 120 87 Webhook
Download

Workflow Description

Automate PDF file reception via webhook, extract content using OpenAI, store files in Google Drive, and send intelligent summaries through Gmail. Delivers a complete workflow for document management and automated analysis without manual intervention.

How it works

  1. 1.Receive PDF file through webhook and validate its format and integrity
  2. 2.Read PDF content and send to OpenAI for intelligent processing and summarization
  3. 3.Archive original file and processed summary in separate Google Drive folders
  4. 4.Send Gmail with summary and direct link to stored file in Drive

Use cases

  • Automatically process invoices and contracts to extract key business data
  • Receive PDF reports and summarize them for team distribution in real time
  • Smart document archiving with searchable index for easy retrieval
  • Analyze client documents and send executive summaries to sales team

Requirements

  • Active OpenAI account with valid API key and sufficient credits
  • Google and Gmail accounts linked via OAuth authentication
  • Webhook endpoint for reception with optional security authentication
  • Knowledge of expected file types and maximum file size limits

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

OpenAI Google Drive Gmail Read P D F

Details

Trigger Webhook
Nodes 20
Apps 4
Views 120
Downloads 87

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (20)

/

OpenAI

OpenAI

#1

Configure

Set

#2

Iterate over email attachments

Code

#3

Not a PDF

No Op

#4

Is text within token limit?

If

#5

Merge

Merge

#6

Is matched

If

#7

Upload file to folder

Google Drive

#8

Webhook

Webhook

#9

Respond to Webhook

Webhook

#10

Create folder

Google Drive

#11

Aggregate attachments

Code

#12

Send email with invoices?

If

#13

Send to my accountant

Gmail

#14

Get emails with attachments

Gmail

#15

Read PDF email attachments

Read P D F

#16

Is attachment a PDF?

If

#17

Optional filter for emails

Filter

#18

Sticky Note

Sticky Note

#19

Sticky Note1

Sticky Note

#20