{
  "name": "Create a Notion AI assistant with Google Gemini for managing tasks & content",
  "nodes": [
    {
      "id": "b73a14c4-935a-4c26-a0e9-0180a91d3c96",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        140,
        0
      ]
    },
    {
      "id": "caa0a241-ef95-4ebb-8923-4fa30506e382",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        540,
        220
      ]
    },
    {
      "id": "37b5cd8f-303e-4898-95c6-09331ffe310a",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        360,
        220
      ]
    },
    {
      "id": "8941aabf-a565-41db-a898-4f390f93a63c",
      "name": "AI Task Planner",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        0
      ]
    },
    {
      "id": "9150e740-e736-4001-b597-ded0b9046148",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        0
      ],
      "parameters": {
        "width": 420,
        "height": 360,
        "content": "## Create an AI assistant connected to Notion\n\nChat with your AI assistant and let it interact with your Notion workspace: ask information stored in Notion, create task, add content, create databases "
      }
    },
    {
      "id": "44732fe4-2eaa-46be-b17f-ac72a77faeb9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        400
      ],
      "parameters": {
        "width": null,
        "height": 100,
        "content": "**Disclaimer**\nThis templates is only available in self-hosted as it requires a community node."
      }
    },
    {
      "id": "bd201c87-d79d-45f0-a2ca-f4233c2e9390",
      "name": "Notion - execute tool",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        900,
        220
      ]
    },
    {
      "id": "076db3c9-7240-4936-94ef-67b47180d08d",
      "name": "Notion - list tools",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        740,
        220
      ]
    },
    {
      "id": "498d567b-abb2-44a6-a17f-709d1374b1da",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        360
      ],
      "parameters": {
        "width": 160,
        "height": 200,
        "content": "**Setup step 1** - Enter your Chat model API key.\n\nGemini is used in this example but you can use the model of your choice."
      }
    },
    {
      "id": "0d052137-f2e7-4abf-ba69-dc923a136e12",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        360
      ],
      "parameters": {
        "width": 400,
        "height": 80,
        "content": "**Setup step 2** - Install the [n8n-nodes-mcp community node](https://www.npmjs.com/package/n8n-nodes-mcp). [How to install a community node](https://docs.n8n.io/integrations/community-nodes/installat"
      }
    },
    {
      "id": "9215b268-c0aa-49e1-8818-20760c631d69",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        460
      ],
      "parameters": {
        "width": 400,
        "height": 380,
        "content": "**Setup step 3** - Enter your credentials for the Notion MCP server. \n\nCommand=npx\nArguments=-y @notionhq/notion-mcp-server\nEnvironment=(keep it empty) \n\nThe environment field is not compatible with t"
      }
    },
    {
      "id": "ac03f02c-6646-4a79-9196-5b258526a471",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        160
      ],
      "parameters": {
        "width": 220,
        "height": 180,
        "content": "**Setup step 4** - Click on \"open chat\" below and start interacting with your assistant.\n\nNote: be cautious regarding the pages you give your AI assistant access to. "
      }
    },
    {
      "id": "82d94df8-50e3-4228-91a3-af515a39315a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -140
      ],
      "parameters": {
        "width": 260,
        "height": 120,
        "content": "**Tip**\nGive some context to your AI agent by completing the system message in the AI Task Planner node."
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Task Planner",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Notion - list tools": {
      "ai_tool": [
        [
          {
            "node": "AI Task Planner",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Notion - execute tool": {
      "ai_tool": [
        [
          {
            "node": "AI Task Planner",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Task Planner",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Task Planner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}