{
  "name": "Scrape, search and browse the web with a Firecrawl AI agent webhook",
  "nodes": [
    {
      "id": "b4b5e2a2-3f60-406f-81b4-f7fcad4f9144",
      "name": "Receive Scrape Request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        224,
        672
      ]
    },
    {
      "id": "82a9cc43-5e23-4fbb-8d35-aff63475013a",
      "name": "Validate Output Schema",
      "type": "n8n-nodes-base.code",
      "position": [
        448,
        672
      ]
    },
    {
      "id": "132edac3-6602-4963-bf8a-d9a3c3d28733",
      "name": "Return Schema Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        640,
        800
      ]
    },
    {
      "id": "5785b8ae-1c34-4587-83d4-a072c485ef46",
      "name": "Research & Extract Web Data",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        992,
        656
      ]
    },
    {
      "id": "0cfe18d0-f86d-4eae-80e5-d2d3672fcda9",
      "name": "Return Structured Results",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1424,
        656
      ]
    },
    {
      "id": "10f8ba2e-c1f3-4d9c-ad74-48fc9c0d422a",
      "name": "Primary Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        864,
        800
      ]
    },
    {
      "id": "4b8f8364-1692-42fa-a005-3642a60390b5",
      "name": "Fallback Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1024,
        800
      ]
    },
    {
      "id": "e7192283-1b70-4d50-abb8-e2fae7b24ae6",
      "name": "Parser Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1376,
        912
      ]
    },
    {
      "id": "e023509d-a032-469f-aa06-ee10d10daebc",
      "name": "Format Response to Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1392,
        816
      ]
    },
    {
      "id": "d1b90a28-a9b1-4552-8ee2-f81b708932ac",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -32
      ],
      "parameters": {
        "width": 624,
        "height": 624,
        "content": "## Firecrawl Interact Agent\nSend a POST request with a URL, a natural language prompt, and an optional JSON schema. An AI agent uses Firecrawl to scrape the page, then interact with it, clicking butto"
      }
    },
    {
      "id": "6f01b690-3570-447f-adbf-69fb5fb65bc3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        608
      ],
      "parameters": {
        "width": 624,
        "height": 304,
        "content": "## Input & Validation"
      }
    },
    {
      "id": "1854ff48-aa38-493b-b42d-6919c3e5884e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        608
      ],
      "parameters": {
        "width": 512,
        "height": 304,
        "content": "## AI Agent & LLM Models"
      }
    },
    {
      "id": "89dedb88-3334-472f-9e81-684dd069743c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        608
      ],
      "parameters": {
        "width": 336,
        "height": 416,
        "content": "## Output & Response"
      }
    },
    {
      "id": "01de6598-5edf-4bb0-a91c-032027a1d1f0",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        1040
      ],
      "parameters": {
        "width": 848,
        "height": 640,
        "content": "## Firecrawl Tools"
      }
    },
    {
      "id": "2be3ff3c-deb6-4057-84f6-b60ad61e7143",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        1360
      ],
      "parameters": {
        "width": 592,
        "height": 304,
        "content": "## Browser Tool"
      }
    },
    {
      "id": "626fbcc2-952a-44d9-9278-4d62182e14af",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        1088
      ],
      "parameters": {
        "width": 352,
        "height": 240,
        "content": "## Search & Scrape"
      }
    },
    {
      "id": "db7882fd-6b95-4571-86c0-d12c37db0c0e",
      "name": "/scrape with Firecrawl",
      "type": "@mendable/n8n-nodes-firecrawl.firecrawlTool",
      "position": [
        1008,
        1168
      ]
    },
    {
      "id": "466ac39c-e56f-4c59-b6f7-236e68131f5d",
      "name": "/search with Firecrawl",
      "type": "@mendable/n8n-nodes-firecrawl.firecrawlTool",
      "position": [
        1184,
        1168
      ]
    },
    {
      "id": "24377630-a048-4a29-8374-7e62d7a83008",
      "name": "Interact context with Firecrawl",
      "type": "@mendable/n8n-nodes-firecrawl.firecrawlTool",
      "position": [
        1136,
        1408
      ]
    },
    {
      "id": "26069d9a-ae64-423e-9172-9cc2a920d918",
      "name": "Execute interaction with Firecrawl",
      "type": "@mendable/n8n-nodes-firecrawl.firecrawlTool",
      "position": [
        1296,
        1488
      ]
    },
    {
      "id": "9b777540-a930-40c0-8e18-c6692b6ac8bb",
      "name": "Stop interaction with Firecrawl",
      "type": "@mendable/n8n-nodes-firecrawl.firecrawlTool",
      "position": [
        1472,
        1488
      ]
    }
  ],
  "connections": {
    "Parser Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Format Response to Schema",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Primary Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fallback Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "/scrape with Firecrawl": {
      "ai_tool": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "/search with Firecrawl": {
      "ai_tool": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Receive Scrape Request": {
      "main": [
        [
          {
            "node": "Validate Output Schema",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Output Schema": {
      "main": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Return Schema Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Response to Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Research & Extract Web Data": {
      "main": [
        [
          {
            "node": "Return Structured Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Interact context with Firecrawl": {
      "ai_tool": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Stop interaction with Firecrawl": {
      "ai_tool": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Execute interaction with Firecrawl": {
      "ai_tool": [
        [
          {
            "node": "Research & Extract Web Data",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}