Case study · AI-assisted marketing
SpyroCode Marketing Agent
SpyroCode Marketing Agent is a private platform, built and operated by us, to manage products and campaigns, generate editorial content with AI, and publish it in a controlled way.
Context
The Marketing Agent is one of SpyroCode's own products. It organizes marketing around products, campaigns, and channels, and keeps a clear boundary between what AI drafts and what a person approves.
Challenge
Generating marketing text with AI is easy; doing it consistently, without repeating content, and without ever publishing something nobody reviewed is the hard part. Publishing to an external provider also needs to avoid duplicates when a response is ambiguous.
Solution
- Products with audience, value proposition, key features, and brand voice, each linked to its own channels
- Campaigns with objective, audience, key message, and language
- Generation in three layers of context (product, campaign, and post strategy) with channel-specific rules and awareness of earlier content
- Immutable revisions: draft, human review, approval of an exact revision, and an explicit publish command
- Editing content invalidates any earlier approval; generation workers can never approve or publish
- Reliable publishing: durable evidence before calling the provider, later reconciliation, and no blind retries when a result is uncertain
Architecture
A monorepo with three applications: a Next.js administration console, a NestJS API, and a worker that runs AI generation and publishing jobs. PostgreSQL is the durable source of truth, while Redis with BullMQ runs asynchronous work. Content is generated with Vertex AI (Gemini) and published to LinkedIn through Buffer. The model is multi-tenant, with roles for owner, editor, and reviewer. It is deployed on AWS with Docker Compose, images in ECR, configuration in Parameter Store, and automated deployments with rollback.
Technologies
Results
- One place to manage products, campaigns, review, approval, and publishing
- No content is published without the explicit approval of a person
- Publishing designed to prioritize avoiding duplicates over retrying blindly
- Multi-tenant architecture ready to grow beyond a single organization
Need something like this for your business?
Tell us about your project and we'll reply with the next steps.
Tell us about your project