{
  "name": "Custom LangChain agent written in JavaScript",
  "nodes": [
    {
      "id": "5a421900-20d7-4d64-a064-3211c3338676",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -820
      ],
      "parameters": {
        "width": 432,
        "height": 397,
        "content": "## Self-coded LLM Chain Node"
      }
    },
    {
      "id": "93e3641b-d365-456d-b939-11fd92da8155",
      "name": "When clicking \"Execute Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1060,
        -740
      ]
    },
    {
      "id": "235e436f-353f-4bb4-a619-35ebb17011d0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -100
      ],
      "parameters": {
        "width": 320.2172923777021,
        "height": 231,
        "content": "## Self-coded Tool Node"
      }
    },
    {
      "id": "4265a9d3-7c7e-4511-9a41-fa5a940f8869",
      "name": "Set2",
      "type": "n8n-nodes-base.set",
      "position": [
        -820,
        -740
      ]
    },
    {
      "id": "b78b6d50-53be-43a1-889c-773726443bfb",
      "name": "Custom - LLM Chain Node1",
      "type": "@n8n/n8n-nodes-langchain.code",
      "position": [
        -440,
        -740
      ]
    },
    {
      "id": "cc27654f-92bd-48f5-80d9-1d4f9c83ecb5",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -420,
        -580
      ]
    },
    {
      "id": "e64b5510-efd9-4a8b-aa3c-4312219cb2f0",
      "name": "Set3",
      "type": "n8n-nodes-base.set",
      "position": [
        -820,
        -440
      ]
    },
    {
      "id": "77f8bff3-8868-43ca-8739-7cc16d15dd80",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -440,
        -340
      ]
    },
    {
      "id": "d6e943df-ee88-4d0b-bca4-68b9f249dd00",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -460,
        -120
      ]
    },
    {
      "id": "a4b19037-399a-4d0b-abe0-378d8d81c536",
      "name": "Custom - Wikipedia1",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        -180,
        -20
      ]
    }
  ],
  "connections": {
    "Set2": {
      "main": [
        [
          {
            "node": "Custom - LLM Chain Node1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set3": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Custom - LLM Chain Node1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Custom - Wikipedia1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "Set3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Set2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}