{
  "name": "Summarize Google Docs & PDFs with GPT-4 and send to Slack or email",
  "nodes": [
    {
      "id": "77c58599-2aea-4ba4-8132-4f82fdcf8bd3",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1136,
        720
      ]
    },
    {
      "id": "f645be4e-6234-4984-9e4a-1552e847d927",
      "name": "File Created",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        32,
        544
      ]
    },
    {
      "id": "e97c0523-5ba4-45d3-a993-b11320f99e26",
      "name": "Get a document",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        608,
        400
      ]
    },
    {
      "id": "cd20e8af-3fba-4204-a953-ab8d07c25184",
      "name": "Check Document Type",
      "type": "n8n-nodes-base.if",
      "position": [
        256,
        544
      ]
    },
    {
      "id": "db6038cb-5a52-420d-abd5-4655e2f383f0",
      "name": "Set Field",
      "type": "n8n-nodes-base.set",
      "position": [
        816,
        400
      ]
    },
    {
      "id": "bf9bf0f4-1315-4816-91ff-9b53c6bf9423",
      "name": "Convert to Text",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        816,
        768
      ]
    },
    {
      "id": "f34b4745-ebd6-430b-88c6-9c34d0e4b03d",
      "name": "Download PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        608,
        768
      ]
    },
    {
      "id": "4c376f18-39b0-4832-9fe9-2d574e2e31b3",
      "name": "Send message to Slack Channel",
      "type": "n8n-nodes-base.slack",
      "position": [
        1776,
        384
      ]
    },
    {
      "id": "ab6365c4-bba3-42fa-b702-fe4f5183ccc9",
      "name": "Email the Summary",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1792,
        656
      ]
    },
    {
      "id": "da8dfa4a-23ca-469f-ad13-9811184a3308",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        272
      ],
      "parameters": {
        "width": 560,
        "height": 688,
        "content": "## 📑 Auto trigger and checking file type"
      }
    },
    {
      "id": "d6411536-3cb7-499d-b27b-c18cf9a09e1d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        272
      ],
      "parameters": {
        "width": 480,
        "height": 320,
        "content": "## 📑 Docs, TXT file route"
      }
    },
    {
      "id": "cd769f6e-9ffb-431f-8c10-62a6ad85e452",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        272
      ],
      "parameters": {
        "width": 624,
        "height": 688,
        "content": "## 📑 Summarizing docs"
      }
    },
    {
      "id": "8515df5f-189b-4c8a-8ca8-2c0329544aad",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        272
      ],
      "parameters": {
        "width": 336,
        "height": 688,
        "content": "## 📑 Notifier"
      }
    },
    {
      "id": "ba29ca4f-8f7b-44f5-ae89-c53c88e288eb",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        624
      ],
      "parameters": {
        "width": 480,
        "height": 336,
        "content": "## 📑 PDF file route\n"
      }
    },
    {
      "id": "68ce3cde-5de5-4eed-be04-e98ffb53412a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        64
      ],
      "parameters": {
        "width": 928,
        "height": 1200,
        "content": "# 🛠️ Setup Guide  \n## **Author:** [Krishna Sharma]\n\nHere's the step to create AI-Powered Document Summarizer & Notifier workflow in n8n:\n\n### ✅ Step 1: Create a folder within Google Drive and make it "
      }
    },
    {
      "id": "d0cae7fa-fd10-4a7b-95ba-5e864357d94c",
      "name": "Doc Summarizer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1232,
        544
      ]
    }
  ],
  "connections": {
    "Set Field": {
      "main": [
        [
          {
            "node": "Doc Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF": {
      "main": [
        [
          {
            "node": "Convert to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File Created": {
      "main": [
        [
          {
            "node": "Check Document Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Doc Summarizer": {
      "main": [
        [
          {
            "node": "Send message to Slack Channel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email the Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a document": {
      "main": [
        [
          {
            "node": "Set Field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to Text": {
      "main": [
        [
          {
            "node": "Doc Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Doc Summarizer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Document Type": {
      "main": [
        [
          {
            "node": "Get a document",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}