{
  "name": "Research Agent",
  "nodes": [
    {
      "parameters": {},
      "id": "614b8dd5-ebfa-4f13-b100-e32e6fb7f039",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1,
      "position": [
        400,
        140
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "ccc316d9-e9df-4506-bfbf-1c141d162025",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        840,
        360
      ],
      "credentials": {
        "openAiApi": {
          "id": "hdRYPqX7PaZRro2X",
          "name": "OpenAi account 4"
        }
      }
    },
    {
      "parameters": {},
      "id": "0b58c471-8431-45ec-aa6f-379855d60a6e",
      "name": "Wikipedia",
      "type": "@n8n/n8n-nodes-langchain.toolWikipedia",
      "typeVersion": 1,
      "position": [
        1040,
        360
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "9330fe65-163e-415e-9643-8d46e865cb06",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "typeVersion": 1,
      "position": [
        1240,
        360
      ],
      "credentials": {
        "serpApi": {
          "id": "P9ql1URD3fGDt8hv",
          "name": "SerpAPI account"
        }
      }
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "You are a research assistant with access to Wikipedia and SerpAPI. First, search Wikipedia. If you don’t find the answer, use SerpAPI"
        }
      },
      "id": "6ee9afd1-2a20-4358-bf8f-bb8f19412b60",
      "name": "Research Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.7,
      "position": [
        840,
        140
      ]
    }
  ],
  "pinData": {},
  "connections": {
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Research Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wikipedia": {
      "ai_tool": [
        [
          {
            "node": "Research Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "Research Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "211690eb-374b-43d6-b845-9e17adc8d485",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "d1853d6d92799d2de46a947c80ac9a5af91665397cc93a1b568769b332366e37"
  },
  "id": "r48uIhIRNImfCDMs",
  "tags": []
}