{
  "name": "Build an intelligent Q&A bot with Lookio Knowledge Base and GPT",
  "nodes": [
    {
      "id": "f4ead8e8-e78b-490d-9cf0-03907fc6e16f",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -464,
        16
      ]
    },
    {
      "id": "4cf321ba-b749-4223-aabd-e9a12e78caf5",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -80,
        336
      ]
    },
    {
      "id": "fa2f423c-e98b-459d-8613-1d5c5a2db2ac",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -368,
        384
      ]
    },
    {
      "id": "7607267f-91b6-4a36-87bb-3e1d753bbd71",
      "name": "AI Knowledge Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -184,
        16
      ]
    },
    {
      "id": "2cde1ec6-7d21-4955-acbe-4434cfdb9c7c",
      "name": "Query knowledge base",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        240,
        352
      ]
    },
    {
      "id": "a79ec48e-1888-477f-b299-2fe05fe509c6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        320
      ],
      "parameters": {
        "width": 336,
        "height": 400,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Lookio tool\n\nThe agent calls this tool to get answers based on the knowledge base you've built in Lookio.\n- Add your [Lookio](https://www.lookio.app/) API key\n- Specify the ID of th"
      }
    },
    {
      "id": "f2b01dab-f1d3-4947-b6c1-7c8390aca275",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        320
      ],
      "parameters": {
        "width": 336,
        "height": 400,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## AI model\n\nThe core AI model of your agent. Connect your OpenAI API key or switch to your favorite LLM provider."
      }
    },
    {
      "id": "fda124c2-4fd0-4682-b619-78139b0f4b8b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -224
      ],
      "parameters": {
        "width": 336,
        "height": 400,
        "content": "## The agent\n\nThis agent will distribute the relevant questions to Lookio via the \"Query knowledge base\" tool. Feel free to provide more context in its system message and add instructions when it come"
      }
    },
    {
      "id": "54e7d0d6-2bec-4363-bdba-da6dadd72163",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -224
      ],
      "parameters": {
        "width": 496,
        "height": 944,
        "content": "# AI Agent for Your Lookio Knowledge Base\n\nThis agent intelligently answers questions using a knowledge base you build in Lookio. It's configured to handle simple greetings on its own, and only querie"
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Knowledge Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Knowledge Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Query knowledge base": {
      "ai_tool": [
        [
          {
            "node": "AI Knowledge Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Knowledge Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}