WorkflowGmailOpen

LlamaParse email attachment parsing n8n workflow

This n8n workflow reads email attachments from Gmail, sends them to LlamaParse for text extraction, and summarizes the result. It helps teams that receive invoices and documents by email and want the text, a summary and invoice details saved without opening each file.

What it does

A Gmail trigger finds messages with attachments, checks the file extension is supported, and posts the document to LlamaParse. The parsed markdown is classified and summarized with gpt-4o-mini, invoice details are pulled out as JSON, the file goes to Google Drive, a row goes to Google Sheets, and summaries arrive in Telegram.

How to use it

Connect Gmail, Google Drive, Google Sheets, Telegram and OpenAI, add your LlamaParse key to the HTTP request, and adjust the Gmail search and limit settings.

Requirements and limits

Only the first attachment of each email is processed.

More in Gmail and the n8n workflow library.

Full text

Front matter
name: ✨🔪 Advanced AI Powered Document Parsing & Text Extraction with Llama Parse
description: Triggered by a webhook. Connects Aggregate, Condition, Gmail, Google Drive, Google Sheets, HTTP request, Limit, Telegram. ## Send to LlamaParse {{ $env.API_BASE_URL }} ## Check for Supported File Extension {{ $env.API_BASE_URL }} ## 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.
category: Automation
kind: Workflow
software: Aggregate|Condition|Gmail|Google Drive|Google Sheets|HTTP request|Limit|Telegram|Webhook

✨🔪 Advanced AI Powered Document Parsing & Text Extraction with Llama Parse

Triggered by a webhook. Connects Aggregate, Condition, Gmail, Google Drive, Google Sheets, HTTP request, Limit, Telegram. ## Send to LlamaParse {{ $env.API_BASE_URL }} ## Check for Supported File Extension {{ $env.API_BASE_URL }} ## 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.

Steps

  • Webhook (webhook)
  • Gmail (gmail)
  • Gmail Trigger (gmailTrigger)
  • Limit (limit)
  • Get Message (gmail)
  • Sticky Note (stickyNote)
  • Parse Document with LlamaParse (httpRequest)
  • Summarize Email (noOp)
  • gpt-4o-mini (noOp)
  • Save LlamaParse ID and Summary to Google Sheets (googleSheets)
  • Save Document to Google Drive (googleDrive)
  • Extract Invoice Details as JSON (noOp)
  • gpt-4o-mini1 (noOp)
  • gpt-4o-mini2 (noOp)
  • Update Google Sheet by LlamaParse ID (googleSheets)
  • Invoice Details (set)
  • Prepare Message (set)
  • Send Invoice Details as Telegram Message (telegram)
  • gpt-4o-mini3 (noOp)
  • Send Error Message 2 (telegram)
  • Send Error Message 1 (telegram)
  • Send Document Summary as Telegram Message (telegram)
  • Summarize Document (noOp)
  • Classify Parsed Document (noOp)
  • Get Parsed Markdown (set)
  • Prepare Data (set)
  • HTTP Request (httpRequest)
  • Is there an Email Attachement (if)
  • Aggregate (aggregate)
  • Edit Fields (set)
  • Merge Email Processing (merge)
  • Merge (merge)
  • If Supported File Extensions (if)
  • No Operation, do nothing (noOp)
  • No Operation, do nothing1 (noOp)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Telegram/1904_Telegram_Limit_Process_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.