29/46proof of conceptCompetitive Intelligence Automation

Marketing Intelligence System

Plans competitive research, challenges the evidence and delivers reports with an optional communications pack.

See the workflow

Authored illustration

What it solves

A single collection pass can produce a polished report without answering the questions that matter. This platform adds a bounded question-led research loop, an auditable evidence record and a separate review before turning the findings into a report and handoff.

How it runs

Seven steps, input to output

Goes inA brand, competitors or discovery request, market, industry and research depth

  1. 01

    Scope and resolve

    Capture brand, competitors, market, industry and depth. Optional resolution checks canonical names, domains and source-relevant capability flags; advertiser checks use overrides, caches and discovery rather than assuming a name match proves ownership.

  2. 02

    Plan the questions

    When the research loop is enabled, plan answerable questions across seven pillars using only available collectors. Standard, Deep and Full bound depth, coverage and the maximum number of retrieval rounds; sources that cannot answer a question are not treated as evidence.

  3. 03

    Retrieve and record

    Ingest existing channel results, then use targeted Serper and optional Exa searches. Rank and deduplicate candidate URLs before optional Firecrawl extraction. Keep claims in a ledger with source, date, confidence, entity, pillar and retrieval round.

  4. 04

    Close gaps and review

    Identify unanswered, weak or unresponsive questions and re-query them within the tier limit. A separate pre-synthesis review challenges unsupported claims, stale assertions, contradictions and inference presented as fact, downgrading or removing failures. Source guards can withhold financial comparisons that lack verified entity, period and group-or-segment scope.

  5. 05

    Calculate the comparisons

    Python derives advertising counts, launch cadence, mix and snapshot changes from returned records. Stopped-ad counts require complete active reads in both runs. Optional DataForSEO captures search presence; optional Claude vision reviews selected creative images and retained Arabic copy.

  6. 06

    Synthesize the report

    Stream Claude interpretation over the collected evidence and preserve source, date and coverage limits in the payload. Produce the HTML deck, on-demand PDF and optional existing PowerPoint export; the new paid-media pages are HTML-only, and editorial changes cannot invent sources or promote confidence.

  7. 07

    Record and hand off

    Save the report, run history and cost record. When enabled, draft email, chat and leadership summaries from the finished payload, validate their figures and fall back to deterministic text. Optional named accounts enforce roles and attribute runs, downloads and PDF renders in the audit trail.

Comes outAn evidence-led HTML report, source and coverage records, run history, available PDF or PowerPoint exports and, when enabled, email, chat and leadership summaries

What it does

A competitive intelligence platform with a Telegram bot and browser command centre over the same Python pipeline.

Beyond the initial news, social, advertising, website, traffic and review collectors, an optional research loop plans questions, retrieves evidence, identifies gaps, retrieves again and runs a separate adversarial review before synthesis.

Its fixed seven-pillar framework covers corporate and financial, commercial and product, demand and search, paid media, reputation and sentiment, talent and organisation, and partnerships and ESG.

Pillar states distinguish scored, thin and not-applicable coverage; the Brand Position Index is a deterministic evidence-based indicator, with recency contributions withheld where date coverage is insufficient, rather than a measured commercial outcome.

Standard, Deep and Full set different question, retrieval and coverage budgets, with up to one, two and three research rounds respectively.

A claim ledger preserves entity, pillar, source URL, source type, publication date, retrieval time, confidence and round; source and date checks can downgrade unsupported claims instead of promoting a fluent explanation to fact.

The paid-media implementation adds country-filtered Meta records, returned library totals, Google advertising copy and landing pages, advertiser identity checks, Python-calculated comparisons and completeness-aware snapshots.

Optional DataForSEO search-auction captures and Claude creative vision add dated search observations and image review, including retained Arabic copy.

The model interprets collected figures rather than counting them or inventing spend and performance.

Reports use an HTML slide deck, on-demand Chromium PDF and an optional PowerPoint exporter; the new paid-media section is HTML-only.

An optional communications pack creates a cover email, chat summary and leadership note from the finished report, with figure checks and a deterministic fallback.

Named web accounts can add viewer, analyst and admin permissions with an audit trail, while shared report history remains shared across teams.

Estimates, per-run cost caps, per-meter ceilings, cached retrieval and named degradation records bound the work and disclose what was skipped.

These capabilities are implemented behind feature flags; this source review does not establish their activation in the running service.

Three decisions

What shaped the build

  • A research plan has to be answerable

    The plan is constrained by the collectors enabled for the run and by what those sources can actually return. Existing channel results feed the same ledger as targeted retrieval, so gap analysis can reuse evidence rather than paying to rediscover it. More depth increases bounded questions and rounds; it does not turn missing coverage into a finding.

  • The model explains; the evidence keeps its limits

    Python computes advertising figures, while the model interprets them. A separate ledger review challenges the evidence before synthesis, and source/date controls and bounded editorial review preserve its provenance afterwards. An unresolved identity is unknown rather than zero activity. Complete reads are required before inferring stopped ads, and public ad records do not establish spend, impressions, reach, conversions or ROAS.

  • Bound the research and the handoff

    Per-run caps and independent per-meter ceilings are checked before metered work, with cached retrieval, source-rate controls and named skips when a path degrades. The communications pack can use only report-supported figures; rejected, failed or unaffordable drafting falls back to payload-derived text. Optional roles govern access, but shared team history is not tenant isolation. Feature flags and implementation records do not by themselves prove production activation.

What the evidence can say

The iterative research loop, pillar report, enhanced evidence path, Exa, Firecrawl, Google Places, paid-media analysis, search-auction capture, creative vision, named accounts and communications pack are individually controlled by feature flags. Their source implementation does not establish which paths are active in the running service.

Standard, Deep and Full change research scope, question count, retrieval limits and round ceilings. Runtime and cost vary with the entity count and enabled sources; a single fixed turnaround or price would hide that difference.

Source links and matching URLs establish provenance, not independent verification of every assertion. Missing dates, shallow coverage, source failures, unresolved identities and skipped research must remain visible.

Ad longevity and variants do not prove performance. Public advertising records do not establish spend, impressions, reach, conversions or ROAS. Search presence is a dated observation for one query, market and device; stopped-ad comparisons require complete active reads in both runs.

The primary report is HTML and its PDF is rendered on demand. PowerPoint is an optional existing export path; the new paid-media section is not rendered into PowerPoint.

Named accounts can enforce viewer, analyst and admin permissions and attribute activity, but all signed-in teams share report history. This is not per-team data isolation.

Built with

18 parts

Python · requests
Shared pipeline, iterative research, claim ledger, deterministic metrics and guarded API calls
Anthropic SDK · Claude Sonnet 4.6
Streamed planning, evidence interpretation, separate review, optional creative vision and communications drafts
Serper.dev
Google News and web search for news, social, website and keyword signals
Exa API
Optional semantic search and separately metered content retrieval
Firecrawl API
Optional shortlisted page extraction with caching, concurrency and request-rate controls
Apify
Meta Ad Library and Google Ads Transparency records, plus configured social and traffic enrichment actors
DataForSEO API
Optional paid-search snapshots by query, market and device
Google Places API
Optional physical-location ratings, review counts and cached observations
Similarweb · SpyFu
Traffic and keyword signals through the configured Apify and Serper collectors, with missing coverage retained
FastAPI · uvicorn
Single-worker API, threaded report jobs, progress polling and server-enforced access checks
python-telegram-bot
Allowlisted report requests, quick scans and file delivery through Telegram
Node.js · pptxgenjs
HTML slide-deck generation and optional editable PowerPoint export
Puppeteer Core · Chromium
Serialized, on-demand PDF rendering from the HTML report
Supabase · PostgreSQL
Run, signal and cost history; stored baselines support comparisons
HTML · CSS · JavaScript
Browser command centre, report history and self-contained report presentation
Docker Compose · Hetzner · nginx
Documented bot/API/report runtime, mounted output volumes and TLS reverse proxy
scrypt · role checks · audit log
Optional named accounts, viewer/analyst/admin permissions and attributed activity records
Feature flags · budget meters
Optional capability activation, estimates, per-run caps, per-meter ceilings and visible skipped work