✨🔪 Advanced AI powered document parsing & text extraction with Llama Parse
Ready for 3.0What this workflow does
This AI workflow has 36 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Google Drive and 1 more. It also calls api.cloud.llamaindex.ai over HTTP.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Gmail: get many
- Get Parsed Markdown (Edit Fields (Set)): sets 1 field: data
- Limit: keeps the first few items
- Classify Parsed Document (Text Classifier): classifies text into categories with AI, with model: gpt-4o-mini
- Save Parsed Document to Google Drive (Google Drive): create from text
- Get Message (Gmail): get
- Summarize Document (Basic LLM Chain): sends a prompt to an LLM, with model: gpt-4o-mini
- Extract Invoice Details as JSON (Basic LLM Chain): sends a prompt to an LLM, with model: gpt-4o-mini
- Is there an Email Attachement (If): checks a condition and branches into true / false
- Send Document Summary as Telegram Message (Telegram): uses Telegram
…plus 18 more steps. See the full node list below.
Services it uses
HTTP calls to: api.cloud.llamaindex.ai
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (16)
- Webhook
n8n-nodes-base.webhook - Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - Limit
n8n-nodes-base.limit - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets
n8n-nodes-base.googleSheets - Google Drive
n8n-nodes-base.googleDrive - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - If
n8n-nodes-base.if - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Description This workflow automates document processing using LlamaParse to extract and analyze text from various file formats. It intelligently processes documents, extracts structured data, and delivers actionable insights through multiple channels. How It…