Skip to content

Architecture

AI model

Working in this demo

Live
  • Three separate agentsLinkedIn, X, and Facebook each have their own tone, instructions, and skills.

  • Write, check, rewrite loopEvery draft is checked against platform rules and rewritten until it passes.

  • MemoryEach agent reads its earlier posts and picks a new angle.

  • Three AI modelsGemini, ChatGPT, and Claude sit behind one interface. Switch with one click.

  • Monitoring and error handlingEvery run, rewrite, and failure is logged, with clear messages and retry.

Simplified for the demo

Limited
  • Autopilot runs in the browserIt stops when the tab closes. Production moves the same loop to a server.

  • Data stays in this browserPosts and memory are not shared between devices. Production uses a database.

  • Live posting needs account keysThe posting code is built in. It turns on when platform keys and a passcode are added.

How the 24/7 system works

  1. Scheduler

    Starts each agent on its own timetable.

  2. Job queue

    Holds work safely and retries failures.

  3. Agent workers

    One worker per platform runs the agent loop.

  4. Approval

    Optional human review before a post goes out.

  5. Platform APIs

    Posts, then reads back results.

Shared by every agent

  • AI model layer

    Claude, GPT, and Gemini, with fallback if one is down.

  • Memory store

    Post history, brand facts, and results.

  • Monitoring

    Logs, traces, and alerts for every run.

Tools and why

LayerChoiceWhy
Dashboard and APINext.js with TypeScriptOne typed codebase for the interface and the server routes.
Agent runtimeBackground workers with a job queueAgents run on a server around the clock, with retries and schedules.
AI modelsProvider layer for Claude, GPT, and GeminiPick the best model per agent and avoid lock-in to one vendor.
MemoryPostgres with vector searchKeeps history and finds similar past posts, so agents do not repeat.
Platform toolsOne MCP server per platformEach agent only gets the tools for its own platform.
HostingManaged app hosting plus an always-on workerThe dashboard deploys on every push, and the worker keeps agents running overnight.
MonitoringStructured logs, traces, and alertsProblems are seen and reported before the client notices them.

Built to keep running

  • Retries with growing wait times when a model or platform fails.
  • A rate budget per platform, so agents never hit posting limits.
  • A unique key on every post, so a retry can never post twice.
  • A holding queue for jobs that keep failing, with an alert to a person.
  • Health checks on every worker, and an automatic restart when one stops.