{
  "name": "Monitor Gmail and send AI summaries to Telegram using GPT-4o-mini and keywords",
  "nodes": [
    {
      "id": "a47db6e0-7861-4c0e-9628-1cab45cce413",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        160,
        540
      ]
    },
    {
      "id": "5b19646e-e002-4ad0-9422-70d95fa09f79",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -100
      ],
      "parameters": {
        "width": 2020,
        "height": 1140,
        "content": "## 📌 Email Summary to Telegram\n\n## 🔄 What this workflow does\nThis automation checks your Gmail inbox every minute, detects important emails based on keyword filters, and sends a short, Telegram-style "
      }
    },
    {
      "id": "38ec8af8-000a-4c81-ac84-3f57b13653ff",
      "name": "Check for New Emails",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -300,
        570
      ]
    },
    {
      "id": "e9ca1183-73c2-40ae-8911-dc293c76d3af",
      "name": "Important Email Filter",
      "type": "n8n-nodes-base.if",
      "position": [
        -80,
        570
      ]
    },
    {
      "id": "d646dfa9-28f3-4466-9bbe-154397d1c7af",
      "name": " Ignore Unimportant Email",
      "type": "n8n-nodes-base.noOp",
      "position": [
        210,
        720
      ]
    },
    {
      "id": "c5b0111c-f1ee-4d9c-94bc-e64e83c5ba6f",
      "name": "Summarize Email with GPT-4o",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        140,
        340
      ]
    },
    {
      "id": "7937a159-cb46-445b-87fc-3751297e269c",
      "name": "Send Summary to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        500,
        340
      ]
    }
  ],
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Email with GPT-4o",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check for New Emails": {
      "main": [
        [
          {
            "node": "Important Email Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Important Email Filter": {
      "main": [
        [
          {
            "node": "Summarize Email with GPT-4o",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": " Ignore Unimportant Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Email with GPT-4o": {
      "main": [
        [
          {
            "node": "Send Summary to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}