Zorbit Architecture
Agent AI Flow
Section titled “Agent AI Flow”The multi-agent pipeline that orchestrates the generation of LinkedIn posts through specialized AI agents. Each agent handles a specific aspect of content creation, from research to final assembly.
System Architecture
Section titled “System Architecture”Overview of the Zorbit platform’s layered architecture, including client interfaces, application services, data storage, and external integrations. This section provides a comprehensive view of how all components interact within the system.
High-Level Architecture Diagram
Section titled “High-Level Architecture Diagram”Visual representation of the complete system architecture showing the relationships between client layers, application services, data storage, and external services.
External Integrations
Section titled “External Integrations”Documentation of all third-party services integrated with the Zorbit platform, including authentication providers, AI services, payment processors, and storage solutions. This section details how external services are connected and used throughout the application.
Integration Architecture
Section titled “Integration Architecture”Diagram illustrating the relationships between the Next.js application and all external service providers, showing the flow of data and authentication mechanisms.
External Service Details
Section titled “External Service Details”Comprehensive table listing all external services, their purposes, integration methods, and authentication requirements for each service provider.
| Service | Purpose | Integration Type | Authentication |
|---|---|---|---|
| Clerk | User authentication & management | OAuth, Webhooks | API Keys |
| OpenRouter | AI/LLM for content generation | REST API | API Keys |
| Exa | AI-powered web search | REST API (via OpenRouter) | API Keys |
| Replicate | AI image generation | REST API | API Keys |
| Post publishing | OAuth, REST API | OAuth Tokens | |
| DodoPayments | Payment processing | REST API, Webhooks | API Keys |
| Cloudflare R2 | Image storage | S3-compatible API | Access Keys |
| PostHog | Analytics & tracking | REST API | API Keys |
Data Flow Diagrams
Section titled “Data Flow Diagrams”Sequence diagrams that illustrate the step-by-step flow of data and interactions between system components for key operations. These diagrams show the chronological sequence of events from user actions through to system responses.
Post Generation Flow
Section titled “Post Generation Flow”Sequence diagram showing the complete process of generating a new post, from user request through authentication, quota checking, AI content generation, and database persistence.
LinkedIn Post Publishing Flow
Section titled “LinkedIn Post Publishing Flow”Sequence diagram detailing the process of publishing a generated post to LinkedIn, including image handling, OAuth token management, and LinkedIn API interactions.
Subscription & Payment Flow
Section titled “Subscription & Payment Flow”Sequence diagram illustrating the subscription purchase flow, from checkout initiation through payment processing, webhook handling, and subscription activation.
Image Generation Flow
Section titled “Image Generation Flow”Sequence diagram showing the end-to-end process of generating images using AI, including prompt generation, image creation via Replicate, storage in Cloudflare R2, and database updates.