Skip to main content

✨πŸ”ͺ Advanced AI powered document parsing & text extraction with Llama Parse

Workflow preview

Workflow preview
100%
✨πŸ”ͺ Advanced AI powered document parsing & text extraction with Llama Parse preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 d...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.gmail, n8n-nodes-base.gmailtrigger, n8n-nodes-base.limit, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Joseph LePage.

Original n8n.io source

1.1 Workflow description

Title
✨πŸ”ͺ Advanced AI powered document parsing & text extraction with Llama Parse
Workflow name
✨πŸ”ͺ Advanced AI powered document parsing & text extraction with Llama Parse

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 Works

Document Ingestion & Processing πŸ“„

  • Monitors Gmail for incoming attachments or accepts documents via webhook
  • Validates file formats against supported LlamaParse extensions
  • Uploads documents to LlamaParse for advanced text extraction
  • Stores original documents in Google Drive for reference

Intelligent Document Analysis 🧠

  • Automatically classifies document types (invoices, reports, etc.)
  • Extracts structured data using customized AI prompts
  • Generates comprehensive document summaries with key insights
  • Converts unstructured text into organized JSON data

Invoice Processing Automation πŸ’Ό

  • Extracts critical invoice details (dates, amounts, line items)
  • Organizes financial data into structured formats
  • Calculates tax breakdowns, subtotals, and payment information
  • Maintains detailed records for accounting purposes

Multi-Channel Delivery πŸ“±

  • Saves extracted data to Google Sheets for tracking and analysis
  • Sends concise summaries via Telegram for immediate review
  • Creates searchable document archives in Google Drive
  • Updates spreadsheets with structured financial information

Setup Steps

Configure API Credentials πŸ”‘

  • Set up LlamaParse API connection
  • Configure Gmail OAuth for email monitoring
  • Set up Google Drive and Sheets integrations
  • Add Telegram bot credentials for notifications

Customize AI Processing βš™οΈ

  • Adjust document classification parameters
  • Modify extraction templates for specific document types
  • Fine-tune summary generation prompts
  • Customize invoice data extraction schema

Test and Deploy πŸš€

  • Test with sample documents of various formats
  • Verify data extraction accuracy
  • Confirm notification delivery
  • Monitor processing pipeline performance

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Gmail

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 3 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 4 - Limit

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 5 - Get Message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Parse Document with LlamaParse

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Summarize Email

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 9 - gpt-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Save LlamaParse ID and Summary to Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 11 - Save Document to Google Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Extract Invoice Details as JSON

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 13 - gpt-4o-mini1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 14 - gpt-4o-mini2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 15 - Update Google Sheet by LlamaParse ID

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 16 - Invoice Details

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Prepare Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Send Invoice Details as Telegram Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 19 - gpt-4o-mini3

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 20 - Send Error Message 2

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - Send Error Message 1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 22 - Send Document Summary as Telegram Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 23 - Summarize Document

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 24 - Classify Parsed Document

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1

Showing the first 24 of 54 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow ✨πŸ”ͺ Advanced AI powered document parsing & text extraction with Llama Parse
Complexity advanced
Nodes 54
Categories Document Extraction, AI Summarization
Author Joseph LePage
Published 25 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3005/3005.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does ✨πŸ”ͺ Advanced AI powered document parsing & text extraction with Llama Parse do?

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 d...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.