{
  "name": "Question and Answer AI Agent Chatbot [2/2]",
  "nodes": [
    {
      "id": "66e9802a-c83d-4b4f-b69a-d384cc722f87",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        128,
        112
      ]
    },
    {
      "id": "23a48497-ad14-400d-9cb9-9ed86de4df93",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        368,
        112
      ]
    },
    {
      "id": "53327aee-bb6a-404f-b463-98be27079217",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        288,
        320
      ]
    },
    {
      "id": "2ebccb44-58e7-431c-8c1d-219273df96b7",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        432,
        320
      ]
    },
    {
      "id": "b806edae-f549-4495-825a-b1240c90d2d6",
      "name": "fetch-qa-from-db",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        608,
        320
      ]
    },
    {
      "id": "07cf7cd3-2c96-4f67-8d60-f7fe0da150ff",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        80
      ],
      "parameters": {
        "width": 336,
        "height": 240,
        "content": "## QA Ingest Template\n### Flow 2/2\nThis workflow provides an AI Agent that answers user questions by retrieving relevant Q&A pairs from an n8n Data Table as grounding context, ensuring responses are i"
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "fetch-qa-from-db": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}