AI-driven intelligence platform for medical and pharma trends
About the project
Horizon Scan is an AI-agent platform for monitoring trends in pharma and biotech. Agents daily scan regulatory databases (FDA, EMA), clinical trial registries, scientific journals, press releases from key players, and social media (Telegram, Facebook, X, LinkedIn - official company channels and KOL profiles), extract facts, update trend pages, and publish a daily digest to social media (Telegram, Facebook, X) - without editor involvement. Scalability through a unified collection pipeline and transparent source traceability form the basis for market intelligence and compliance products. The platform is suitable for licensing to media and pharma companies as a white-label solution for up-to-date trend landscapes.
TriggerDaily on schedule or manually from the admin panel with one click
↓
CollectionSource crawl: regulatory databases, journals, clinical trial registries, company social media and KOL profiles
↓
ProcessingFact extraction, deduplication, normalization. Each fact is linked to a primary source
Code, CI/CD. On pipeline failure - issue (GitHub Issues), notifications (Actions). Runtime - Vercel Runtime Logs; deploy and error alerts
Analytics
ClarityGA4
Behavior, web analytics
CMS
Sanity
Site content management: pages, copy, media. Visual editing, preview drafts on Vercel
Communication
ResendClaude API
Contact forms (email notifications). FAQ chatbot (Vercel AI SDK)
SMM and auto-publishing
Telegram Bot APIFacebook Graph APIX API v2GPT Image 1.5
Claude API - digest text and channel format adaptation. GPT Image 1.5 - creative generation (covers, cards). QA agent: fact, tone, size and format checks before publishing to site and social. GitHub Actions publishes on schedule
Proxy and anti-detection
Bright DataResidential Proxy
Residential proxy rotation for LinkedIn, Facebook, X. Sticky sessions, exponential backoff. User-Agent rotation and TLS fingerprint alignment for Playwright connectors
Security
Vercel FirewallSupabase RLSGitHub Secrets
DDoS: Vercel Firewall (L3/L4/L7) + WAF + Attack Challenge Mode. Supabase: Row Level Security on every table, JWT key rotation, service_role backend-only. API keys and social tokens - GitHub Encrypted Secrets
P1Architecture and infrastructure
Architecture, data model, CI/CD, roles, API for Sanity and admin.
Tasks
1Data schema design: raw documents, extracted facts, block versions
2Internal entity model: drug, technology, indication, country, status
3Dev environment, CI/CD, logging and error monitoring setup
5API design for CMS integration and internal editor UI
6Security: RLS on every table, GitHub Encrypted Secrets for keys and tokens, Vercel WAF setup
Phase deliverables
✓System architecture diagram
✓ERD data model
✓Deployed dev and test infrastructure
P2Data source integration
Connectors to all sources, raw archive, synonym dictionary, monitoring.
Collection strategy by source
Regulatory and safety - API and RSS (FDA, EMA). Clinical trials - registry APIs (ClinicalTrials.gov, CTIS, WHO ICTRP). Publications - APIs (PubMed, Europe PMC, Crossref) and RSS from leading journals. Pharma companies - press releases and news from official sites. Social media - official company channels and KOL profiles (LinkedIn, Telegram, Facebook, X). All stored in raw archive with source and date metadata.
REST APIRSS / AtomPlaywrightWeb Service / httpx·BS4
Source
Method
openFDAiRegulatory data
REST API
CTIS (ЕС)iClinical trials
REST API
CrossrefiScientific publications
REST API
ClinicalTrials.goviClinical trials
REST APIRSS / Atom
EMAiRegulatory data
REST APIRSS / Atom
FDA AlertsiRegulatory data
REST APIRSS / Atom
PubMed / Europe PMCiScientific publications Lancet, NEJM, JAMA & etc
REST APIRSS / Atom
InstitutionsiOrganizations NIH, WHO, Uni Clinics & etc
REST APIPlaywright
Social mediaiChannels, official accounts, KOL profiles Meta, X, Telegram & etc