Templates / ✨🔪 Advanced AI powered document parsing & text extraction with Llama Parse

✨🔪 Advanced AI powered document parsing & text extraction with Llama Parse

Ready for 3.0

by Joseph LePage ✓ · 19,689 views · created 2025-02-25 · 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 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).

  1. Gmail: get many
  2. Get Parsed Markdown (Edit Fields (Set)): sets 1 field: data
  3. Limit: keeps the first few items
  4. Classify Parsed Document (Text Classifier): classifies text into categories with AI, with model: gpt-4o-mini
  5. Save Parsed Document to Google Drive (Google Drive): create from text
  6. Get Message (Gmail): get
  7. Summarize Document (Basic LLM Chain): sends a prompt to an LLM, with model: gpt-4o-mini
  8. Extract Invoice Details as JSON (Basic LLM Chain): sends a prompt to an LLM, with model: gpt-4o-mini
  9. Is there an Email Attachement (If): checks a condition and branches into true / false
  10. Send Document Summary as Telegram Message (Telegram): uses Telegram

…plus 18 more steps. See the full node list below.

Services it uses

GmailOpenAI Chat ModelGoogle SheetsGoogle DriveTelegram

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)

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…

Excerpt from Joseph LePage'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.