Skip to main content

CROW Internal Documentation

Internal documentation for CROW (Cognitive Reasoning Observation Watcher) by B3.

About CROW

CROW is a unified customer interaction intelligence platform that collects behavioral signals across digital storefronts (web SDK), physical retail (CCTV), and social media, then consolidates them into a searchable natural language data layer. Built entirely on Cloudflare's edge infrastructure with Workers AI models. External AI systems can access CROW data via standard AI interoperability protocols -- MCP (Model Context Protocol) for LLM tool-use integrations and A2A (Agent-to-Agent) for autonomous agent collaboration.

Three Data Channels

  1. Web Component -- JavaScript SDK captures user interactions on web, mobile (React Native), and desktop (Electron) applications. Sessions are defined by 1 hour of user inactivity.
  2. Social Component -- AI-driven web search agents and social media link scraping via Cron Triggers. Each cron execution equals one session.
  3. CCTV Component -- Real-time video frame analysis via Cloudflare Workers AI vision models. Each hour of footage equals one session.
TaskLink
Deploy a serviceDeployment Guide
Bootstrap the workspaceLocal Development
Add a new API endpointAPI Reference
Understand the architectureSystem Architecture
MCP / A2A protocolsIntegration API
Coding conventionsCoding Conventions
AI model inventoryAI Models

Documentation Overview

Architecture

Services

Per-service documentation covering schema, routes, environment variables, secrets, queue bindings, and dependencies:

API Gateway

Core Services

AI Protocol Services

  • mcp-service -- MCP server exposing CROW data as LLM tools
  • a2a-service -- A2A protocol server for agent-to-agent collaboration

Social Media Pipeline

BFF (Backend for Frontend) Services

Ingestion Services

Infrastructure Services

Frontend Clients

CLI Tools

  • cctv-cli -- CLI tool for CCTV streaming

Deployment

  • Deployment Guide -- Wrangler commands, secrets, D1 databases, environments, Workers Containers, OpenNext, Durable Objects, Queues

Reference

Features