Skip to content
MORNINGMETHOD
WebhookGmailGmail TriggerLimitGet MessageParse Document wi…Summarize Emailgpt-4o-miniSave LlamaParse I…Save Document to …Extract Invoice D…gpt-4o-mini1gpt-4o-mini2Update Google She…Invoice DetailsPrepare MessageSend Invoice Deta…gpt-4o-mini3Send Error Messag…Send Error Messag…Send Document Sum…Summarize DocumentClassify Parsed D…Get Parsed Markdo…Prepare DataHTTP RequestIs there an Email…AggregateEdit FieldsMerge Email Proce…MergeIf Supported File…No Operation, do …No Operation, do …Save Summarized D…Save Parsed Docum…
The workflow you get36 nodes
  • n8n
  • Gmail
  • HTTP Request
  • LLM Chain
  • OpenAI
  • Google Sheets, Google Drive, Telegram, Text Classifier

AI Document Parsing & Data Extraction with LlamaParse

The AI reads invoices and documents and pulls out the important details.

Best for: Invoice-heavy businesses

$19.00Regular price $49.0061% off
  • Card or PayPal
  • Instant download
  • Setup guide included
Delivery
Download after payment
Format
n8n workflow + guide (ZIP)
Access
Re-download any time

Setup

What you need, and how to set it up

It starts when another app sends it a message at its web address. No code needed. Follow the steps in order.

What you need

  • An n8n account

    The app that runs the automation.

    Free to self-host, or a free trial on n8n Cloud.

  • GmailFree

    Lets n8n read and send your emails.

    Get it: Click Sign in with Google inside n8n and say yes. On self-hosted n8n you first make a Google Cloud app (the link shows how). Show me how to connect Gmail (opens n8n docs)

    Used by: Gmail, Gmail Trigger, Get Message

  • API key for a web service

    A secret password for the website this workflow talks to.

    Get it: Sign up on that service, find its API key page and copy the key. The node name tells you which service. Show me how to connect API key for a web service (opens n8n docs)

    Used by: Parse Document with LlamaP

  • OpenAI API keyPay as you go, usually a few cents a day

    A secret password that lets n8n use ChatGPT's brain.

    Get it: Go to platform.openai.com, open API keys, and click Create new secret key. Copy it. Show me how to connect OpenAI API key (opens n8n docs)

    Used by: gpt-4o-mini, gpt-4o-mini1, gpt-4o-mini2, gpt-4o-mini3

  • Google SheetsFree

    Lets n8n read and write your spreadsheets.

    Get it: Click Sign in with Google inside n8n and say yes. On self-hosted n8n you first make a Google Cloud app (the link shows how). Show me how to connect Google Sheets (opens n8n docs)

    Used by: Save LlamaParse ID and Sum, Update Google Sheet by Lla

  • Google DriveFree

    Lets n8n open and save files in your Drive.

    Get it: Click Sign in with Google inside n8n and say yes. On self-hosted n8n you first make a Google Cloud app (the link shows how). Show me how to connect Google Drive (opens n8n docs)

    Used by: Save Document to Google Dr, Save Summarized Document t, Save Parsed Document to Go

  • Telegram botFree

    Your own chat robot on Telegram.

    Get it: In Telegram, message @BotFather, type /newbot, pick a name, and copy the token it gives you. Show me how to connect Telegram bot (opens n8n docs)

    Used by: Send Invoice Details as Te, Send Error Message 2, Send Error Message 1, Send Document Summary as T

Setup in 6 easy steps

  1. Step 1: Get n8n

    n8n is the app that runs your automation. Make a free account at n8n.io. That is the easy way. You can also put it on your own computer for free.

  2. Step 2: Download your file

    After you pay, open My downloads and download the ZIP. Double-click it to open it. Inside is a file called workflow.json.

  3. Step 3: Put it in n8n

    In n8n, click Create workflow. Click the three dots (⋯) at the top, then Import from file, and pick workflow.json. Now you see the same boxes as in the picture above.

  4. Step 4: Connect your accounts

    Some boxes show a little red triangle. That means they need a key. Click the box, click Create new credential, and paste the key from your list. Do this for each red box.

  5. Step 5: Try it once

    Click Test workflow, then send one test message to the web address n8n shows on the first box. Green ticks on the boxes mean it worked.

  6. Step 6: Turn it on

    Click Save. Then flip the switch at the top from Inactive to Active. Now it works by itself, even while you sleep.

Stuck? Email support@morningmethod.co and we will help you.

Category: Automations › Invoicing & Accounting · Best for: Invoice-heavy businesses · Platform: n8n · Steps: 36

What it does

The AI reads invoices and documents and pulls out the important details.

https://docs.cloud.llamaindex.ai/API/upload-file-api-v-1-parsing-upload-post

Works with: Gmail, OpenAI, Text Classifier, Chain Llm, Google Drive, Telegram, Google Sheets

What you get

  • The n8n workflow file (workflow.json), ready to import
  • This setup guide
  • The list of fields to change for your own accounts (see Install below)
  • Email support if you get stuck

Before you start

  1. An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker: docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678.

  2. Accounts and API keys for these services:

    • Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Gmail, Gmail Trigger, Get Message, Save LlamaParse ID and Summary to Google Sheets, Save Document to Google Drive, Update Google Sheet by LlamaParse ID, Save Summarized Document to Google Drive, Save Parsed Document to Google Drive)
    • API key sent as an HTTP header (see the node for which service): how to connect (used by Parse Document with LlamaParse)
    • OpenAI API key: how to connect (used by gpt-4o-mini, gpt-4o-mini1, gpt-4o-mini2, gpt-4o-mini3)
    • Telegram bot token from @BotFather: how to connect (used by Send Invoice Details as Telegram Message, Send Error Message 2, Send Error Message 1, Send Document Summary as Telegram Message)

Install

  1. In n8n, click Create workflow (top right).
  2. Click the ⋯ menu → Import from file and choose workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V.
  3. Open each node with a red warning triangle and pick or create the matching credential from the list above.
  4. Point these fields at your own sheets, chats and accounts:
    • Gmail → sender: replace the placeholder with your own
    • Save LlamaParse ID and Summary to Google Sheets → sheetName: choose your own
    • Save LlamaParse ID and Summary to Google Sheets → documentId: choose your own
    • Save Document to Google Drive → driveId: choose your own
    • Save Document to Google Drive → folderId: choose your own
    • Update Google Sheet by LlamaParse ID → sheetName: choose your own
    • Update Google Sheet by LlamaParse ID → documentId: choose your own
    • Send Invoice Details as Telegram Message → chatId: choose your own
    • Send Error Message 2 → chatId: choose your own
    • Send Error Message 1 → chatId: choose your own
    • Send Document Summary as Telegram Message → chatId: choose your own
    • Save Summarized Document to Google Drive → driveId: choose your own
    • Save Summarized Document to Google Drive → folderId: choose your own
    • Save Parsed Document to Google Drive → driveId: choose your own
    • Save Parsed Document to Google Drive → folderId: choose your own
  5. Click Save.

Test it

  1. Click Test workflow (or Execute workflow). Gmail Trigger starts it. Trigger it once with real sample data.
  2. Click each node to check its output. A green tick means the step worked.
  3. Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.

Go live

Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.

How it works, step by step

  1. Gmail Trigger starts the workflow (Gmail).
  2. Webhook starts the workflow (Webhook).
  3. gpt-4o-mini1 uses AI (OpenAI).
  4. gpt-4o-mini2 uses AI (OpenAI).
  5. gpt-4o-mini3 uses AI (OpenAI).
  6. gpt-4o-mini uses AI (OpenAI).
  7. Gmail uses Gmail to getAll.
  8. Get Parsed Markdown reshapes the data for the next step.
  9. Classify Parsed Document uses AI (Text Classifier).
  10. Extract Invoice Details as JSON uses AI (Chain Llm).
  11. Summarize Document uses AI (Chain Llm).
  12. Summarize Email uses AI (Chain Llm).
  13. Limit uses Limit.
  14. Save Parsed Document to Google Drive uses Google Drive to createFromText.
  15. Invoice Details reshapes the data for the next step.
  16. Send Error Message 2 uses Telegram.
  17. Send Document Summary as Telegram Message uses Telegram.
  18. Save Summarized Document to Google Drive uses Google Drive to createFromText.
  19. Send Error Message 1 uses Telegram.
  20. Merge Email Processing uses Merge.
  21. Get Message uses Gmail to get.
  22. Prepare Message reshapes the data for the next step.
  23. Update Google Sheet by LlamaParse ID uses Google Sheets to update.
  24. Save LlamaParse ID and Summary to Google Sheets uses Google Sheets to appendOrUpdate.
  25. Is there an Email Attachement checks a condition and routes items accordingly.
  26. Send Invoice Details as Telegram Message uses Telegram.
  27. HTTP Request calls an external API (https://api.cloud.llamaindex.ai/api/parsing/supported_file_e).
  28. Merge uses Merge.
  29. No Operation, do nothing uses No Op.
  30. Aggregate uses Aggregate.
  31. Parse Document with LlamaParse calls an external API (https://api.cloud.llamaindex.ai/api/parsing/upload).
  32. Save Document to Google Drive uses Google Drive.
  33. Edit Fields reshapes the data for the next step.
  34. Prepare Data reshapes the data for the next step.
  35. If Supported File Extensions checks a condition and routes items accordingly.
  36. No Operation, do nothing1 uses No Op.

India & US notes

India: add GSTIN, HSN/SAC and GST amount columns to your sheet so the AI extracts them too. US: add sales-tax and EIN columns as needed.

Extra setup notes

These notes are also on the canvas as yellow sticky notes:

Send to LlamaParse

https://docs.cloud.llamaindex.ai/API/upload-file-api-v-1-parsing-upload-post

Check for Supported File Extension

https://docs.cloud.llamaindex.ai/API/get-supported-file-extensions-api-v-1-parsing-supported-file-extensions-get

Get Emails with Attachments

Disclaimer

This workflow only processes the the first attachment of the email. Adjust search and limit settings to suit your use case.

Save Document to Google Drive

Summarize the Email Message

Save To Google Sheets

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

Try Me!

Advanced AI Powered Document Parsing & Text Extraction with Llama Parse

Example Invoice Processing

Extract Invoice as JSON

Update User & System Prompt for Your Specific Use Case

Example Document Summarizing

Summarize Document

Update User & System Prompt for Your Specific Use Case

Classify Parsed Document

Add More Classifications as Required

Parsed Markdown from LlamaParse

Receive Parsed Document from LlamaParse

Webhook to Receive LlamaParse Response

Save Parsed Document to Google Drive

Troubleshooting

  • "Credentials not found": open the node and select your credential again.
  • Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
  • Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
  • AI node errors: check your API key has billing enabled and the model name exists on your plan.
  • Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.

Need help?

Reply to your Morning Method order email and we'll help you get it running.


© Morning Method

$19.00Regular price $49.0061% off
AI Document Parsing & Data Extraction with LlamaParse | n8n Automation | Morning Method