πŸ“Š Generate a hierarchical sitemap from a URL into Google Sheets using Firecrawl

⚑ 1,080 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

πŸ“Ί Full walkthrough video: https://youtu.be/yjeKYfZP0kU

> ⚠️ Self-hosted only β€” This template uses a community node (@mendable/n8n-nodes-firecrawl) and cannot run on n8n Cloud.

Who it’s for

This workflow is for SEO consultants, web agencies, and technical teams who need to quickly audit or document a website’s URL structure and export it into a clean, hierarchical spreadsheet.

How it works

  1. A chat message is received containing the target website URL.
  2. Firecrawl maps the website via its sitemap and retrieves all available URLs.
  3. An IF node checks whether the Firecrawl response was successful; if not, the workflow stops with an error.
  4. On success, a Google Drive template file is copied to serve as the destination spreadsheet.
  5. A custom JavaScript node parses the crawled URLs, groups them by domain/subdomain, and structures them into a hierarchical table (up to 6 depth levels: Niv 0 to Niv 5) with HYPERLINK formulas.
  6. The structured rows are appended to the copied Google Sheet.

How to set up

Requirements

How to customize

πŸ”— Nodes Used

Google Sheets, Google Drive, Stop and Error, Chat Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup