{
  "nodes": [
    {
      "id": "e3b58169-cb74-493b-ae2e-6f54a0115453",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        400,
        656
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "de38bfbc-d910-46c7-856d-9f05dca25b6e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        816,
        800
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1.9
    },
    {
      "id": "6f68256e-5e7f-4058-89fa-807e6227ea2b",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        416,
        848
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f54e9007-64a7-40f5-9168-53e3139433c9",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1056,
        1056
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "2473c42c-f9d8-441a-80a9-1109f1e0b316",
      "name": "Get_Resources",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1360,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3e99ec4e-0e54-46d4-b691-a1682f0ca973",
      "name": "Update_Resource_Document",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1536,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e61e0f87-e575-4b06-84e4-67e5f9808287",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        784,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d0a9ee25-6a04-462a-a807-8d11b8b2d225",
      "name": "Get many child blocks in Notion",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1200,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e599dfad-87d3-4f3d-93af-503ecd743153",
      "name": "Update Notion Page",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1744,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "da98008d-61aa-412c-9619-c1900757e6dd",
      "name": "Workflow Summary",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b92a0269-4ad3-4a3c-aea7-bf980bae3b6b",
      "name": "Setup Note 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "07f9c8bc-2a55-4531-9b76-d70e58b76cda",
      "name": "Setup Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "041392ab-129f-46cf-a9bc-73ad69e3694d",
      "name": "Setup Note 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "42118e23-93ef-4d83-8197-313d12536001",
      "name": "Setup Note 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "736b5fe5-c3e6-4839-8424-9617ec74dab6",
      "name": "Setup Note 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1536,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Get_Resources": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Update Notion Page": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Update_Resource_Document": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many child blocks in Notion": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}