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