{
  "name": "Mangools: AI SEO Assistant (Chat Agent via MCP)",
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "id": "386e6942-a789-478d-beca-487d5d3b3659",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.5,
      "position": [
        -460,
        0
      ]
    },
    {
      "parameters": {
        "content": "## Mangools AI SEO assistant\nAfter import: on the **OpenAI Chat Model** node, pick or create your own OpenAI credential. This workflow does not ship one. On the **Mangools MCP** node, pick your own **Mangools API key** credential (Header Auth, header name `x-access-token`, value: your key from https://mangools.com/api-token).\n\nThe agent can only use the read-only tools listed in the **Mangools MCP** node's \"Tools to Include\". KWFinder and SERPChecker lookups spend paid lookups from your Mangools plan, and the system message tells the agent to say so before it calls one. Accounts without API access are charged double for lookups made through MCP.",
        "height": 340,
        "width": 420
      },
      "id": "05dd9354-357a-46f8-a787-9a4a710588a2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -460,
        -360
      ]
    },
    {
      "parameters": {
        "promptType": "auto",
        "options": {
          "systemMessage": "You are a Mangools SEO assistant. You have read-only access to the user's Mangools account through a set of MCP tools: location search, KWFinder keyword research, SERPChecker SERP lookups, SERPWatcher rank tracking and AI Search Watcher monitors. You cannot create, update or delete anything; you only look things up and explain them. KWFinder keyword lookups and SERPChecker SERP lookups spend a paid lookup from the user's Mangools plan each time you call them. Tell the user before you call one of those, and reuse information you already have in the conversation instead of calling them again."
        }
      },
      "id": "2c64f7f4-1e56-4c3d-a3cd-946775df94c4",
      "name": "Mangools SEO Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        -220,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-mini"
        },
        "options": {}
      },
      "id": "7d0ab1a7-4f29-4c15-b314-6b6dbee4950f",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        -320,
        220
      ]
    },
    {
      "parameters": {},
      "id": "9a3721d8-13dc-45ce-97fc-a125d5567245",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.4,
      "position": [
        -140,
        220
      ]
    },
    {
      "parameters": {
        "serverTransport": "httpStreamable",
        "endpointUrl": "https://mcp.mangools.com/mcp",
        "authentication": "headerAuth",
        "include": "selected",
        "includeTools": [
          "mangools_search_locations",
          "kwfinder_search_related_keywords",
          "kwfinder_get_keyword_details",
          "serpchecker_get_serp",
          "serpwatcher_list_trackings",
          "serpwatcher_get_tracking_detail",
          "ai_search_watcher_list_monitors",
          "ai_search_watcher_get_monitor"
        ],
        "options": {
          "timeout": 120000
        }
      },
      "id": "6f01becd-b065-4df3-8512-391c3dc17051",
      "name": "Mangools MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "typeVersion": 1.4,
      "position": [
        40,
        220
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": null,
          "name": "Mangools API key"
        }
      }
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "Mangools SEO Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Mangools SEO Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Mangools SEO Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Mangools MCP": {
      "ai_tool": [
        [
          {
            "node": "Mangools SEO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": null,
  "staticData": null,
  "nodeGroups": [],
  "tags": []
}
