{
  "name": "product_specialist_agent",
  "nodes": [
    {
      "id": "Start",
      "name": "Start",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1,
      "position": [
        -420,
        120
      ],
      "parameters": {}
    },
    {
      "id": "Product Specialist Agent",
      "name": "Product Specialist Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1,
      "position": [
        -180,
        120
      ],
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.query || $json.text }}",
        "options": {
          "systemMessage": "You are a product specialist. Always cite product IDs from tool output."
        }
      }
    },
    {
      "id": "Tool - search_products",
      "name": "Tool - search_products",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 1,
      "position": [
        -180,
        -40
      ],
      "parameters": {
        "name": "search_products",
        "description": "Search products collection.",
        "workflowId": "tool_search_products"
      }
    },
    {
      "id": "Return",
      "name": "Return",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        80,
        120
      ],
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "result",
              "value": "={{ $json.output || $json.text }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Product Specialist Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Specialist Agent": {
      "main": [
        [
          {
            "node": "Return",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tool - search_products": {
      "ai_tool": [
        [
          {
            "node": "Product Specialist Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}