Click any component to explore it in the full case study.

3-Pass Content Generation Pipeline
KPI Gate
Data Validation
Validates crowd_score present, operational_date matches. Blocks generation if KPI data missing.
Pass 1
Data Synthesis
Claude Haiku agentic loop — 30+ tool calls via ThreadPoolExecutor. Assembles structured summary from live operational data.
Pass 2
Platform Format
Claude Sonnet — formats for Facebook, Instagram, Threads. Per-platform character limits, tone, hashtag strategy.
Pass 3
Reels Script
HOOK + SEGMENT_1 + CTA + NARRATION. 36–42 words enforced. Feeds directly into AI Video Team pipeline.
🛡️
Anti-Hallucination Architecture
Pre-fetch layer ensures all data is real before generation starts. Tool failures return "No data available" — never hallucinate. KPI gate blocks publishing without operational data. Gate reason audit tracks every failure.
Pre-fetch completeness gateKPI gate (no data = no publish)Tool failure = "No data available"Gate reason audit trailParallel tool execution tracking0 hallucinated data points
10
Pipeline types
30+
LangChain tools
3
Content passes
0
Hallucinated data
StackPythonAzure FunctionsLangChainClaude Haiku (Pass 1)Claude Sonnet (Pass 2–3)PostgreSQL RAGThreadPoolExecutorCosmos DB