{
  "name": "Enrich company firmographic data in Google Sheets with Explorium MCP",
  "nodes": [
    {
      "id": "e88652cf-cf09-4799-b664-45af4e314e83",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -704,
        124
      ]
    },
    {
      "id": "04290361-ad81-4f1a-b267-3d707f8cd253",
      "name": "Filter Valid Rows",
      "type": "n8n-nodes-base.if",
      "position": [
        -480,
        124
      ]
    },
    {
      "id": "8bf68e42-a28c-4769-9e33-e0633668a1d9",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -256,
        124
      ]
    },
    {
      "id": "625db31b-0236-4897-9ddd-6aba1c5672bf",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        24,
        0
      ]
    },
    {
      "id": "225f4f5d-fe00-4747-9181-a9ac4dcb1aa8",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -32,
        224
      ]
    },
    {
      "id": "0bab3c6b-51ad-44d5-8f48-f4108eeb6b54",
      "name": "Code - Format Output",
      "type": "n8n-nodes-base.code",
      "position": [
        432,
        0
      ]
    },
    {
      "id": "a76dbb00-24de-4cf2-b5ef-35839b7e68b3",
      "name": "Update Company Row",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        656,
        124
      ]
    },
    {
      "id": "09191cb1-d819-4cd0-b0c1-01d6d4124b31",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        400
      ],
      "parameters": {
        "width": 460,
        "height": 280,
        "content": "# Enrich Company Data from Google Sheets with Explorium MCP\n\nThis workflow automatically enriches company data when new rows are added or when the name/website fields are updated in your Google Sheet."
      }
    },
    {
      "id": "6190f78e-7d44-496d-9596-088fdca13584",
      "name": "Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        224,
        224
      ]
    },
    {
      "id": "d9e5f0fb-e66f-47a3-b0e0-92df54eb9450",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        400
      ],
      "parameters": {
        "width": 460,
        "height": 280,
        "content": "### Workflow Structure:\n\n**Google Sheets Trigger** → **Filter Valid Rows** → **Loop Over Items**\n                                                          ↓\n                                           "
      }
    },
    {
      "id": "ffc1473a-158f-4d0e-831e-32f172701d60",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        400
      ],
      "parameters": {
        "width": 460,
        "height": 460,
        "content": "### How the Loop Works:\n1. Loop Over Items splits the batch (size 1)\n2. Sends one item to AI Agent\n3. AI Agent enriches the data\n4. Code formats the output\n5. Google Sheets updates the row\n6. Flow ret"
      }
    },
    {
      "id": "13f5c31b-be3b-4a09-b983-f33de15c4c2f",
      "name": "MCP Client",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        96,
        224
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code - Format Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MCP Client": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Valid Rows": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Company Row": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Code - Format Output": {
      "main": [
        [
          {
            "node": "Update Company Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Filter Valid Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}