{
  "name": "Capture and process ideas with GPT-4o-mini, Notion and Slack notifications",
  "nodes": [
    {
      "id": "555579a1-2e02-4273-85d4-a2d456b1b083",
      "name": "🌐 Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -240,
        64
      ]
    },
    {
      "id": "0ae8d1e6-0ba1-42d8-a477-f00434d0f449",
      "name": "🤖 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -16,
        64
      ]
    },
    {
      "id": "1a11f67b-58f0-4bab-9a39-24504216e038",
      "name": "💬 OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        64,
        288
      ]
    },
    {
      "id": "e1a3b2c3-6853-4df0-8cd3-33f3f8c2a087",
      "name": "🧑‍💻 Code",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        64
      ]
    },
    {
      "id": "a4d36c4d-8c78-405b-9465-ae05d5c7f54e",
      "name": "📝 Add to Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        560,
        64
      ]
    },
    {
      "id": "94c0952d-7f0e-4be5-9041-6144d20fdd13",
      "name": "✅ Send Confirmation (Slack)",
      "type": "n8n-nodes-base.slack",
      "position": [
        784,
        64
      ]
    },
    {
      "id": "37362989-2e8c-49aa-81ff-cee9ce44c8b8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        -368
      ],
      "parameters": {
        "width": 784,
        "height": 800,
        "content": "## 🛠️ Data Handling & Transformation\n\n*Input text comes in via Webhook ($json.body.text + user_id).\n\nAI Agent is instructed to output Title, Tags, Submitted By, and Created date in IST.\n\nThe Code node"
      }
    },
    {
      "id": "0546d4fa-157a-49ba-93cb-95d34a2080c9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -368
      ],
      "parameters": {
        "width": 192,
        "height": 800,
        "content": "## 🗂️ Database (Notion Integration)\n\n*Data is added into Notion (Ideas DB) with mapped properties:\n\nTitle → title property\n\nSubmitted By → rich text\n\nCreated → date (IST, but stored cleanly without \"I"
      }
    },
    {
      "id": "b044e4f5-7a4f-4bd5-9093-1785a1553bf4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -368
      ],
      "parameters": {
        "width": 208,
        "height": 800,
        "content": "## 💬 Notifications\n\n*Once saved in Notion, the workflow notifies Slack with a friendly message:\n\nConfirms submission.\n\nEchoes back the submitted idea title.*"
      }
    }
  ],
  "connections": {
    "🌐 Webhook": {
      "main": [
        [
          {
            "node": "🤖 AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Agent": {
      "main": [
        [
          {
            "node": "🧑‍💻 Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧑‍💻 Code": {
      "main": [
        [
          {
            "node": "📝 Add to Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Add to Notion": {
      "main": [
        [
          {
            "node": "✅ Send Confirmation (Slack)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💬 OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}