{
  "name": "Summarize PDF documents in Telegram with Groq AI",
  "nodes": [
    {
      "id": "0cd3a6d7-6e8e-43d6-975d-18549c8e6e9d",
      "name": "Get PDF Data",
      "type": "n8n-nodes-base.set",
      "position": [
        352,
        -176
      ]
    },
    {
      "id": "282fc6aa-c906-4191-a8dd-59357ee2a6e3",
      "name": "Extract PDF Data",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        160,
        -176
      ]
    },
    {
      "id": "ac1f29c1-98b2-4170-ae50-1e6738b41931",
      "name": "Data Parser & Cleaner",
      "type": "n8n-nodes-base.code",
      "position": [
        544,
        -176
      ]
    },
    {
      "id": "c10225ce-b103-481a-b775-0c88c2a44d34",
      "name": "Is PDF File",
      "type": "n8n-nodes-base.if",
      "position": [
        -112,
        -272
      ]
    },
    {
      "id": "cc27f96f-2167-4c01-be32-a2dbf4abc764",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -112,
        -48
      ]
    },
    {
      "id": "224456cf-cb49-4870-aa50-792d874dd9ce",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -352
      ],
      "parameters": {
        "width": 432,
        "height": 464,
        "content": "## Receive and Filter"
      }
    },
    {
      "id": "8ff09bd8-8e1f-4bca-b3a9-178ba9aab036",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -288
      ],
      "parameters": {
        "width": 592,
        "height": 288,
        "content": "## Extract and Clean\nConverts binary PDF data into clean, plain text."
      }
    },
    {
      "id": "04b4da9f-1c3e-40db-b762-fabe7ee1563c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -320
      ],
      "parameters": {
        "width": 304,
        "height": 400,
        "content": "## Summarizing\nGenerates a structured summary using AI"
      }
    },
    {
      "id": "62d113e0-d279-4c28-a91f-8707d6ec99ef",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        784,
        -224
      ]
    },
    {
      "id": "9d5f909e-7f1c-4884-a21f-c581eee92c36",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -288,
        -272
      ]
    },
    {
      "id": "db7fc6d0-da27-44ff-93b4-6675191cadd3",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        848,
        -64
      ]
    },
    {
      "id": "c56853a9-ae32-4242-be49-5fe97d66c0e7",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1152,
        -160
      ]
    },
    {
      "id": "bb869178-6ea3-481e-b14b-3716abb12e9f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        -256
      ],
      "parameters": {
        "width": 256,
        "height": 272,
        "content": "## Response\nSends the insight back to the user."
      }
    },
    {
      "id": "9f6fb78d-7d8b-4cc4-8432-ffb74c49b616",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -432
      ],
      "parameters": {
        "width": 1776,
        "height": 976,
        "content": "## AI-Powered Document Summarization With Telegram ⌯⌲"
      }
    },
    {
      "id": "68d198ca-58bb-43a6-b2bd-47891785a00c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        176
      ],
      "parameters": {
        "width": 832,
        "height": 336,
        "content": "## How it works\nThis workflow turns your Telegram bot into a personal document analyst. When you upload a PDF file to the chat, n8n automatically intercepts the document and extracts and cleans the ra"
      }
    },
    {
      "id": "4a38d3e9-02fe-45b6-b801-b273991f2833",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        176
      ],
      "parameters": {
        "width": 784,
        "height": 336,
        "content": "## Quick Demo\n- Open your bot on Telegram.\n- Drag and drop a financial report or academic paper (PDF) into the chat.\n- Wait 5-10 seconds.\n- Receive a formatted \"Executive Summary\" with bulleted insigh"
      }
    }
  ],
  "connections": {
    "Is PDF File": {
      "main": [
        [
          {
            "node": "Extract PDF Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get PDF Data": {
      "main": [
        [
          {
            "node": "Data Parser & Cleaner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract PDF Data": {
      "main": [
        [
          {
            "node": "Get PDF Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Is PDF File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data Parser & Cleaner": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}