Component Interaction Map
This document outlines how major services, background workers, storage layers, and external APIs interact during end-to-end operations in MetaPilot.
Complete System Data Flow Map
Rendering diagram...
Service Communication Matrix
| Source Service | Target Service | Protocol | Payload Type | Use Case |
|---|---|---|---|---|
| Next.js Dashboard | Daphne REST API | HTTP/2 (HTTPS) | JSON | Management operations, authentication, template builder |
| Next.js Inbox UI | Django Channels | WebSockets (WSS) | JSON Frames | Live agent chat, unread count badge updates |
| Django REST API | PostgreSQL / SQLite | TCP / Native | SQL Queries | Relational persistence, audit logs, tenant settings |
| Django REST API | Redis | TCP (RESP) | Redis Protocol | Session caching, rate limiting, channel publishing |
| Celery Beat | Redis Queue | TCP (RESP) | Serialized Tasks | Cron task dispatching, heartbeat checks |
| Celery Workers | Meta Cloud API | HTTPS / REST | JSON (v22.0) | Outbound WhatsApp template and text messaging |
| Celery Workers | OpenRouter API | HTTPS / REST | JSON | AI Chatbot text completions and vision analysis |
| Meta Cloud API | Django Webhook View | HTTPS POST | JSON Webhook | Inbound message delivery and status updates ( |