Loading Light/Dark Toggle
Back to Blog

Build an n8n AI Brand Monitor with Scrapeless and Compare Runs

James Thompson
James Thompson

Scraping and Proxy Management Expert

13-Nov-2026

TL;DR:

  • An n8n AI brand monitor can track answer mentions and returned-source domain hits separately. A brand can appear in the answer while its website is absent from the selected source list.
  • The importable workflow compares like-for-like runs. It saves reports in n8n Data Tables and exports the original answers, source URLs, and changes as JSON and CSV.
  • Collection failures remain unknown observations. Empty answers and unavailable source lists must not become evidence that a brand disappeared.
  • The smartphone case is one retained baseline. It demonstrates how to read the output; it does not establish an improvement or a platform-wide visibility score.

Pipeline at a Glance

This n8n AI brand monitoring workflow sends a fixed question set to ChatGPT and Perplexity through Scrapeless, normalizes the responses, and compares the report with a matching earlier run.

The sequence is: manual or daily trigger → monitor configuration → previous-run lookup → one input per question → two collection branches → normalized observations → report and history storage → JSON and CSV downloads.

A marketing team can use that sequence to review which buyer questions include its brand, whether official domains appear in returned sources, and which observations changed. The full answer stays beside the measurement so a reviewer can distinguish a recommendation from an incidental mention.

The Scrapeless AI Scraper collects the answers; n8n owns orchestration and saved history. The broader n8n AI Scraper integration overview provides context for using answer collection in automation. This article focuses on the supplied monitor's complete reporting flow.

Prerequisites and Download

You need a self-hosted n8n instance that permits community packages and Data Tables, plus a Scrapeless API key with access and sufficient credits for ChatGPT and Perplexity collection.

The retained project validation used n8n 2.35.7 and n8n-nodes-scrapeless@0.5.4. n8n Cloud and other host versions are outside that validation scope. The online case below comes from the project's saved execution, not a fresh collection for this article. Running the main workflow yourself requires the credentials and service access just described.

Use the public AI brand monitor repository to obtain the source and workflow files. The download links below point to the reviewed commit:

Open a file on GitHub and select Download raw file. Keep the two workflows separate so synthetic observations cannot enter your live monitoring history.

Step 1: Install the Node and Import an Empty Workflow

The workflow uses the Scrapeless Official community node for both collection branches.

As an n8n owner or admin, open Settings → Community nodes → Install and enter n8n-nodes-scrapeless@0.5.4. The community-node installation procedure explains the required role and package-version syntax.

Create a new blank workflow. Open its three-dot menu and choose Import → From file, or Import from File in versions that use that label. Select the main JSON and save. A blank canvas matters because importing into a populated workflow can rename nodes that the Code nodes reference.

After import, locate Configure Monitor, both Scrapeless nodes, Merge Observations, Build Report, and the download nodes. The Scrapeless n8n integration introduces the node's other operations; this demo uses its AI Scraper resource.

Step 2: Connect Both Answer Engines

Both Scrapeless nodes must use the intended n8n credential and the same prompt inputs.

Open Scrapeless ChatGPT, create or select a Scrapeless API credential, and enter your key in API Key. Select the same credential in Scrapeless Perplexity. Confirm both selections even if n8n populated them automatically during import. Keep credentials out of the monitor's Code node and exported examples.

Setting Scrapeless ChatGPT Scrapeless Perplexity
Resource AI Scraper AI Scraper
Operation ChatGPT Perplexity
Prompt {{ $json.prompt }} {{ $json.prompt }}
Country {{ $json.country }} {{ $json.country }}
Web Search On On
Shopping Off No switch in this node

The main workflow submits two remote collection tasks per question. Start with a small prompt panel and check current Scrapeless pricing before enabling a recurring schedule.

Step 3: Configure a Smartphone Brand Scenario

The monitor configuration defines the brand, its literal aliases, the domains to match, and the exact question set.

Open Configure Monitor. Replace only the object assigned to const config =; preserve the assignment and the processing code below it. This configuration is the retained smartphone-case input:

json Copy
{
  "brand": "Samsung",
  "aliases": ["Samsung", "Samsung Galaxy"],
  "domains": ["samsung.com"],
  "country": "US",
  "prompts": [
    {
      "id": "smartphone-brands-shortlist",
      "text": "I'm buying a smartphone in the US for under $1,000. Which three phone brands should I compare for camera quality, battery life, and long-term software support? Explain the tradeoffs and link to official manufacturer pages."
    },
    {
      "id": "travel-phone-shortlist",
      "text": "For travel photography and all-day battery life, which three smartphone brands should a US buyer shortlist? Give one current phone model from each and link to official specifications. Avoid rumors and unreleased products."
    },
    {
      "id": "samsung-support-evaluation",
      "text": "For a Samsung Galaxy smartphone sold in the US, where can I verify its software update policy, warranty, and repair options? Explain what to check and cite official Samsung pages."
    }
  ]
}

The first two questions test category discovery without supplying the monitored brand. The support question explicitly names Samsung. Keep these groups separate when interpreting results: the support answer has been prompted to discuss the brand.

The domain rule matches samsung.com and its subdomains. It does not verify which market a page addresses, follow redirects, or infer ownership of other domains. When adapting the demo, change the brand, aliases, domains, and questions together. Choose stable prompt IDs and retain the exact wording for comparisons.

Start Scraping with Scrapeless

Power up your web scraping and automation workflow with Scrapeless!
Sign up today and get $5 in free credit — no credit card required.

Claim your free credit now in the Scrapeless Dashboard.

Step 4: Run and Read the Report

A complete report contains a record for every planned question-engine pair, including empty answers and errors.

Note: Executing the main workflow makes paid service requests and requires your configured Scrapeless credential. The historical case in this article is retained project evidence; the offline workflow produces synthetic data.

Save and select Execute workflow. In Build Report, check report_complete, then inspect each observation's status. With this configuration, a complete report contains six observations. all_answers_valid means all answers are non-empty; source availability still needs its own check.

Field Meaning
status ok, empty, or error; collection failure is not brand absence
brand_mentioned A brand or alias matched visible answer text
matched_aliases Names that matched, not mention counts or ranking positions
source_field content_references for ChatGPT; web_results for Perplexity
source_status available, unavailable, or invalid
brand_source_found A configured hostname occurred in a complete, parseable source list
source_urls Deduplicated returned URLs; the workflow does not fetch these pages
matched_source_urls The subset matching your configured hostnames

Brand mention rate uses valid answers as its denominator. Source hit rate uses valid answers with complete, parseable source lists. A missing source field stays unknown; an explicit empty array is measurable and means no returned-source hit. A malformed array remains invalid even if some URLs can be recovered.

The distinction prevents a collection problem from looking like lost visibility. It also explains why two rates can have different denominators. JSON rates are fractions between zero and one; a zero denominator produces null.

Open Download JSON Report → Binary → Download for ai-brand-report.json. Open Download CSV Observations → Binary → Download for ai-brand-observations.csv. Keep the JSON when exact answer text matters. CSV uses TRUE and FALSE, leaves unknown scalar values blank, and encodes arrays as JSON strings. Formula-like text receives an apostrophe prefix in CSV.

Step 5: Compare Runs and Set the Schedule

The monitor compares the current report with the latest earlier saved run for the same monitoring configuration.

The first run creates ai_brand_monitor_history in the n8n project. Its comparison.previous_run_id is null, and changes are no_baseline. On a later run, keep the brand, aliases, domains, country, prompt IDs, and prompt text unchanged to stay in the same comparison group.

Engine-node settings also need to stay consistent. Manually changing Web Search or another engine setting does not change the workflow's grouping key, so record those changes yourself and establish a separate baseline where appropriate.

Change Interpretation
gained A known value changed from false to true
lost A known value changed from true to false
unchanged Both known values agree; inspect the value to distinguish presence from absence
unknown At least one value could not be determined
no_baseline No matching earlier observation exists

Inspect brand_mention_change and brand_source_change independently. comparison.changes lists observations with a gained or lost value; the full observations array also retains unchanged and unknown records. changed_observations counts question-engine pairs with at least one gained or lost value.

For practice, run the offline workflow twice. It uses ai_brand_monitor_demo_history, separate from live history. These are synthetic comparisons, not evidence of changing AI visibility.

After a successful manual run, set the hour and minute in Daily Schedule, confirm the workflow timezone in Settings, and publish the workflow. The Schedule Trigger publication and timezone rules explain when scheduled execution starts. Use Executions for completed runs and downloads, and Data Tables for saved reports. The retained project validation did not cover scheduling across multiple days.

What the Retained Smartphone Case Shows

The retained baseline contains valid answers from both engines for each of the three questions, with parseable source lists.

For both category questions, Samsung appeared in each engine's answer. None of those four selected returned-source lists contained the configured Samsung domain. Official links could still appear inside answer text: answer-body links and returned-source fields are separate measurements.

For the named-brand support question, ChatGPT returned five unique source URLs, four matching the configured domain. Perplexity returned ten, all matching it. Some Perplexity sources addressed India or the UK despite the US question. A hostname match alone therefore did not establish regional relevance.

This n8n AI brand monitoring case measures literal mentions and domain hits. It does not automatically measure sentiment, recommendation position, factual accuracy, or traffic. The saved baseline also cannot show a second-run improvement. Read the original answer behind each observation before turning the measurement into a marketing claim.

Conclusion

Start with a small, fixed set of buyer questions, inspect the first report, and retain its original answers. On subsequent comparable runs, review gained and lost mentions alongside changes in returned sources. Keep failed observations unknown and category questions separate from named-brand questions. Those choices make the report useful for a recurring content review without overstating what a sampled AI answer proves.

Ready to Build Your Brand Monitoring Workflow?

Join our community to connect with developers building answer-monitoring pipelines: Discord · Telegram.

Start with Scrapeless and adapt the workflow to your own brand and question set.

FAQ

Q: Does this n8n AI brand monitor require an autonomous agent?

No. The imported workflow runs a fixed collection and reporting sequence. The configured questions determine what it sends to each engine.

Q: Can the demo run without an API key?

The offline workflow can run without a Scrapeless key because it uses synthetic responses. The main workflow requires a key with access and credits for both engines.

Q: Is an absent source list the same as no brand citation?

No. A missing or invalid list is unknown. A complete empty list means no returned-source hit for that observation. Neither result describes every link inside the answer body.

Q: Does a domain hit prove the brand was recommended?

No. A domain hit only means a matching hostname appeared in the selected returned-source list. Recommendation context, page relevance, and regional suitability require review.

Q: Why did a new run have no baseline?

A new configuration creates a different comparison group, and a question-engine pair without an earlier matching observation has no baseline. Check the saved configuration and previous_run_id.

Q: Can one report measure total AI brand visibility?

No. One report covers the selected prompts, engines, settings, and collection time. Repeated comparable samples can support a scoped observation, but they do not establish a platform-wide ranking or prove that a content edit caused a change.

At Scrapeless, we only access publicly available data while strictly complying with applicable laws, regulations, and website privacy policies. The content in this blog is for demonstration purposes only and does not involve any illegal or infringing activities. We make no guarantees and disclaim all liability for the use of information from this blog or third-party links. Before engaging in any scraping activities, consult your legal advisor and review the target website's terms of service or obtain the necessary permissions.

Most Popular Articles

Catalogue