Use this powerful n8n workflow to automatically crawl competitor websites, extract structured topic hierarchies and entities using Gemini AI, and save actionable insights directly into Google Sheets. Fast, data-driven content strategy.
Download this n8n workflow template and start using it instantly.
Staying competitive requires understanding what your rivals are publishing. Manually mapping competitor content is time-consuming and error-prone. This specialized n8n workflow solves this by providing a hands-free, automated solution.
Triggered by a simple webhook (or form submission), the n8n workflow uses an Apify actor to crawl the specified competitor domain, capturing the raw page content in markdown format. It then sends this markdown to Gemini AI for deep, structured analysis. The AI is prompted to return a detailed JSON object containing hierarchical topics, content type classification, key entities, and a depth score.
Crucially, this n8n automation then dynamically creates a unique, dedicated tab within your Google Sheet document for the results, ensuring organized storage and easy analysis. Finally, a summary report is sent via Gmail, completing the fully automated feedback loop. This powerful n8n node combination transforms raw web pages into structured, actionable content strategy data.
This high-utility n8n workflow operates in several key stages:
Prepare Apify Input code n8n node processes and validates the request data (domain, email, crawl parameters) and prepares inputs for the crawler.Crawl Competitor Website Apify n8n node executes a high-speed web crawler, focusing on fetching content in markdown format based on the specified paths and depth.AI Agent n8n node, which leverages the Gemini model. It strictly follows a defined JSON schema to map the content into hierarchical main topics and key entities.To deploy this effective n8n workflow, follow these setup steps:
Start Here webhook n8n trigger node will generate a Production URL. This is the endpoint where your submission form or application must POST the competitor details.Content Gap Analyzer in the example).Crawl Competitor Website n8n node.Analyze Page Content). Start Here (Webhook n8n trigger): The entry point of the n8n workflow, configured to listen for POST requests at the /competitors path.
Prepare Apify Input (Code n8n node): Crucial for transforming raw webhook JSON input into structured variables, normalizing the competitor domain, and setting crawl limits (maxpagesnum, crawldepthnum).
Crawl Competitor Website (Apify n8n node): Executes the Apify Web Content Crawler. Key configuration includes using dynamic startUrls and setting saveMarkdown: true to get content ready for AI analysis.
Fetch Crawled Dataset (HTTP Request n8n node): Retrieves the results from Apify's dataset API, pulling the collected markdown content.
AI Agent / Analyze Page Content (LangChain/Gemini n8n node): The core intelligence. This n8n node is configured with a detailed prompt instructing the AI to act as a content analyst and return a specific, hierarchical JSON schema for topic mapping.
Parse and Normalize Gemini JSON (Code n8n node): Handles error correction for the AI output, stripping markdown fences ( `json ) and flattening the complex topic tree into a readable bulleted list for Google Sheets.
Derive Sheet Name (Code n8n node): Generates a compliant and unique Google Sheet tab name (max 90 characters, safe characters only) based on the input URL.
Create sheet for the data (Google Sheets n8n node): Dynamically provisions a new worksheet tab using the name generated in the previous n8n node.
Save the data collected (Google Sheets n8n node): Performs the final write operation, appending the analyzed pageurl, maintopics, and key_words to the newly created sheet.
Send report (Gmail n8n node): Sends a final HTML-formatted email summary to the user specified in the original n8n trigger request.
Use this comprehensive n8n workflow to automatically research company sustainability, generate structured ESG scores, and produce detailed HTML reports using OpenRouter AI and advanced n8n node configurations.

Use this powerful n8n workflow to automate client transcript analysis, summarize feedback using GPT-4o Mini, update HubSpot records, and intelligently route issues to the correct department via Gmail.

Use this powerful n8n workflow to automatically transcribe and analyze sales call recordings using OpenAI, extracting sentiment, key topics, and commitments before updating the associated lead in Zoho CRM.

Use this powerful n8n workflow template to automate competitor analysis. Combine Bright Data web scraping (MCP) with GPT-4o analysis to generate actionable content insights and send professional reports using an n8n node.

Analyze competitor Facebook Ad creative automatically using this powerful n8n workflow. Leverage GPT-4 Vision and Gemini for image and video analysis, generating strategic reports delivered via email.








































