An open-source deterministic multi-agent system for running a complete content marketing workflow:
Research → Strategy → Content → Notion → Delivery
Originally built for Piggy Wallet — a fintech + edtech product helping families in emerging markets protect savings from inflation and build healthier financial habits. You can also try the Stellar version.
Note: This repo provides agent contracts, schemas, and setup docs — not a standalone runtime. The workflow runs inside Paperclip.
Most AI agent workflows fail because they rely on loose text, implicit assumptions, and "looks good" reasoning.
Open Agentic CMO takes a different approach. It is built around:
- Signals — explicit workflow transition markers
- Artifacts — structured outputs that can be validated
- Validation gates — hard checks before moving to the next phase
- Idempotency — no duplicate work, no duplicate Notion entries, no duplicate delivery
- Human reviewability — both content and research context are persisted for review
- Failure recovery — invalid or incomplete states block safely instead of corrupting downstream execution
The goal is not just to generate content. The goal is to build a reliable, auditable, autonomous marketing operating system.
Open Agentic CMO is designed to run in Paperclip using the agent contracts in this repository.
For the full VPS setup, see docs/10-paperclip-vps-quickstart.md.
git clone https://github.com/matiascodela/open-agentic-cmo.git
cd open-agentic-cmocp .env.example .envEdit .env and add your own credentials:
NOTION_API_KEY=your_notion_api_key_here
NOTION_CONTENT_DATABASE_ID=your_notion_content_database_id_here
NOTION_RESEARCH_DATABASE_ID=your_notion_research_database_id_here
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
TELEGRAM_CHAT_ID=your_telegram_chat_id_hereDo not commit .env. Real credentials should stay local or inside your deployment environment.
Follow the VPS quickstart: docs/10-paperclip-vps-quickstart.md.
The guide covers VPS preparation, Node.js 20+ and pnpm installation, Paperclip installation, SSH tunnel access, workspace setup, and Notion + Telegram setup.
Create the four core agents in Paperclip and paste the corresponding instruction files:
agents/porky/AGENTS.mdagents/babe/AGENTS.mdagents/hamm/AGENTS.mdagents/pumba/AGENTS.md
Porky also requires supporting operating files: SOUL.md, TOOLS.md, and HEARTBEAT.md.
After completing Install above:
- Create the four agents in Paperclip and paste their instruction files
- For Porky, also paste
SOUL.md,TOOLS.md, andHEARTBEAT.md - Send Porky: "Run the controlled E2E test for 3 days"
- Watch Notion fill with content + Telegram receive a delivery summary
For the full E2E test spec, see docs/examples/example-controlled-e2e-test.md.
Core docs:
- 01 — Overview
- 02 — Architecture
- 03 — Agent Contracts
- 04 — Signal Contract
- 05 — Artifact Contracts
- 06 — Orchestration Loop
- 07 — Notion Persistence
- 08 — Testing E2E
- 09 — Failure Recovery
- 10 — Paperclip VPS Quickstart
Examples:
Schemas live in /schemas.
Contributions should preserve the system's contract-based design. Before contributing, read CONTRIBUTING.md, SECURITY.md, and CODE_OF_CONDUCT.md.
Good contributions improve clarity, determinism, validation, documentation, examples, schemas, failure recovery, and human reviewability.
Do not commit real API keys, tokens, database IDs, private URLs, workflow logs, or production screenshots. Use .env.example for placeholders only.
See SECURITY.md for details.
MIT — see LICENSE.
Originally built by Piggy Wallet as an internal autonomous content pipeline.