Communication

Analyze documents and extract text using advanced AI intelligence

54 nodes 290 114 Webhook
Download

Workflow Description

A sophisticated workflow that receives documents via Gmail, processes them with OpenAI language models through chained LLM operations, extracts key information, stores structured data in Google Sheets, and delivers instant summaries via Telegram notifications.

How it works

  1. 1.Automatically capture incoming documents and attachments from Gmail
  2. 2.Process and analyze text content through chained OpenAI language models
  3. 3.Classify extracted data and store results in Google Sheets
  4. 4.Deliver summaries and insights to Telegram channels in real time

Use cases

  • Automatically process invoices, reports, and receipts to update records
  • Extract critical information from contracts and legal documents
  • Classify and categorize incoming emails by type and priority automatically

Requirements

  • Active Gmail account with forwarding and filter configuration
  • OpenAI API key to access language models
  • Google Sheets and Google Drive with appropriate permissions
  • Telegram bot token for message delivery

Service Value

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

Apps Used

Gmail LLM Chain OpenAI Google Sheets Google Drive Telegram If

Details

Trigger Webhook
Nodes 54
Apps 7
Views 290
Downloads 114

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

/

Webhook

Webhook

#1

Gmail

Gmail

#2

Gmail Trigger

Gmail

#3

Limit

Limit

#4

Get Message

Gmail

#5

Sticky Note

Sticky Note

#6

Parse Document with LlamaParse

HTTP Request

#7

Summarize Email

LLM Chain

#8

gpt-4o-mini

OpenAI

#9

Save LlamaParse ID and Summary to Google Sheets

Google Sheets

#10

Save Document to Google Drive

Google Drive

#11

Extract Invoice Details as JSON

LLM Chain

#12

gpt-4o-mini1

OpenAI

#13

gpt-4o-mini2

OpenAI

#14

Update Google Sheet by LlamaParse ID

Google Sheets

#15

Invoice Details

Set

#16

Prepare Message

Set

#17

Send Invoice Details as Telegram Message

Set

#18

gpt-4o-mini3

OpenAI

#19

Send Error Message 2

Set

#20

Send Error Message 1

Set

#21

Send Document Summary as Telegram Message

Set

#22

Summarize Document

LLM Chain

#23

Classify Parsed Document

If

#24

Get Parsed Markdown

Set

#25

Prepare Data

Set

#26

HTTP Request

HTTP Request

#27

Is there an Email Attachement

If

#28

Aggregate

Aggregate

#29

Edit Fields

Set

#30

Merge Email Processing

Merge

#31

Merge

Merge

#32

If Supported File Extensions

If

#33

No Operation, do nothing

No Op

#34

No Operation, do nothing1

No Op

#35

Sticky Note1

Sticky Note

#36

Sticky Note2

Sticky Note

#37

Sticky Note3

Sticky Note

#38

Sticky Note4

Sticky Note

#39

Sticky Note5

Sticky Note

#40

Sticky Note9

Sticky Note

#41

Sticky Note8

Sticky Note

#42

Sticky Note6

Sticky Note

#43

Sticky Note7

Sticky Note

#44

Sticky Note10

Sticky Note

#45

Sticky Note11

Sticky Note

#46

Sticky Note12

Sticky Note

#47

Sticky Note13

Sticky Note

#48

Sticky Note14

Sticky Note

#49

Sticky Note15

Sticky Note

#50

Sticky Note16

Sticky Note

#51

Sticky Note17

Sticky Note

#52

Save Summarized Document to Google Drive

Google Drive

#53

Save Parsed Document to Google Drive

Google Drive

#54