Skip to content

Zorbit Architecture

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.

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.

Visual representation of the complete system architecture showing the relationships between client layers, application services, data storage, and external services.


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.

Diagram illustrating the relationships between the Next.js application and all external service providers, showing the flow of data and authentication mechanisms.

Comprehensive table listing all external services, their purposes, integration methods, and authentication requirements for each service provider.

ServicePurposeIntegration TypeAuthentication
ClerkUser authentication & managementOAuth, WebhooksAPI Keys
OpenRouterAI/LLM for content generationREST APIAPI Keys
ExaAI-powered web searchREST API (via OpenRouter)API Keys
ReplicateAI image generationREST APIAPI Keys
LinkedInPost publishingOAuth, REST APIOAuth Tokens
DodoPaymentsPayment processingREST API, WebhooksAPI Keys
Cloudflare R2Image storageS3-compatible APIAccess Keys
PostHogAnalytics & trackingREST APIAPI Keys

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.

Sequence diagram showing the complete process of generating a new post, from user request through authentication, quota checking, AI content generation, and database persistence.

Sequence diagram detailing the process of publishing a generated post to LinkedIn, including image handling, OAuth token management, and LinkedIn API interactions.

Sequence diagram illustrating the subscription purchase flow, from checkout initiation through payment processing, webhook handling, and subscription activation.

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.