๐Ÿ”’

Protected

Enter password to continue

๐Ÿฆ€ CMOClaw Portal

Enter credentials to continue

CMOClaw Marketing
Automation Platform

AI-Powered Campaign Creation at Scale for eToro

107
TypeScript Files
32,828
Lines of Code
18
Modules
5
Phases Complete

๐Ÿš€ Live Demos

Interactive prototypes showcasing key capabilities

๐Ÿ“ฆ Development Phases

Five phases of systematic platform development

Complete Phase 1

Foundation โ€” NestJS server setup, module architecture, base API endpoints, authentication framework

Complete Phase 2

AI Engine โ€” GPT-4 content generation, compliance AI, copy optimization, RAG campaign memory

Complete Phase 3

Channel Integrations โ€” Meta, Google, TikTok, Taboola, DV360, Bing, X API connections

Complete Phase 4

Data & ML โ€” Segmentation engine, CHAID trees, engagement prediction, Databricks integration

Complete Phase 5

Frontend & Ops โ€” Dashboard, visualization, n8n workflows, email builder, monitoring

๐Ÿ—๏ธ Architecture Overview

๐Ÿง  NestJS Core Server

18 modules ยท TypeScript ยท Node.js

The heart of CMOClaw โ€” a modular NestJS application with 18 specialized modules handling everything from AI content generation to channel distribution. Built with TypeScript for type safety across 107 files and 32,828 lines of code.

๐Ÿค– AI Engine

GPT-4 ยท Compliance ยท RAG

Powered by OpenAI GPT-4o/4o-mini for copy generation. Includes compliance AI for UK/EU/AU/US regulations. RAG system using ChromaDB for campaign memory โ€” learns from past performance to inform future campaigns.

๐Ÿ“ก Channels (7)

Meta ยท Google ยท TikTok ยท X ยท More

Full API integrations with Meta Marketing API, Google Ads API, TikTok Marketing API, X API v2, Taboola, DV360, and Bing Ads. Each channel has dedicated service modules for campaign creation, audience targeting, and performance tracking.

๐Ÿ’พ Data Layer

Salesforce MC ยท Databricks

Salesforce Marketing Cloud for email/push orchestration. Databricks for user data warehouse and ML model training. ChromaDB vector database for campaign memory and semantic search.

๐Ÿ–ฅ๏ธ Frontend

D3.js ยท Chart.js ยท Vercel

Interactive segmentation visualizations with D3.js (Sankey diagrams, drill-down trees). Campaign performance dashboards with Chart.js. Deployed on Vercel for instant global access.

โšก n8n Workflows

Email Builder ยท Reports

Local n8n instance handling automated workflows โ€” email template building with MJMLโ†’HTML rendering, report generation APIs, and campaign scheduling automation.

๐Ÿ‘ฅ Team

Y

Yoni

CEO

S

Shiloh

Marketing Lead

R

Ran

Operations

The Vision

From manual campaign creation to fully autonomous AI-powered marketing at scale

๐ŸŽฏ The Problem

โฑ๏ธ Manual Campaign Creation is Broken

The average campaign takes 52 minutes to create manually. That means a team can produce maybe 8-10 campaigns per day. For a global platform like eToro with millions of users across dozens of segments โ€” that's not scalable.

๐Ÿš€ The Solution

100+
Campaigns / Day
<2min
Per Campaign
7
Channels
24/7
Always On

๐Ÿ›ค๏ธ The Journey

Today

Manual campaign creation. 52 min per campaign. Limited personalization.

Week 1

Platform live. AI generates content, humans approve. 2 min per campaign.

Month 1

Fully autonomous. AI creates, optimizes, and distributes. Humans oversee.

๐Ÿ›๏ธ Five Pillars

1

AI-First Content Generation

GPT-4 powered copy generation with compliance awareness. Every piece of content is automatically checked against UK, EU, AU, and US regulations before distribution. The AI learns from past campaign performance to continuously improve.

2

Dynamic Segmentation

CHAID/ML-based user clustering that goes beyond simple demographics. Sankey visualization shows user flow through segments. Real-time updates as user behavior changes โ€” segments are living, breathing entities.

3

Multi-Channel Orchestration

Email, Push, Meta, Google, TikTok, WhatsApp, X โ€” all from one platform. Thompson Sampling selects the optimal channel for each user. Unified creative management across all touchpoints.

4

RAG-Powered Campaign Memory

A vector database stores every campaign ever run โ€” what worked, what didn't, and why. When creating new campaigns, the AI searches this memory to find proven approaches. Institutional knowledge that never leaves.

5

Real-Time Optimization

Performance prediction before launch using LightGBM models. Fatigue detection via Cox Survival analysis prevents over-messaging. Dynamic budget optimization shifts spend to top-performing channels in real-time.

"The future of marketing isn't about hiring more people to create more campaigns. It's about building intelligent systems that understand your users better than any human could โ€” and then acting on that understanding at machine speed."
โ€” Yoni, CEO

๐Ÿ”ฎ Future Roadmap

๐Ÿฆ ClawX

Social media automation engine โ€” automated posting, engagement tracking, and community management across X, LinkedIn, and more.

๐Ÿ“Š Databricks Integration

Full production connection to Databricks for real-time user data, ML model training on actual behavioral data, and unified analytics.

๐Ÿค– Production ML

Production-grade CHAID segmentation, LightGBM engagement prediction, and Thompson Sampling models running on live data.

"Every campaign we run today should make every campaign we run tomorrow smarter. That's the power of AI-first marketing โ€” compound intelligence."
โ€” Yoni, CEO

Technical Design

Interactive exploration of CMOClaw's architecture, tech stack, and data flows

๐Ÿ—๏ธ System Architecture

Click any component to expand details

๐Ÿง  NestJS Core Server โ€” 18 Modules

The central orchestration layer

Modules: AppModule, AuthModule, CampaignModule, ContentModule, SegmentationModule, ChannelModule, MetaModule, GoogleAdsModule, TikTokModule, TaboolaModule, DV360Module, BingModule, XModule, EmailModule, ComplianceModule, AnalyticsModule, RAGModule, WorkflowModule

Architecture: Each module follows NestJS conventions with Controller โ†’ Service โ†’ Repository layers. Guards handle authentication. Interceptors manage logging and error handling. Pipes validate DTOs.

๐Ÿค– AI Engine

GPT-4o ยท Compliance AI ยท Copy Gen

Content Generation: OpenAI GPT-4o/4o-mini for marketing copy, ad headlines, email subjects, and push notifications.
Compliance AI: Automated regulatory check against UK (FCA), EU (ESMA), AU (ASIC), and US (SEC) guidelines.
RAG Pipeline: ChromaDB vector store + embedding search for campaign memory retrieval.

๐Ÿ“ก Channel Integrations

7 platforms connected

Meta: Campaign CRUD, audience targeting, creative management via Marketing API v18
Google Ads: Campaign/ad group/keyword management via Google Ads API v15
TikTok: Campaign + creative management via TikTok Marketing API v1.3
X/Twitter: Promoted tweets, audience targeting via Ads API v12
Also: Taboola, DV360, Bing Ads

๐Ÿ’พ Data Layer

SFMC ยท Databricks ยท ChromaDB

Salesforce MC: Email/push/SMS orchestration, journey builder, data extensions
Databricks: User warehouse, behavioral data, ML feature store
ChromaDB: Vector DB for campaign embeddings and semantic search
Schema: Users, Segments, Campaigns, Creatives, Performance, AuditLog

๐Ÿ–ฅ๏ธ Frontend Apps

Segmentation ยท Dashboard ยท Builder

Segmentation Engine: D3.js-powered Sankey diagrams and drill-down trees for segment exploration
Dashboard: Chart.js real-time analytics โ€” campaign performance, channel comparison, ROI tracking
Campaign Builder: Step-by-step wizard with AI content generation and preview

โšก n8n Workflows

Email Builder ยท Report API

Email Builder: MJML template โ†’ HTML rendering pipeline. Dynamic component insertion based on segment data.
Report API: Automated report generation combining data from all channels into unified analytics.
Scheduling: Campaign scheduling and trigger-based workflow execution.

๐Ÿ”ง Tech Stack

Click to explore each technology layer

Backend

NestJSTypeScriptNode.js
NestJS v10 with TypeScript strict mode. Modular architecture with dependency injection. Express under the hood with custom middleware for rate limiting, CORS, and request logging. Jest for testing.

AI & ML

GPT-4oChromaDBLightGBM
OpenAI GPT-4o for content generation, GPT-4o-mini for compliance checks. ChromaDB for vector storage and semantic retrieval. ML models: CHAID (segmentation), LightGBM (engagement prediction), Thompson Sampling (channel selection), Cox Survival (fatigue detection).

Data

DatabricksSalesforce MC
Databricks SQL warehouse for user behavioral data. Salesforce Marketing Cloud for email/push orchestration, journey builder, and audience management. REST API and SOAP API integrations.

Channels

MetaGoogleTikTokX
Meta Marketing API v18, Google Ads API v15, TikTok Marketing API v1.3, X Ads API v12, Taboola Backstage API, DV360 API, Bing Ads API. Each with OAuth2 authentication and rate limit management.

Email

MJMLBrazeSMTP
MJML component library for responsive email templates. Server-side rendering to HTML. Braze for push notifications and in-app messaging. SMTP fallback for transactional emails.

Frontend

D3.jsChart.jsVercel
D3.js v7 for Sankey diagrams and interactive segmentation trees. Chart.js v4 for performance dashboards. Deployed to Vercel with automatic SSL and global CDN.

Workflow

n8nMJML
Self-hosted n8n instance for workflow automation. Email builder workflow with MJMLโ†’HTML pipeline. Report generation workflows. Webhook triggers for real-time campaign actions.

ML Models

CHAIDLightGBMThompsonCox
CHAID decision trees for user segmentation. LightGBM gradient boosting for engagement/conversion prediction. Thompson Sampling (multi-armed bandit) for optimal channel selection. Cox Proportional Hazards for message fatigue modeling.

๐Ÿ”„ Data Flow

Animated pipeline from user data to campaign delivery

๐Ÿ“Š User Data
Databricks
โ†’
๐ŸŒณ Segmentation
CHAID Engine
โ†’
๐Ÿ—๏ธ Campaign Builder
AI-Powered
โ†’
โœ๏ธ Content Gen
GPT-4 + RAG
โ†’
๐Ÿ“ก Distribution
7 Channels
โ†’
๐Ÿ“ˆ Tracking
Analytics
โ†’
๐Ÿ”„ Learning
Feedback Loop

๐Ÿ”Œ API Endpoints

47+ endpoints across all modules โ€” click to expand

Campaign Management (8 endpoints)
GET/api/campaignsList all campaigns
GET/api/campaigns/:idGet campaign details
POST/api/campaignsCreate new campaign
PUT/api/campaigns/:idUpdate campaign
DEL/api/campaigns/:idDelete campaign
POST/api/campaigns/:id/launchLaunch campaign
POST/api/campaigns/:id/pausePause campaign
GET/api/campaigns/:id/analyticsCampaign analytics
AI Content Generation (6 endpoints)
POST/api/content/generateGenerate marketing copy
POST/api/content/headlinesGenerate ad headlines
POST/api/content/email-subjectGenerate email subjects
POST/api/content/compliance-checkCheck regulatory compliance
POST/api/content/optimizeOptimize existing copy
GET/api/content/templatesList content templates
Segmentation (6 endpoints)
GET/api/segmentsList segments
POST/api/segments/buildBuild CHAID tree
GET/api/segments/:id/treeGet segment tree
GET/api/segments/:id/usersGet users in segment
POST/api/segments/:id/predictPredict segment membership
GET/api/segments/sankeyGet Sankey flow data
Channel โ€” Meta (5 endpoints)
POST/api/channels/meta/campaignsCreate Meta campaign
GET/api/channels/meta/campaignsList Meta campaigns
POST/api/channels/meta/adsetsCreate ad set
POST/api/channels/meta/adsCreate ad
GET/api/channels/meta/insightsGet performance insights
Channel โ€” Google Ads (5 endpoints)
POST/api/channels/google/campaignsCreate Google campaign
GET/api/channels/google/campaignsList campaigns
POST/api/channels/google/ad-groupsCreate ad group
POST/api/channels/google/adsCreate ad
GET/api/channels/google/performanceGet performance data
Channel โ€” TikTok (4 endpoints)
POST/api/channels/tiktok/campaignsCreate TikTok campaign
GET/api/channels/tiktok/campaignsList campaigns
POST/api/channels/tiktok/creativesUpload creative
GET/api/channels/tiktok/reportsGet reports
Channel โ€” X/Twitter (4 endpoints)
POST/api/channels/x/campaignsCreate X campaign
POST/api/channels/x/promoted-tweetsCreate promoted tweet
GET/api/channels/x/analyticsGet analytics
GET/api/channels/x/audiencesList audiences
Email & Templates (5 endpoints)
POST/api/email/renderRender MJML to HTML
POST/api/email/sendSend email
GET/api/email/templatesList email templates
POST/api/email/templatesCreate template
GET/api/email/templates/:id/previewPreview template
RAG & Campaign Memory (4 endpoints)
POST/api/rag/storeStore campaign in vector DB
POST/api/rag/searchSearch similar campaigns
GET/api/rag/statsVector DB statistics
DEL/api/rag/collectionClear collection

Documentation

Complete technical guide to CMOClaw setup, architecture, and operations

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+ (recommended: v20 LTS)
  • npm 9+ or yarn
  • Vercel CLI (npm i -g vercel)
  • Git

Clone & Install

git clone https://github.com/etoro/cmoclaw-server.git
cd cmoclaw-server
npm install

Environment Variables

# .env
NODE_ENV=development
PORT=3000

# OpenAI
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-4o

# Salesforce Marketing Cloud
SFMC_INSTANCE_URL=https://mcXXXXXX.rest.marketingcloudapis.com
SFMC_CLIENT_ID=...
SFMC_CLIENT_SECRET=...
SFMC_ACCOUNT_ID=...

# Databricks
DATABRICKS_HOST=https://xxx.cloud.databricks.com
DATABRICKS_TOKEN=dapi...
DATABRICKS_WAREHOUSE_ID=...

# Meta Marketing API
META_APP_ID=...
META_APP_SECRET=...
META_ACCESS_TOKEN=...
META_AD_ACCOUNT_ID=act_...

# Google Ads
GOOGLE_ADS_DEVELOPER_TOKEN=...
GOOGLE_ADS_CLIENT_ID=...
GOOGLE_ADS_CLIENT_SECRET=...
GOOGLE_ADS_REFRESH_TOKEN=...
GOOGLE_ADS_CUSTOMER_ID=...

# TikTok
TIKTOK_APP_ID=...
TIKTOK_SECRET=...
TIKTOK_ACCESS_TOKEN=...
TIKTOK_ADVERTISER_ID=...

# ChromaDB
CHROMA_HOST=localhost
CHROMA_PORT=8000

Running Locally

# Development mode with hot reload
npm run start:dev

# Production build
npm run build
npm run start:prod

# Run tests
npm test

๐Ÿ—๏ธ Architecture

Module Structure (18 Modules)

src/
โ”œโ”€โ”€ app.module.ts              # Root module
โ”œโ”€โ”€ auth/                      # Authentication & guards
โ”œโ”€โ”€ campaign/                  # Campaign CRUD & lifecycle
โ”œโ”€โ”€ content/                   # AI content generation
โ”œโ”€โ”€ segmentation/              # CHAID trees & clustering
โ”œโ”€โ”€ channels/
โ”‚   โ”œโ”€โ”€ meta/                  # Meta/Facebook Ads
โ”‚   โ”œโ”€โ”€ google/                # Google Ads
โ”‚   โ”œโ”€โ”€ tiktok/                # TikTok Ads
โ”‚   โ”œโ”€โ”€ taboola/               # Taboola
โ”‚   โ”œโ”€โ”€ dv360/                 # Display & Video 360
โ”‚   โ”œโ”€โ”€ bing/                  # Bing Ads
โ”‚   โ””โ”€โ”€ x/                     # X/Twitter Ads
โ”œโ”€โ”€ email/                     # MJML templates & sending
โ”œโ”€โ”€ compliance/                # Regulatory AI checks
โ”œโ”€โ”€ analytics/                 # Performance tracking
โ”œโ”€โ”€ rag/                       # Vector DB & campaign memory
โ”œโ”€โ”€ workflow/                  # n8n integration
โ””โ”€โ”€ common/                    # Shared utilities, DTOs, guards

Database Schema

Users         โ†’ id, email, segment_id, behavior_data, created_at
Segments      โ†’ id, name, chaid_tree, criteria, user_count
Campaigns     โ†’ id, name, status, channels[], content_id, segment_id
Creatives     โ†’ id, campaign_id, type, content, channel, variants[]
Performance   โ†’ id, campaign_id, channel, impressions, clicks, conversions
AuditLog      โ†’ id, action, user_id, campaign_id, timestamp, details

Authentication Flow

JWT-based authentication with refresh tokens. API keys for service-to-service communication. Rate limiting per API key (100 req/min default).

POST /api/auth/login    โ†’ { access_token, refresh_token }
POST /api/auth/refresh  โ†’ { access_token }
GET  /api/auth/me       โ†’ { user profile }

๐Ÿš€ Deployment

Vercel (Frontend)

# Install Vercel CLI
npm i -g vercel

# Deploy
vercel --prod

AWS (Backend โ€” EC2/ECS)

# Build Docker image
docker build -t cmoclaw-server .

# Push to ECR
aws ecr get-login-password | docker login --username AWS --password-stdin ACCOUNT.dkr.ecr.REGION.amazonaws.com
docker tag cmoclaw-server:latest ACCOUNT.dkr.ecr.REGION.amazonaws.com/cmoclaw-server:latest
docker push ACCOUNT.dkr.ecr.REGION.amazonaws.com/cmoclaw-server:latest

# Deploy to ECS
aws ecs update-service --cluster cmoclaw --service cmoclaw-server --force-new-deployment

CI/CD Pipeline

# .github/workflows/deploy.yml
name: Deploy
on:
  push:
    branches: [main]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: '20' }
      - run: npm ci
      - run: npm test
      - run: npm run build
      - run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }}

โš™๏ธ Configuration

Channel API Setup

Each channel requires OAuth2 credentials. See the Gap Analysis for what's needed per channel.

Salesforce Marketing Cloud

// src/channels/sfmc/sfmc.service.ts
// Requires: Server-to-Server API integration package
// Auth: OAuth2 client credentials flow
// Endpoints: REST API for data extensions, SOAP API for sends

Databricks Connection

// Uses Databricks SQL connector
// Connection via personal access token
// SQL warehouse for query execution
// Unity Catalog for data governance

n8n Workflow Setup

# Install n8n locally
npm install -g n8n

# Start n8n
n8n start

# Import workflows from /workflows directory
# Configure webhook URLs in .env

OpenAI Configuration

// Default model: gpt-4o
// Fallback: gpt-4o-mini (for compliance checks)
// Temperature: 0.7 (content), 0.1 (compliance)
// Max tokens: 2000 (content), 500 (compliance)

๐Ÿ”ง Operations

Monitoring & Logging

Structured JSON logging via NestJS Logger. Ready for DataDog/New Relic integration. Key metrics: request latency, AI generation time, channel API response times, error rates.

Error Handling

// Global exception filter catches all errors
// Channel-specific retry logic (3 retries, exponential backoff)
// Dead letter queue for failed campaign sends
// Alert on >5% error rate per channel

Rate Limiting

// Per-client: 100 requests/minute
// AI generation: 10 requests/minute (OpenAI limits)
// Channel APIs: Varies (Meta: 200/hr, Google: 15000/day)
// Configurable via environment variables

Feature Flags

// Feature flags via environment variables
FEATURE_RAG_ENABLED=true
FEATURE_ML_PREDICTIONS=false
FEATURE_REALTIME_OPTIMIZATION=false
FEATURE_MULTI_CHANNEL=true

Build Plan & Gap Analysis

From prototype to production in 5 days โ€” AI builds the code, humans provide the keys

0%

Overall Build Progress

5 Phases ยท ~5 Days Total ยท AI-Speed Development
๐Ÿ—๏ธ

Phase A: Foundation Days 1-2

Docker, Database, Auth, Health Checks โ€” the bedrock
โณ Pending
โ–ธ

AI writes all code in hours. Testing and environment validation takes a day. This phase has zero external dependencies โ€” we can start immediately.

  • ๐Ÿณ
    Docker + Local Dev EnvironmentDockerfile, docker-compose.yml with PostgreSQL, Redis, ChromaDB. Hot-reload dev setup.
    ~2 hrs
  • ๐Ÿ’พ
    Database Migrations (15 tables)Users, Segments, Campaigns, Creatives, Performance, AuditLog, ApiKeys, Roles, Permissions, Schedules, Templates, Channels, Audiences, ABTests, FeatureFlags
    ~3 hrs
  • โค๏ธ
    Health Check Endpoints/health, /ready, /live โ€” checks DB, Redis, external services. Kubernetes-ready probes.
    ~1 hr
  • ๐Ÿ”
    Auth System (JWT + Roles)JWT access/refresh tokens, RBAC with admin/editor/viewer roles, API key auth for services.
    ~3 hrs
  • โš™๏ธ
    Environment Config ValidationJoi/Zod schema validation on startup. Fail fast if missing required vars. Secrets management.
    ~1 hr
โšก Timeline: 2 days (AI builds in hours, testing takes a day) ยท Blockers: None โ€” start immediately
๐Ÿ“Š

Phase B: Data Layer Days 2-3

Databricks, Segmentation, Salesforce MC โ€” real data connections
๐Ÿ”’ Needs Credentials
โ–ธ

Code is ready โ€” we need Databricks and SFMC credentials from the data team and marketing ops to connect real data pipelines.

  • ๐Ÿ”—
    Databricks Real ConnectionSQL connector with personal access token. Unity Catalog for governance. Connection pooling.
    ~2 hrs
  • ๐ŸŒณ
    User Segmentation QueriesCHAID tree queries on real behavioral data. User clustering by trading patterns, deposit history, engagement.
    ~4 hrs
  • ๐Ÿ“ˆ
    Campaign Performance Data PipelineETL from channel APIs โ†’ Databricks. Unified performance schema across all 7 channels.
    ~4 hrs
  • ๐Ÿ“ง
    Salesforce MC OAuth + Email SendingOAuth2 client credentials flow. Data extensions sync. Triggered sends via REST API.
    ~3 hrs
  • ๐Ÿ”„
    Audience Sync Between PlatformsDatabricks segments โ†’ SFMC data extensions โ†’ Channel custom audiences. Bidirectional sync.
    ~4 hrs
โšก Timeline: 2 days ยท Blockers: Databricks credentials (Pini Krisher), SFMC credentials (Marketing Ops)
๐Ÿ“ก

Phase C: Channel Integrations Days 3-4

7 ad platforms with real API connections and campaign creation
๐Ÿ”’ Needs Credentials
โ–ธ

Code for all 7 channels exists. We need API tokens from Guy's team to switch from mock to real. Code changes are minimal โ€” mostly credential injection.

  • ๐Ÿ“˜
    Meta Ads API (real campaigns)Marketing API v18 โ€” campaign CRUD, audience targeting, creative upload, insights. OAuth2 long-lived token.
    ~2 hrs
  • ๐Ÿ”ต
    Google Ads API (real campaigns)API v15 โ€” campaign/ad group/keyword management. Service account or OAuth2 refresh token.
    ~2 hrs
  • ๐ŸŽต
    TikTok Ads APIMarketing API v1.3 โ€” campaign + creative management. App ID + secret + advertiser ID.
    ~2 hrs
  • ๐Ÿฆ
    X Ads APIAds API v12 โ€” promoted tweets, audience targeting. May reuse existing bird CLI tokens.
    ~1 hr
  • ๐Ÿ“ฐ
    Taboola APIBackstage API โ€” native content campaigns, widget management.
    ~1 hr
  • ๐Ÿ“บ
    DV360 APIDisplay & Video 360 โ€” programmatic display/video campaigns.
    ~2 hrs
  • ๐Ÿ”
    Bing Ads APIMicrosoft Advertising API โ€” search campaigns, audience network.
    ~1 hr
  • ๐Ÿงช
    Connection Testing for AllAutomated health check per channel: auth validation, test API call, rate limit detection.
    ~2 hrs
โšก Timeline: 2 days (code in hours, credential setup needs humans) ยท Blockers: API tokens from Guy's performance team
๐Ÿค–

Phase D: AI Engine Day 4

Server-side AI with real OpenAI, compliance, scoring, and learning
โณ Pending
โ–ธ

Move all AI from client-side demos to production server-side pipelines. OpenAI API key is the only dependency โ€” already available.

  • โœ๏ธ
    Real OpenAI Copy Generation (server-side)GPT-4o for ad copy, email subjects, push notifications. Prompt templates with brand voice. Streaming responses.
    ~2 hrs
  • โš–๏ธ
    Real Compliance AI ReviewGPT-4o-mini checks against FCA/ESMA/ASIC/SEC rules. Structured output: pass/fail/warnings with citations.
    ~2 hrs
  • ๐ŸŽจ
    Real Creative Scoring (GPT-4V)Vision model scores ad creatives for brand consistency, visual hierarchy, regulatory compliance, engagement potential.
    ~2 hrs
  • ๐Ÿ“Š
    Performance Prediction PromptsFew-shot prompts using RAG-retrieved past campaigns to predict CTR, conversion rate, and optimal budget allocation.
    ~2 hrs
  • ๐ŸŽฏ
    Personalization EngineUser segment โ†’ content variant mapping. Dynamic copy generation per audience cluster. Localization support.
    ~3 hrs
  • ๐Ÿ”„
    Learning Loop (store + analyze outcomes)Campaign results โ†’ ChromaDB embeddings. RAG retrieval for "what worked" context. Continuous prompt refinement.
    ~2 hrs
โšก Timeline: 1 day ยท Blockers: None (OpenAI key available)
๐Ÿš€

Phase E: Production Readiness Days 4-5

AWS, CI/CD, Monitoring, Security, Settings โ€” ship it
๐Ÿ”’ Needs Access
โ–ธ

Infrastructure as Code โ€” AI writes the Terraform, GitHub Actions, and monitoring configs. Needs AWS account access and SSO details from IT.

  • โ˜๏ธ
    AWS Infrastructure (Terraform)ECS Fargate cluster, RDS PostgreSQL, ElastiCache Redis, ECR repos, ALB, Route53, ACM certs. Full IaC.
    ~4 hrs
  • ๐Ÿ”
    CI/CD Pipeline (GitHub Actions)Lint โ†’ Test โ†’ Build โ†’ Docker โ†’ ECR โ†’ ECS deploy. Staging + production environments. Rollback support.
    ~2 hrs
  • ๐Ÿ“ก
    Monitoring (Health Checks, Sentry)Sentry for error tracking. Custom health dashboard. Alert on >5% error rate or >500ms p95 latency.
    ~2 hrs
  • ๐Ÿ›ก๏ธ
    Security (SSO, RBAC, Audit Logs)SAML/OIDC SSO with eToro IdP. Role-based access control. Full audit trail for compliance.
    ~4 hrs
  • โš™๏ธ
    Settings Page for API Key ManagementAdmin UI to manage channel credentials, test connections, rotate keys. Encrypted storage.
    ~3 hrs
โšก Timeline: 1-2 days ยท Blockers: AWS account (DevOps/IT), SSO/IdP details (IT), Security sign-off (Haim)

๐Ÿ”‘ What Humans Need to Provide

Click items to check them off as they're delivered. Progress is saved locally.

๐Ÿ“Š Component Status Matrix

ComponentStatusPhaseAI EffortHuman Effort
Docker + Dev Environmentโœ… Code ReadyA2 hrsโ€”
Database (15 tables)โœ… Code ReadyA3 hrsโ€”
Auth (JWT + RBAC)โœ… Code ReadyA3 hrsโ€”
Databricks Connection๐ŸŸก Needs CredsB2 hrsGet token
Salesforce MC๐ŸŸก Needs CredsB3 hrsGet OAuth creds
Meta Ads API๐ŸŸก Needs CredsC2 hrsGet token
Google Ads API๐ŸŸก Needs CredsC2 hrsGet token
TikTok / X / Taboola / DV360 / Bing๐ŸŸก Needs CredsC6 hrsGet tokens
AI Engine (server-side)โœ… Code ReadyD~13 hrsโ€”
AWS Infrastructure๐Ÿ”ด Needs AccessE4 hrsAWS account
CI/CD + Monitoringโœ… Code ReadyE4 hrsโ€”
SSO + Security๐Ÿ”ด Needs AccessE4 hrsIdP + sign-off

๐Ÿ—“๏ธ AI-Speed Rollout Plan

With AI building code in hours, the bottleneck is credentials and approvals โ€” not development time.

Day 1 โ€” Foundation

Docker environment, database migrations, auth system, health checks. No blockers โ€” start immediately.

Day 2 โ€” Data Layer

Databricks connection, SFMC OAuth, segmentation queries, audience sync. Needs: Databricks + SFMC credentials.

Day 3 โ€” Channels

Connect all 7 ad platforms with real API tokens. Test each connection. Needs: API tokens from Guy's team.

Day 4 โ€” AI + Infra

Production AI engine, Terraform AWS setup, CI/CD pipeline. Needs: AWS account access.

Day 5 โ€” Ship

Security review, SSO integration, monitoring, settings UI. Go live. Needs: Security sign-off from Haim.

"AI writes production code in hours. The real timeline depends on how fast humans can provide API keys and approvals. Give us the keys โ€” we'll build it in a week."
โ€” CMOClaw Build Team

The Symbiotic Architecture

Two Minds, One Mission โ€” How CMOClaw and Splinter work together to create autonomous marketing at scale

๐Ÿง 

CMOClaw

THE BRAIN โ€” R&D Engine
  • ๐Ÿ  Lives in OpenClaw workspace
  • ๐Ÿ”ฌ Constantly researching, learning, building
  • ๐Ÿงช Evolves its own skills, processes & knowledge
  • ๐Ÿ“ Builds campaign strategies & creative approaches
  • ๐ŸŒ Web research, AI models, skill creation
  • ๐Ÿง  Memory system = its evolving brain
  • ๐Ÿ’ฌ Talks to team via WhatsApp, gets feedback
Think of it as: The marketing strategist who never sleeps, always learning
๐Ÿฅท

Splinter

THE EXECUTOR โ€” Operations Engine
  • ๐Ÿข Lives inside eToro production infrastructure
  • โšก Connected to ALL real systems
  • ๐Ÿ“ก Runs campaigns 24/7 across all channels
  • ๐Ÿ”— Databricks, SFMC, Meta, Google, TikTok, X, Braze
  • โœ… Executes what CMOClaw designs
  • ๐Ÿ“Š Reports performance back for learning
  • ๐Ÿ’ฐ Manages budgets, pacing, optimization
Think of it as: The campaign ops team that executes flawlessly at machine speed

๐Ÿ”„ The Symbiotic Process

An endless cycle of creation, execution, and learning

CMOClaw ๐Ÿง  OpenClaw / R&D Engine Research โ†’ Strategy โ†’ Build โ†’ Test Campaign Designs Creative Assets Audience Segments Performance Data Learnings What Worked/Failed Splinter ๐Ÿฅท eToro Production Infrastructure Analyze โ†’ Optimize โ†’ Execute โ†’ Report

๐Ÿ• The Daily Cycle

How a typical day flows between CMOClaw and Splinter

๐ŸŒ… Morning โ€” CMOClaw Wakes Up

  1. Reviews overnight campaign performance from Splinter
  2. Analyzes what worked, what didn't
  3. Updates learning patterns and knowledge base
  4. Generates new campaign ideas based on trends + data
  5. Researches competitors, market conditions, news

โ˜€๏ธ Midday โ€” Strategy & Build

  1. Creates new campaign briefs with AI
  2. Generates creative variants (copy, images, video)
  3. Runs compliance pre-checks
  4. Builds audience segments from Databricks insights
  5. Pushes approved campaigns to Splinter

๐ŸŒ† Afternoon โ€” Splinter Executes

  1. Receives new campaigns from CMOClaw
  2. Distributes across Meta, Google, TikTok, Email, Push, WhatsApp
  3. Manages budget pacing and bid optimization
  4. Handles real-time compliance monitoring
  5. Pauses underperformers, scales winners

๐ŸŒ™ Night โ€” The Learning Loop

  1. Splinter collects full day performance data
  2. Sends metrics back to CMOClaw's brain
  3. CMOClaw's learning engine processes results
  4. Updates campaign memory (Vector DB)
  5. Adjusts models and strategies for tomorrow
  6. Cycle repeats โ€” each day smarter than the last

๐Ÿ“ˆ Version Evolution

How CMOClaw evolves โ€” each version builds on lessons learned

v1.0 Jan 2026
Manual campaigns via OpenClaw
๐Ÿ’ก Learned: DALL-E โ‰  brand ads, use HTML/CSS
v2.0 Feb 2026
Template-based campaigns, 3 variants standard
๐Ÿ’ก Learned: Figma templates > from-scratch generation
v3.0 Feb 2026
Real AI integration, segmentation engine
๐Ÿ’ก Learned: RAG + proven campaigns = better content
v4.0 Feb 2026
Full platform with settings, campaigns portal
๐Ÿ”„ Learning: production data feedback loop
v5.0 Coming
Splinter deployed, autonomous optimization
๐ŸŽฏ Goal: 100 campaigns/day, self-improving

๐Ÿ—๏ธ Architecture: What Lives Where

Click to explore each side of the architecture

๐Ÿง  CMOClaw Side
OpenClaw Workspace

๐Ÿ“ Skill files (17 eToro marketing skills)
๐Ÿง  Campaign memory (MEMORY.md + Vector DB)
๐Ÿค– AI models (OpenAI GPT-4, compliance AI)
๐Ÿ” Research tools (web search, competitors)
๐ŸŽจ Creative generation (Figma API, image gen)
๐Ÿ“Š Strategy engine (content library, psychology)
๐Ÿ’ฌ Team communication (WhatsApp, groups)
THE BRIDGE
REST API
Scheduled Jobs
Shared Vector DB

๐Ÿฅท Splinter Side
eToro Production

๐Ÿ–ฅ๏ธ NestJS server (107 files, 18 modules)
๐Ÿ“ก Channel adapters (Meta, Google, TikTok, X+)
๐Ÿ’พ Databricks connection (real user data)
๐Ÿ“ง Salesforce MC + Braze (email, push)
๐Ÿ’ฌ WhatsApp Business API
๐ŸŽฏ Campaign orchestrator
๐Ÿ“ˆ Performance tracking & attribution
โš–๏ธ Compliance approval workflow
๐Ÿ’ฐ Budget management

๐Ÿ’ก Why This Architecture?

๐Ÿ”€ Separation of Concerns

R&D doesn't touch production. Production doesn't do experimentation. Clean boundaries, no accidents.

๐Ÿงฌ Always Evolving

CMOClaw can update its brain without touching live campaigns. Evolution without risk.

๐Ÿ›ก๏ธ Safe Execution

Splinter has compliance guardrails and human approval gates. Nothing goes live unchecked.

๐Ÿ”„ Continuous Learning

Every campaign makes both systems smarter. Compound intelligence, compounding results.

๐Ÿ“ Scale

CMOClaw can design 1,000 campaigns. Splinter decides which 100 to run. Quality at quantity.

๐Ÿ”๏ธ Resilience

If CMOClaw goes down, Splinter keeps running existing campaigns. If Splinter pauses, CMOClaw keeps learning.

"One mind thinks. The other acts. Together, they create a marketing engine that gets smarter every single day โ€” at machine speed, with human oversight."
โ€” CMOClaw Architecture Vision