{
  "openruna_format": "flow-graph-v1",
  "title": "✨🔪 Advanced AI Powered Document Parsing & Text Extraction with Llama Parse",
  "slug": "advanced-ai-powered-document-parsing-text-extraction-with-llama-parse",
  "source_filename": "1904_Telegram_Limit_Process_Webhook.json",
  "nodes": [
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Gmail",
      "name": "Gmail",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Gmail Trigger",
      "name": "Gmail Trigger",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "Limit",
      "name": "Limit",
      "integration": "limit",
      "kind": "logic"
    },
    {
      "id": "Get Message",
      "name": "Get Message",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Parse Document with LlamaParse",
      "name": "Parse Document with LlamaParse",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Summarize Email",
      "name": "Summarize Email",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "gpt-4o-mini",
      "name": "gpt-4o-mini",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Save LlamaParse ID and Summary to Google Sheets",
      "name": "Save LlamaParse ID and Summary to Google Sheets",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Save Document to Google Drive",
      "name": "Save Document to Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Extract Invoice Details as JSON",
      "name": "Extract Invoice Details as JSON",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "gpt-4o-mini1",
      "name": "gpt-4o-mini1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "gpt-4o-mini2",
      "name": "gpt-4o-mini2",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Update Google Sheet by LlamaParse ID",
      "name": "Update Google Sheet by LlamaParse ID",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Invoice Details",
      "name": "Invoice Details",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Prepare Message",
      "name": "Prepare Message",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Send Invoice Details as Telegram Message",
      "name": "Send Invoice Details as Telegram Message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "gpt-4o-mini3",
      "name": "gpt-4o-mini3",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Send Error Message 2",
      "name": "Send Error Message 2",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send Error Message 1",
      "name": "Send Error Message 1",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send Document Summary as Telegram Message",
      "name": "Send Document Summary as Telegram Message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Summarize Document",
      "name": "Summarize Document",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "Classify Parsed Document",
      "name": "Classify Parsed Document",
      "integration": "@n8n/n8n-nodes-langchain.textClassifier",
      "kind": "action"
    },
    {
      "id": "Get Parsed Markdown",
      "name": "Get Parsed Markdown",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Prepare Data",
      "name": "Prepare Data",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "HTTP Request",
      "name": "HTTP Request",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Is there an Email Attachement",
      "name": "Is there an Email Attachement",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Edit Fields",
      "name": "Edit Fields",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Merge Email Processing",
      "name": "Merge Email Processing",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "If Supported File Extensions",
      "name": "If Supported File Extensions",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "No Operation, do nothing1",
      "name": "No Operation, do nothing1",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Save Summarized Document to Google Drive",
      "name": "Save Summarized Document to Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Save Parsed Document to Google Drive",
      "name": "Save Parsed Document to Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Gmail",
      "to": "Limit"
    },
    {
      "from": "Limit",
      "to": "Get Message"
    },
    {
      "from": "Merge",
      "to": "Parse Document with LlamaParse"
    },
    {
      "from": "Merge",
      "to": "Save Document to Google Drive"
    },
    {
      "from": "Merge",
      "to": "Summarize Email"
    },
    {
      "from": "Webhook",
      "to": "Get Parsed Markdown"
    },
    {
      "from": "Aggregate",
      "to": "Edit Fields"
    },
    {
      "from": "Edit Fields",
      "to": "If Supported File Extensions"
    },
    {
      "from": "Get Message",
      "to": "Is there an Email Attachement"
    },
    {
      "from": "HTTP Request",
      "to": "Aggregate"
    },
    {
      "from": "Prepare Data",
      "to": "Merge Email Processing"
    },
    {
      "from": "Gmail Trigger",
      "to": "Gmail"
    },
    {
      "from": "Invoice Details",
      "to": "Prepare Message"
    },
    {
      "from": "Invoice Details",
      "to": "Update Google Sheet by LlamaParse ID"
    },
    {
      "from": "Prepare Message",
      "to": "Send Invoice Details as Telegram Message"
    },
    {
      "from": "Summarize Email",
      "to": "Merge Email Processing"
    },
    {
      "from": "Summarize Document",
      "to": "Send Document Summary as Telegram Message"
    },
    {
      "from": "Summarize Document",
      "to": "Save Summarized Document to Google Drive"
    },
    {
      "from": "Summarize Document",
      "to": "Send Error Message 1"
    },
    {
      "from": "Get Parsed Markdown",
      "to": "Classify Parsed Document"
    },
    {
      "from": "Get Parsed Markdown",
      "to": "Save Parsed Document to Google Drive"
    },
    {
      "from": "Merge Email Processing",
      "to": "Save LlamaParse ID and Summary to Google Sheets"
    },
    {
      "from": "Classify Parsed Document",
      "to": "Summarize Document"
    },
    {
      "from": "Classify Parsed Document",
      "to": "Extract Invoice Details as JSON"
    },
    {
      "from": "If Supported File Extensions",
      "to": "Merge"
    },
    {
      "from": "If Supported File Extensions",
      "to": "No Operation, do nothing1"
    },
    {
      "from": "Is there an Email Attachement",
      "to": "HTTP Request"
    },
    {
      "from": "Is there an Email Attachement",
      "to": "Merge"
    },
    {
      "from": "Is there an Email Attachement",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Save Document to Google Drive",
      "to": "Prepare Data"
    },
    {
      "from": "Parse Document with LlamaParse",
      "to": "Merge Email Processing"
    },
    {
      "from": "Extract Invoice Details as JSON",
      "to": "Invoice Details"
    },
    {
      "from": "Extract Invoice Details as JSON",
      "to": "Send Error Message 2"
    }
  ]
}