AutomationFlowsAI & RAG › Process & Summarize Pdfs From Email & Messaging Apps with Openai Gpt

Process & Summarize Pdfs From Email & Messaging Apps with Openai Gpt

Bypapcy @papcy on n8n.io

Transform PDF documents into actionable insights automatically across multiple platforms. This workflow monitors emails and messaging platforms for PDF attachments, extracts content, and delivers AI-powered summaries.

Event trigger★★★★☆ complexityAI-powered28 nodesGmailMicrosoft OutlookTelegram TriggerWhatsApp TriggerWhatsAppTelegramAgentOpenAI Chat
AI & RAG Trigger: Event Nodes: 28 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #5592 — we link there as the canonical source.

This workflow follows the Agent → Gmail recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "8d587c30-1a5e-41e0-a57a-d8f6ea9b813b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3900,
        580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e0916c2e-8bf6-4d6f-a524-49321dfd36dc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3040,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f20b63e7-27c5-4110-89d8-d9a60749ef64",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3320,
        980
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a6deede2-b4db-411d-a0b8-c638e47e5cce",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1920,
        800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9c9e9fc3-c529-443c-92af-563e484255d4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1140,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ff05f9ad-a677-4427-bd04-61fe199c83b7",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2200,
        160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d14ac774-ed2f-4afd-a719-b2974e023cae",
      "name": "Gmail Email Monitor",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -2980,
        580
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "f3f13448-dcbc-4bff-8fac-40b4637c750c",
      "name": "Outlook Email Monitor",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        -2980,
        780
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "12462284-5842-4e01-9155-828f5001878d",
      "name": "Telegram Bot Receiver",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2980,
        980
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "beae0c9d-1b1e-47c0-a606-ed0e28c5b30b",
      "name": "WhatsApp Business Receiver",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -2980,
        1180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d047490e-d5ea-42cc-a939-8becf9cf1d99",
      "name": "Validate Telegram PDF",
      "type": "n8n-nodes-base.if",
      "position": [
        -2540,
        980
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9188b990-514b-4953-8366-5f78408fc430",
      "name": "Validate WhatsApp PDF",
      "type": "n8n-nodes-base.if",
      "position": [
        -2540,
        1180
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "35eda327-2c0a-4616-b60b-a57b46bfcf16",
      "name": "Extract PDF Text Content",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -2100,
        980
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7a9a3361-c25b-460b-8544-6542d2775692",
      "name": "Prepare Response Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1504,
        980
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "afbdabae-a4c0-4f21-a8e1-64f1df2a3052",
      "name": "Route Response by Platform",
      "type": "n8n-nodes-base.if",
      "position": [
        -1284,
        980
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "40dfaf0a-8633-4957-aa3a-08ebfe661069",
      "name": "Send WhatsApp Summary",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1064,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5ea8d3d6-0fb6-4341-b747-97dcafe40ae3",
      "name": "Send Telegram Summary",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1060,
        1080
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8458ae5f-c99f-4b34-bc3e-fdfda72722cd",
      "name": "Notify Email PDF Processing",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1064,
        680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "761b32c6-2b9e-42a4-841b-40380dcb6ac1",
      "name": "AI PDF Summarizer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1880,
        980
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a25a69bf-f3cc-4afb-b285-92cf7f4f6ccc",
      "name": "Check Email Attachments1",
      "type": "n8n-nodes-base.if",
      "position": [
        -2540,
        680
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5fb40a4e-ff33-4d36-951e-a8a610933b8b",
      "name": "Extract Gmail Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -2760,
        580
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "b96a5582-7d95-4f28-a538-03b59c3f8623",
      "name": "Extract Outlook Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -2760,
        780
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "5b9b94c5-f3c9-4f9b-9ae0-cf7c44c9a546",
      "name": "Extract Telegram Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -2760,
        980
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "5d5ad692-a4ad-494b-a1b8-232bd0c6c8f3",
      "name": "Extract WhatsApp Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -2760,
        1180
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "a548d201-851b-4cdd-bbc4-fb07ef5ae0ac",
      "name": "Download WhatsApp PDF",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -2320,
        1180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e9f76e99-ae72-4914-a6ac-07f77382a177",
      "name": "Download Telegram PDF",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -2320,
        980
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "514ebc83-def4-43fd-9765-60cff2650524",
      "name": "Filter PDF Attachments",
      "type": "n8n-nodes-base.code",
      "position": [
        -2320,
        680
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "65c75ced-a300-4c11-b1c1-3a84f7f7030a",
      "name": "Summarize PDF",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1800,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "connections": {
    "Summarize PDF": {
      "ai_languageModel": [
        [
          {
            "node": "AI PDF Summarizer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI PDF Summarizer": {
      "main": [
        [
          {
            "node": "Prepare Response Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Gmail Data": {
      "main": [
        [
          {
            "node": "Check Email Attachments1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Email Monitor": {
      "main": [
        [
          {
            "node": "Extract Gmail Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Outlook Data": {
      "main": [
        [
          {
            "node": "Check Email Attachments1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Telegram PDF": {
      "main": [
        [
          {
            "node": "Extract PDF Text Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download WhatsApp PDF": {
      "main": [
        [
          {
            "node": "Extract PDF Text Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Telegram Data": {
      "main": [
        [
          {
            "node": "Validate Telegram PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract WhatsApp Data": {
      "main": [
        [
          {
            "node": "Validate WhatsApp PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Outlook Email Monitor": {
      "main": [
        [
          {
            "node": "Extract Outlook Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Response Data": {
      "main": [
        [
          {
            "node": "Route Response by Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Bot Receiver": {
      "main": [
        [
          {
            "node": "Extract Telegram Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Telegram PDF": {
      "main": [
        [
          {
            "node": "Download Telegram PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate WhatsApp PDF": {
      "main": [
        [
          {
            "node": "Download WhatsApp PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter PDF Attachments": {
      "main": [
        [
          {
            "node": "Extract PDF Text Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Email Attachments1": {
      "main": [
        [
          {
            "node": "Filter PDF Attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract PDF Text Content": {
      "main": [
        [
          {
            "node": "AI PDF Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Response by Platform": {
      "main": [
        [
          {
            "node": "Send WhatsApp Summary",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Email PDF Processing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Telegram Summary",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Email PDF Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Receiver": {
      "main": [
        [
          {
            "node": "Extract WhatsApp Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Transform PDF documents into actionable insights automatically across multiple platforms. This workflow monitors emails and messaging platforms for PDF attachments, extracts content, and delivers AI-powered summaries.

Source: https://n8n.io/workflows/5592/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Magento store issues never wait for office hours. Caches fill up, indexes break, or maintenance mode gets stuck — usually late at night, during weekends, or right before a campaign launch. Most store

OpenAI Chat, Ssh, Telegram +6
AI & RAG

Transform your salon/service business with this streamlined WhatsApp automation system featuring Claude integration, zero-setup database management, and intelligent conversation handling. Claude MCP I

WhatsApp Trigger, WhatsApp, Redis +11
AI & RAG

Automate your personal productivity with this intelligent n8n workflow that integrates Telegram, Google Sheets, and OpenAI (GPT-4o). This system uses multiple AI agents to manage work hours, tasks, fi

Agent, OpenAI Chat, Telegram +9
AI & RAG

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Agent, OpenAI Chat, OpenAI +8
AI & RAG

This workflow helps Customer Success Managers brain dump their client knowledge via voice notes and kickstart business review preparation by auto-generating a structured Google Slides draft in their o

Google Drive, Gmail, Telegram Trigger +7