Marketing services
Competitor social analytics, from hourly scrape to dashboard and agent
Shipped for A marketing agency
6
01
The problem
The agency tracked competitors' social pages by hand and could not see growth or engagement over time.
02
The constraint
Competitor pages expose only public data: followers, posts and reactions. Reach and impressions are admin-only, so the system computes the standard public engagement proxy instead of pretending to have them.
THE MACHINE
03
The system
Scheduled scraping (company details hourly, posts every four hours) into a PostgreSQL time series; a FastAPI API with an AI layer that turns questions into a single guarded read-only SELECT over allow-listed views under a read-only role, and tags each post's topics and sentiment; an MCP server for agents; a Next.js dashboard; a daily sync to the warehouse.
System diagram: 7 nodes and 7 directed flows.
SOURCE
- scheduled scraping · public data
MODEL
- topic + sentiment tagging
- question → guarded read-only SQL
ACTION
- dashboard
- MCP server · 6 tools
STORE
- time-series database
- daily warehouse sync
FLOWS
- scheduled scraping · public data to time-series database
- time-series database to topic + sentiment tagging
- time-series database to question → guarded read-only SQL
- topic + sentiment tagging to dashboard
- question → guarded read-only SQL to dashboard
- question → guarded read-only SQL to MCP server · 6 tools
- time-series database to daily warehouse sync
MEASURED, NOT CLAIMED
04
The outcome
Competitor growth and engagement tracked continuously, answerable in plain English from the dashboard or by the agency's agents over 6 MCP tools.