{
  "name": "Daily email & calendar summaries to Slack using Gemini AI & Google Workspace",
  "nodes": [
    {
      "id": "766a5fc5-00d7-4874-ac0d-c3727476a708",
      "name": "Cron",
      "type": "n8n-nodes-base.cron",
      "position": [
        -1216,
        -96
      ]
    },
    {
      "id": "83f5136b-f441-4419-b31e-9c7e31705777",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        576,
        -176
      ]
    },
    {
      "id": "4339797c-3b99-41a2-b66d-d41b604a7efc",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        576,
        256
      ]
    },
    {
      "id": "44707b49-2c51-4295-b1b5-431199ceacc9",
      "name": "Get many events in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        688,
        448
      ]
    },
    {
      "id": "cee7ac7f-54ef-4240-a87f-755ae7bc8407",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        640,
        -336
      ]
    },
    {
      "id": "7cd241f5-05b8-4fcd-a0fb-941a1db50c78",
      "name": "Get weekly unread emails",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -720,
        -336
      ]
    },
    {
      "id": "bcd7209d-94a7-4fbb-9b3c-dc54d6572cc3",
      "name": "Get Names, emails and subject",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -464,
        -336
      ]
    },
    {
      "id": "783b5790-812d-4688-9a49-b8e7f77ae24c",
      "name": "Restructure the data from spread sheet",
      "type": "n8n-nodes-base.code",
      "position": [
        -48,
        -336
      ]
    },
    {
      "id": "1bc739a9-0082-417a-b60e-88069bc2742c",
      "name": "Filter the emails",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        -336
      ]
    },
    {
      "id": "a809c2be-4563-48fe-b096-2126d67dbde0",
      "name": "Restructure the code from the AI agent",
      "type": "n8n-nodes-base.code",
      "position": [
        960,
        -336
      ]
    },
    {
      "id": "20bd2254-88a0-4238-ad91-fcd6708b9def",
      "name": "Restructure the code from AI agent",
      "type": "n8n-nodes-base.code",
      "position": [
        992,
        256
      ]
    },
    {
      "id": "e6c0ad9c-0da5-4e59-bfdf-7f8381e1f241",
      "name": "Append mails and events ",
      "type": "n8n-nodes-base.merge",
      "position": [
        1552,
        -48
      ]
    },
    {
      "id": "9ad25b6a-fe2e-487c-a232-bdd36585ae8b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        -432
      ],
      "parameters": {
        "width": 544,
        "height": 288,
        "content": "## Get the unread emails for the past one week\n\n"
      }
    },
    {
      "id": "50ae9ce1-1bc5-42bd-bbe0-a16fd1c513d0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -480
      ],
      "parameters": {
        "width": 576,
        "height": 336,
        "content": "## Filter out emails based on Name, Email, Subject\n**Users can configure the name, email and subject in the Excel sheet. Emails will then be filtered based on these parameters, allowing users to retri"
      }
    },
    {
      "id": "0fe896b9-abe0-4134-b285-838206b9bb37",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -480
      ],
      "parameters": {
        "width": 608,
        "height": 464,
        "content": "\n## Summarizing emails\n**Emails are summarized using an AI agent. The agent reads each email individually, generates a concise summary with Gemini AI, and restructures the output to seamlessly merge w"
      }
    },
    {
      "id": "2a4fe129-be9f-4e12-8379-ca6ba058e9e9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        80
      ],
      "parameters": {
        "width": 704,
        "height": 496,
        "content": "\n## Summarizing Events\n**Read Google calendar and get events for the data and summarize it and restructure t**"
      }
    },
    {
      "id": "57547082-e53f-4372-8f48-24dba3f768bf",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -224
      ],
      "parameters": {
        "width": 688,
        "height": 400,
        "content": "## Send the event summary and Email summary to slack\n"
      }
    },
    {
      "id": "b595b001-08cf-4497-a5aa-afd3bba4d496",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1824,
        -928
      ],
      "parameters": {
        "width": 592,
        "height": 576,
        "content": "## 📩 Daily Email & 🗓️ Calendar Summary → 📢 Slack Notification System\n\n\n\n\n**What it does**  \n- Reads unread emails from the last 7 days.\n- Retrieves events from calendar for the current day.\n- Filters "
      }
    },
    {
      "id": "09162e4b-5d61-420b-a906-475ab749f6e3",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        1952,
        -48
      ]
    },
    {
      "id": "20be74e9-31be-44f9-aca9-28db494ea197",
      "name": "Restructure the code into slack block",
      "type": "n8n-nodes-base.code",
      "position": [
        1760,
        -48
      ]
    }
  ],
  "connections": {
    "Cron": {
      "main": [
        [
          {
            "node": "Get weekly unread emails",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Restructure the code from AI agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Restructure the code from the AI agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter the emails": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append mails and events ": {
      "main": [
        [
          {
            "node": "Restructure the code into slack block",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get weekly unread emails": {
      "main": [
        [
          {
            "node": "Get Names, emails and subject",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Names, emails and subject": {
      "main": [
        [
          {
            "node": "Restructure the data from spread sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many events in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Restructure the code from AI agent": {
      "main": [
        [
          {
            "node": "Append mails and events ",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Restructure the code into slack block": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Restructure the code from the AI agent": {
      "main": [
        [
          {
            "node": "Append mails and events ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Restructure the data from spread sheet": {
      "main": [
        [
          {
            "node": "Filter the emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}