Architecture
Working in this demo
LiveThree 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
LimitedAutopilot 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
Scheduler
Starts each agent on its own timetable.
Job queue
Holds work safely and retries failures.
Agent workers
One worker per platform runs the agent loop.
Approval
Optional human review before a post goes out.
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
| Layer | Choice | Why |
|---|---|---|
| Dashboard and API | Next.js with TypeScript | One typed codebase for the interface and the server routes. |
| Agent runtime | Background workers with a job queue | Agents run on a server around the clock, with retries and schedules. |
| AI models | Provider layer for Claude, GPT, and Gemini | Pick the best model per agent and avoid lock-in to one vendor. |
| Memory | Postgres with vector search | Keeps history and finds similar past posts, so agents do not repeat. |
| Platform tools | One MCP server per platform | Each agent only gets the tools for its own platform. |
| Hosting | Managed app hosting plus an always-on worker | The dashboard deploys on every push, and the worker keeps agents running overnight. |
| Monitoring | Structured logs, traces, and alerts | Problems 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.