{
  "name": "Manage creator sponsorship and brand deals with Gmail, OpenAI, Notion and Telegram",
  "nodes": [
    {
      "id": "7d278e5b-7472-49ee-811a-ed3388449dfa",
      "name": "Sticky Note - Header",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        848
      ],
      "parameters": {
        "width": 2712,
        "height": null,
        "content": "# Creator Sponsorship & Brand Deal OS\n\nAutomatically detects sponsorship emails, logs deals to Notion, drafts replies, sends follow-up reminders, and generates monthly revenue reports.\n\n**Stack:** Gma"
      }
    },
    {
      "id": "a704afba-3fca-49a0-a2f8-90d707cc7e05",
      "name": "Sticky Note - Flow A",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        1088
      ],
      "parameters": {
        "width": 2712,
        "height": 516,
        "content": "## 📧 Flow A — Inbound Email Detection\n\n- Polls Gmail every minute for new emails\n- AI classifies if it's a sponsorship inquiry (ignores everything else)\n- Extracts company name, contact, budget, campa"
      }
    },
    {
      "id": "ad393f31-656a-446a-a34b-11850bf3940c",
      "name": "Sticky Note - Flow B",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        1664
      ],
      "parameters": {
        "width": 2216,
        "height": 424,
        "content": "## 🔔 Flow B — Daily Follow-up System\n\n- Runs automatically every day at 9 AM\n- Fetches all Notion deals where Follow-up Date = today\n- Loops through each deal and generates a personalized follow-up em"
      }
    },
    {
      "id": "92b4fa74-ad95-4679-a892-6997a8738f03",
      "name": "Sticky Note - Flow C",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        2128
      ],
      "parameters": {
        "width": 1624,
        "height": 520,
        "content": "## 📊 Flow C — Monthly Revenue Report\n\n- Runs on the 1st of every month at 8 AM\n- Fetches all Paid deals from Notion and filters last month's data\n- Calculates total revenue, deal count, avg deal value"
      }
    },
    {
      "id": "9b84f32a-bc4f-4b79-b5b6-4c32a331e4e3",
      "name": "Sticky Note - AI Block A",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        1424
      ],
      "parameters": {
        "width": 520,
        "height": 180,
        "content": "### 🤖 AI Classification Block\nOpenAI classifies email + extracts structured data.\nModel sub-node must be connected to chain."
      }
    },
    {
      "id": "89a88fe4-9330-4f23-aa59-5ee91645792f",
      "name": "Sticky Note - Notion Block",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2128,
        1392
      ],
      "parameters": {
        "width": 280,
        "height": null,
        "content": "### 🗃️ Notion CRM Block\nSearches for existing deal.\nCreates new or updates existing entry."
      }
    },
    {
      "id": "ea77d8b5-9f81-4825-881e-3d49b9b55c7f",
      "name": "Sticky Note - AI Block B",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2288,
        1840
      ],
      "parameters": {
        "width": 500,
        "height": 208,
        "content": "### 🤖 AI Follow-up Block\nGenerates personalized follow-up draft per deal."
      }
    },
    {
      "id": "31b7740a-e600-4f62-9d69-7df0b486d2cf",
      "name": "Sticky Note - AI Block C",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        2192
      ],
      "parameters": {
        "width": 324,
        "height": 432,
        "content": "### 🤖 AI Report Block\nWrites monthly revenue narrative with insights and tips."
      }
    },
    {
      "id": "c3b01671-c364-44a9-970d-96b89e5bf61a",
      "name": "📧 Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        960,
        1296
      ]
    },
    {
      "id": "fed4b545-9cba-4523-bf46-2cf4b167a066",
      "name": "🔧 Extract Email Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1200,
        1296
      ]
    },
    {
      "id": "dce14a46-a911-4525-b173-83bdd23f5093",
      "name": "🤖 OpenAI - Classifier",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1728,
        1472
      ]
    },
    {
      "id": "cb97ffb0-373f-4597-b0c2-04ffdf10e9c4",
      "name": "🧠 LLM - Classify and Extract",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1408,
        1296
      ]
    },
    {
      "id": "92b40b99-1813-4d06-8fb1-ff86009dfffd",
      "name": "⚙️ Parse AI Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1712,
        1296
      ]
    },
    {
      "id": "66a44744-3037-4e01-bc49-9124e37fd928",
      "name": "🔍 Is Sponsorship?",
      "type": "n8n-nodes-base.if",
      "position": [
        1920,
        1296
      ]
    },
    {
      "id": "9464eb67-7162-449e-b80d-44899b9d42c1",
      "name": "🔎 Notion - Search Deal",
      "type": "n8n-nodes-base.notion",
      "position": [
        2160,
        1200
      ]
    },
    {
      "id": "6aeccaab-6af9-4ca8-8f86-4d68b08a452e",
      "name": "📋 Deal Already Exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        2400,
        1200
      ]
    },
    {
      "id": "bcd8c910-6327-451a-a793-588c223cbda5",
      "name": "✅ Notion - Create Deal",
      "type": "n8n-nodes-base.notion",
      "position": [
        2640,
        1104
      ]
    },
    {
      "id": "40278060-a041-4517-9704-565d28c9a7dd",
      "name": "🔄 Notion - Update Deal",
      "type": "n8n-nodes-base.notion",
      "position": [
        2640,
        1296
      ]
    },
    {
      "id": "558f4316-418e-40c4-990b-157b1448594c",
      "name": "🔀 Merge After Save",
      "type": "n8n-nodes-base.merge",
      "position": [
        2880,
        1200
      ]
    },
    {
      "id": "06bf3a97-878d-431f-8ecf-e3f0b7306025",
      "name": "🤖 OpenAI - Reply Drafter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3120,
        1360
      ]
    },
    {
      "id": "39f8176d-1380-4bce-b63e-01d4806c32e3",
      "name": "✍️ LLM - Draft Reply",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3120,
        1200
      ]
    },
    {
      "id": "96553d5f-a33f-448e-91bc-89376a5afaaf",
      "name": "📱 Telegram - New Deal Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3440,
        1200
      ]
    },
    {
      "id": "ee26ffdb-f5de-4e6f-b9d0-a9b46554c831",
      "name": "⏰ Daily 9AM Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        976,
        1904
      ]
    },
    {
      "id": "c7407f6e-cdf4-4351-a880-bf8c652a4624",
      "name": "📋 Notion - Get Follow-ups",
      "type": "n8n-nodes-base.notion",
      "position": [
        1200,
        1904
      ]
    },
    {
      "id": "14702780-287c-4a0e-95bb-3c3e9edc4008",
      "name": "📌 Has Follow-ups Today?",
      "type": "n8n-nodes-base.if",
      "position": [
        1440,
        1904
      ]
    },
    {
      "id": "642672b2-bb8e-4af3-9683-4f60233964c8",
      "name": "🔁 Loop Each Deal",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1776,
        1696
      ]
    },
    {
      "id": "2eb3b82b-aa2e-45aa-9c6e-3d5c560e0e37",
      "name": "🔧 Extract Deal Info",
      "type": "n8n-nodes-base.set",
      "position": [
        2128,
        1680
      ]
    },
    {
      "id": "19b05e1f-a492-4c6e-ac54-625a05154058",
      "name": "🤖 OpenAI - Follow-up",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2624,
        1904
      ]
    },
    {
      "id": "f8509ada-cc6f-420e-b8ff-e0ea1cea1cb3",
      "name": "✍️ LLM - Follow-up Draft",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2432,
        1680
      ]
    },
    {
      "id": "b904e4a3-411f-4aee-95f1-d6709ff97d6d",
      "name": "📱 Telegram - Follow-up Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2848,
        1680
      ]
    },
    {
      "id": "e9da37e5-8885-4a7c-afbb-c737bd8ce3e5",
      "name": "📅 Monthly Report Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        976,
        2352
      ]
    },
    {
      "id": "39e529f5-2f4c-48a7-9fcc-e567418ac9c5",
      "name": "💰 Notion - Get Paid Deals",
      "type": "n8n-nodes-base.notion",
      "position": [
        1200,
        2352
      ]
    },
    {
      "id": "b3b842b3-59b6-4a0d-b3f6-32982830b833",
      "name": "📊 Calculate Revenue Stats",
      "type": "n8n-nodes-base.code",
      "position": [
        1440,
        2352
      ]
    },
    {
      "id": "9356227d-8041-4c36-94ed-d7211ac8c120",
      "name": "🤖 OpenAI - Report Writer",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1680,
        2496
      ]
    },
    {
      "id": "afdb4338-43df-4e65-b1e1-d17bbf363fd9",
      "name": "✍️ LLM - Monthly Summary",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1680,
        2288
      ]
    },
    {
      "id": "eb5f6f3a-f144-4bcb-8f66-17d4a70c9ae8",
      "name": "📱 Telegram - Monthly Report",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2064,
        2288
      ]
    },
    {
      "id": "b4541787-2234-4441-8368-e90fd1297013",
      "name": "📧 Gmail - Monthly Report Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2336,
        2288
      ]
    }
  ],
  "connections": {
    "📧 Gmail Trigger": {
      "main": [
        [
          {
            "node": "🔧 Extract Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔁 Loop Each Deal": {
      "main": [
        [
          {
            "node": "🔧 Extract Deal Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Is Sponsorship?": {
      "main": [
        [
          {
            "node": "🔎 Notion - Search Deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏰ Daily 9AM Trigger": {
      "main": [
        [
          {
            "node": "📋 Notion - Get Follow-ups",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔀 Merge After Save": {
      "main": [
        [
          {
            "node": "✍️ LLM - Draft Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔧 Extract Deal Info": {
      "main": [
        [
          {
            "node": "✍️ LLM - Follow-up Draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔧 Extract Email Data": {
      "main": [
        [
          {
            "node": "🧠 LLM - Classify and Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 OpenAI - Follow-up": {
      "ai_languageModel": [
        [
          {
            "node": "✍️ LLM - Follow-up Draft",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Parse AI Response": {
      "main": [
        [
          {
            "node": "🔍 Is Sponsorship?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "✅ Notion - Create Deal": {
      "main": [
        [
          {
            "node": "🔀 Merge After Save",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "✍️ LLM - Draft Reply": {
      "main": [
        [
          {
            "node": "📱 Telegram - New Deal Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 OpenAI - Classifier": {
      "ai_languageModel": [
        [
          {
            "node": "🧠 LLM - Classify and Extract",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "📋 Deal Already Exists?": {
      "main": [
        [
          {
            "node": "🔄 Notion - Update Deal",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "✅ Notion - Create Deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Notion - Update Deal": {
      "main": [
        [
          {
            "node": "🔀 Merge After Save",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "🔎 Notion - Search Deal": {
      "main": [
        [
          {
            "node": "📋 Deal Already Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📌 Has Follow-ups Today?": {
      "main": [
        [
          {
            "node": "🔁 Loop Each Deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📅 Monthly Report Trigger": {
      "main": [
        [
          {
            "node": "💰 Notion - Get Paid Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 OpenAI - Reply Drafter": {
      "ai_languageModel": [
        [
          {
            "node": "✍️ LLM - Draft Reply",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "🤖 OpenAI - Report Writer": {
      "ai_languageModel": [
        [
          {
            "node": "✍️ LLM - Monthly Summary",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "✍️ LLM - Follow-up Draft": {
      "main": [
        [
          {
            "node": "📱 Telegram - Follow-up Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "✍️ LLM - Monthly Summary": {
      "main": [
        [
          {
            "node": "📱 Telegram - Monthly Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💰 Notion - Get Paid Deals": {
      "main": [
        [
          {
            "node": "📊 Calculate Revenue Stats",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Calculate Revenue Stats": {
      "main": [
        [
          {
            "node": "✍️ LLM - Monthly Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📋 Notion - Get Follow-ups": {
      "main": [
        [
          {
            "node": "📌 Has Follow-ups Today?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📱 Telegram - Monthly Report": {
      "main": [
        [
          {
            "node": "📧 Gmail - Monthly Report Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧠 LLM - Classify and Extract": {
      "main": [
        [
          {
            "node": "⚙️ Parse AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}