{
  "name": "General Website Assistant",
  "nodes": [
    {
      "parameters": {
        "responseMode": "lastNode",
        "options": {},
        "webhookHeaders": {
          "headers": [
            {},
            {}
          ]
        }
      },
      "type": "n8n-nodes-agent-brains.integrationTrigger",
      "typeVersion": 1,
      "position": [
        -512,
        -224
      ],
      "id": "640216ba-bf0c-43e9-b6ea-4f504bb64d39",
      "name": "AgentBrains Integration Trigger",
      "webhookId": "171b0bea-3f39-4795-84a2-35a2303093ea",
      "credentials": {
        "agentBrainsIntegrationApi": {
          "id": "XM9STKQV2i2qcRtz",
          "name": "Marc V Test 009"
        }
      }
    },
    {
      "parameters": {
        "modelName": "models/gemini-3-flash-preview",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        -256,
        240
      ],
      "id": "bc657653-c3e3-4026-a250-ad519eef8696",
      "name": "Google Gemini Chat Model",
      "credentials": {
        "googlePalmApi": {
          "id": "1WgBBp79SPkMpJ2L",
          "name": "Google Gemini(PaLM) Api account"
        }
      }
    },
    {
      "parameters": {
        "categoryId": [
          "6931807051a13f45e4644ec3"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-agent-brains.knowledgeBaseTool",
      "typeVersion": 1,
      "position": [
        416,
        208
      ],
      "id": "8e72e45a-461b-49d7-ac37-3599742aff9d",
      "name": "Get Price List",
      "credentials": {
        "agentBrainsIntegrationApi": {
          "id": "XM9STKQV2i2qcRtz",
          "name": "Marc V Test 009"
        }
      }
    },
    {
      "parameters": {
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "options": {
          "topK": 15
        }
      },
      "type": "n8n-nodes-agent-brains.agentBrainsRagTool",
      "typeVersion": 1,
      "position": [
        224,
        240
      ],
      "id": "e5842924-2347-4243-bb7d-83bd547d4b4d",
      "name": "ATN's Knowledge Base RAG",
      "credentials": {
        "agentBrainsIntegrationApi": {
          "id": "XM9STKQV2i2qcRtz",
          "name": "Marc V Test 009"
        }
      }
    },
    {
      "parameters": {
        "operation": "image",
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "options": {}
      },
      "type": "n8n-nodes-agent-brains.agentBrainsRagTool",
      "typeVersion": 1,
      "position": [
        48,
        272
      ],
      "id": "59b90800-44b8-451b-9420-d3180951d409",
      "name": "ATN's Image library",
      "credentials": {
        "agentBrainsIntegrationApi": {
          "id": "XM9STKQV2i2qcRtz",
          "name": "Marc V Test 009"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('AgentBrains Integration Trigger').item.json.data.message }}",
        "options": {
          "systemMessage": "=You work for ATN.\nYou are here to assist customers on the ATN website. \n\nYou have access to three tools.  \n\"Get Price List\" - allowing you to see the entire latest price list\n\n\"ATN's RAG\" - must always be used before answering a customer's question \n\n\"ATN's Image Library\" - must always be used to see if you can find an image that will best help to answer a customers questions even if it is just to illustrate your point with a picture of the product discussed."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        -64,
        -48
      ],
      "id": "26c80e9e-4381-4774-a281-3916b4fa3ca4",
      "name": "ATN Website assistant"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "0fc672a6-2d66-4b58-9c13-0da07ee85c2f",
              "name": "message",
              "value": "={{ $json.output }}",
              "type": "string"
            }
          ]
        },
        "options": {
          "dotNotation": false
        }
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        352,
        -48
      ],
      "id": "b3540bed-b7a2-4072-83ce-a9688ff4ad03",
      "name": "Edit Fields"
    }
  ],
  "pinData": {},
  "connections": {
    "AgentBrains Integration Trigger": {
      "main": [
        [
          {
            "node": "ATN Website assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "ATN Website assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Price List": {
      "ai_tool": [
        [
          {
            "node": "ATN Website assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ATN's Knowledge Base RAG": {
      "ai_tool": [
        [
          {
            "node": "ATN Website assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ATN's Image library": {
      "ai_tool": [
        [
          {
            "node": "ATN Website assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ATN Website assistant": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "versionId": "7dfcadb7-da3c-40cc-8fc2-a118794a535f",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "4aa3254463c589976ec343381e2c92bd2ec3dab8d3da26ff8ab28c47409b0ae0"
  },
  "id": "eiDKhoJt1iozqaUT",
  "tags": []
}