{
  "name": "Slack AI ChatBot : context-aware, replies to mentions AND also DMs",
  "nodes": [
    {
      "id": "56138b72-10df-438f-8b9e-d82e1ebd87c2",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        3720,
        3080
      ]
    },
    {
      "id": "3835abae-f509-4dd0-900a-9742c06ae820",
      "name": "Mapping data for the Agent",
      "type": "n8n-nodes-base.set",
      "position": [
        2680,
        2620
      ]
    },
    {
      "id": "a0d16777-a89f-402c-b917-abb5da590b25",
      "name": "Either the bot should reply in dm or in public channel",
      "type": "n8n-nodes-base.if",
      "position": [
        3380,
        2620
      ]
    },
    {
      "id": "161739af-625d-4c80-b142-24d81eb51064",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2140,
        2360
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "14fbf245-db4e-4812-986b-8f94293c3b15",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        2880
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b76e4fc2-f503-4341-add4-51b9ac47781c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3560,
        2300
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "de201034-00f1-4add-be95-53cff68d0d8b",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        3660,
        3240
      ]
    },
    {
      "id": "27d04c7c-0d05-4846-8e4f-533ef6ca0651",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3600,
        2980
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "468354ca-36a4-41b6-b0bd-c0d643088f21",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2960,
        2620
      ]
    },
    {
      "id": "5c7ade77-c267-40a5-b04b-f1cdde87ed42",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2880,
        2280
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d14546a5-c5f1-495c-a7bf-2618f2841cea",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        2000
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ea3ceb64-862a-49e3-9b43-1b0a1902cee7",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3160,
        2860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "849f22d8-8181-469e-9ffd-c555b33776bc",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        3040,
        3000
      ]
    },
    {
      "id": "f5597b86-dffc-4280-8707-343ec3a7a116",
      "name": "Reply to public mention",
      "type": "n8n-nodes-base.slack",
      "position": [
        3680,
        2760
      ]
    },
    {
      "id": "17b4e501-e5ee-4fb2-8a95-73b21b8b686f",
      "name": "Reply to DM",
      "type": "n8n-nodes-base.slack",
      "position": [
        3680,
        2480
      ]
    },
    {
      "id": "cb98b088-6c08-4538-a0ba-6a2f27244be4",
      "name": "Get the history of a channel in Slack",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        3260,
        3060
      ]
    },
    {
      "id": "9dbfc53e-3cca-438c-92d1-4308559d7a87",
      "name": "Slack Trigger",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        2300,
        2620
      ]
    },
    {
      "id": "68931226-a994-468d-8271-862f19b26e0d",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2720,
        2980
      ]
    },
    {
      "id": "a319ebb9-3523-47c6-b0af-7c04c00b1712",
      "name": "Simple Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2920,
        3000
      ]
    }
  ],
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Either the bot should reply in dm or in public channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Trigger": {
      "main": [
        [
          {
            "node": "Mapping data for the Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mapping data for the Agent": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get the history of a channel in Slack": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Either the bot should reply in dm or in public channel": {
      "main": [
        [
          {
            "node": "Reply to DM",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Reply to public mention",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}