Product Architecture

The Mirror Protocol is not a theory. It's a live, deployed system running on Cloudflare Workers with 5 AI-powered pillars.

๐Ÿ—๏ธ System Overview

Trigger
Telegram / Webhook / Cron
โ†’
AI Brain
DeepSeek V4 Flash
โ†’
Voice DNA
Mistral
โ†’
Router
Cloudflare Worker
โ†’
Gateway
Hermes
โ†’
Storage
Notion MCP

โš™๏ธ Tech Stack

โ˜๏ธ
Cloudflare Workers
Serverless edge compute for all 5 pillars
๐Ÿง 
DeepSeek V4 Flash
Reasoning model โ€” lead scoring, analysis, grading
โœ๏ธ
Mistral Small
Voice DNA copywriting โ€” human-sounding content
๐ŸŽค
OpenAI Whisper
Audio transcription for voice notes
๐Ÿšช
Hermes Gateway
Orchestrator โ€” routes data to Notion MCP
๐Ÿ“’
Notion MCP
Database, drafts, lead management, grades
๐Ÿ”
HMAC-SHA256
Signed webhooks between Worker and Gateway
๐Ÿ“…
Cron Triggers
Scheduled pillar execution (every 6h)

๐Ÿ”Œ Pillar Breakdown

๐ŸŽค
Pillar 1 โ€” Voice Capture
Endpoint: POST /api/pillar-1/:token
Live โœ…
// Telegram voice โ†’ Whisper โ†’ DeepSeek โ†’ Mistral โ†’ Hermes โ†’ Notion
๐ŸŽค Input: Telegram voice message (OGG Opus)
โ†“
๐Ÿง  Whisper("transcribe audio") โ†’ raw text
โ†“
๐Ÿง  DeepSeek("extract: mainIdea, hook, painPoint, ctaAngle")
โ†“
โœ๏ธ Mistral("Voice DNA rules: utility, pattern break, one-line rule")
โ†“
๐Ÿ“ค Output: Notion draft (Status: Not started, Pillar: Pillar 1)
โญ
Pillar 2 โ€” Lead Reactivation
Endpoint: POST /api/pillar-2/reactivate
Live โœ…
// LinkedIn engagers โ†’ DeepSeek scores โ†’ Mistral drafts DM โ†’ Notion leads DB
๐Ÿ“ฅ Input: [{name, linkedinUrl, commentText, context}]
โ†“
๐Ÿง  DeepSeek("score 1-10, classify hot/warm/cold, identify pain points")
โ†“
โœ๏ธ Mistral("3-sentence re-engagement DM in Voice DNA")
โ†“
๐Ÿ“ค Output: Notion lead (Score: 9/10, Class: Hot, DM: "...", Pillar: Pillar 2)
๐Ÿ’ฌ
Pillar 3 โ€” DM Triage
Endpoint: POST /api/pillar-3/triage
Live โœ…
// Inbound DM โ†’ Dual-score classifier + DeepSeek analysis โ†’ Mistral reply
๐Ÿ“ฅ Input: {message, sender, platform}
โ†“
๐Ÿ” Intent Scanner("keywords: pricing, help, cost, automate, urgent")
๐Ÿ” AI Classifier("hot/warm/cold/spam")
โ†“
โœ๏ธ Mistral("hot lead โ†’ 2-sentence reply in Voice DNA")
โ†“
๐Ÿ“ค Output: {classification, reply} โ†’ Notion (Pending Review)
๐ŸŽฏ
Pillar 4 โ€” Call Coach
Endpoint: POST /api/pillar-4/grade
Live โœ…
// Call transcript โ†’ DeepSeek grades 6 frameworks โ†’ Overall A-F + improvements
๐Ÿ“ฅ Input: {transcript, coachId}
โ†“
๐Ÿง  DeepSeek("grade: hook, problem_stack, solution, objections, close, voice")
โ†“
๐Ÿ“ค Output: Notion (Overall: A-, categories, raw_analysis, Tags: Pillar 4)
๐Ÿ“ง
Pillar 5 โ€” DB Reactivation
Cron: 0 */6 * * *
Live โœ…
// Cron trigger โ†’ Fetch dormant Notion contacts โ†’ DeepSeek re-engagement email
โฐ Trigger: Every 6 hours (Cloudflare Cron)
โ†“
๐Ÿ“’ Notion Query("Status = 'Not started', limit 10")
โ†“
๐Ÿง  DeepSeek("3-line Voice DNA re-engagement email")
โ†“
๐Ÿ“ค Output: Notion (Pending Send, Pillar 5, draft email)

๐Ÿ”‘ Tech Credentials

Worker
themirrorprotocol.online
Cloudflare Worker ยท Version 26da89d6
Dashboard
dashboard.themirrorprotocol.online
Next.js ยท Cloudflare Pages
Gateway
Hermes (VPS)
Port 8644 ยท HMAC signed webhooks
Database
Notion (Mirror Protocol Data)
MCP server ยท 9 Status options ยท 5 Pillar tags

Ready to deploy your Mirror Protocol?

Book a call and go live in 30 days.

Get Started โ†’