{
    "name": "AI tutorial",
    "nodes": [
      {
        "parameters": {
          "options": {}
        },
        "type": "@n8n/n8n-nodes-langchain.chatTrigger",
        "typeVersion": 1.1,
        "position": [
          -300,
          -40
        ],
        "id": "a2d42e1f-36df-4a6a-a3b4-99a162074d11",
        "name": "When chat message received",
        "webhookId": "97c1a41f-8ef0-4d63-a924-92eb634384d3"
      },
      {
        "parameters": {
          "options": {}
        },
        "type": "@n8n/n8n-nodes-langchain.agent",
        "typeVersion": 1.7,
        "position": [
          -80,
          -40
        ],
        "id": "0f61a10f-668f-42f7-b835-cf3efb60082a",
        "name": "AI Agent"
      },
      {
        "parameters": {
          "model": {
            "__rl": true,
            "mode": "list",
            "value": "gpt-4o-mini"
          },
          "options": {}
        },
        "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
        "typeVersion": 1.2,
        "position": [
          -100,
          160
        ],
        "id": "b8129c6d-f201-4378-8f66-ce9a6cfd5f3b",
        "name": "OpenAI Chat Model",
        "credentials": {
          "openAiApi": {
            "id": "jiPPcYV9I70iKapN",
            "name": "OpenAi account 37"
          }
        }
      },
      {
        "parameters": {},
        "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
        "typeVersion": 1.3,
        "position": [
          20,
          180
        ],
        "id": "afbab05c-1e87-4f7a-9d66-c86f9db1ec64",
        "name": "Simple Memory"
      }
    ],
    "pinData": {},
    "connections": {
      "When chat message received": {
        "main": [
          [
            {
              "node": "AI Agent",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "OpenAI Chat Model": {
        "ai_languageModel": [
          [
            {
              "node": "AI Agent",
              "type": "ai_languageModel",
              "index": 0
            }
          ]
        ]
      },
      "Simple Memory": {
        "ai_memory": [
          [
            {
              "node": "AI Agent",
              "type": "ai_memory",
              "index": 0
            }
          ]
        ]
      }
    },
    "active": false,
    "settings": {
      "executionOrder": "v1"
    },
    "versionId": "b1641385-c6b0-48a8-8e26-20d1f6bd7fda",
    "meta": {
      "templateCredsSetupCompleted": true,
      "instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
    },
    "id": "l05TkWXXYbOiuL4o",
    "tags": []
  }