Launch segmented multi-channel campaigns with Zen
Segment audiences (/v1/marketing/audiences), generate brand-voice copy with Zen (/v1/content/generate), and launch measured campaigns (/v1/campaign).
Turn product releases into segmented, brand-consistent multi-channel launches measured by real conversion.
Architecture & contract
Zen drafts copy into CMS drafts via POST /v1/content/generate; Kai checks brand-safety rubrics; /v1/marketing/audiences defines exact recipient segments; /v1/campaign coordinates delivery and live metrics with instant /pause.
Primary endpoint: POST /v1/campaign · Status: shipped · Level: practitioner
Run it across all four surfaces
CLI
SDK
HTTP
MCP
hanzo marketing audiences create --data '{"name":"pro-developers","filter":{"tier":"pro"}}'
hanzo campaign create --data '{"name":"q4-release","objective":"adoption"}'
hanzo campaign summaryTypeScript
Python
import { Configuration, MarketingApi, CampaignApi } from 'hanzoai';
const cfg = new Configuration({ accessToken: process.env.HANZO_API_KEY });
const [aud, camp] = await Promise.all([
new MarketingApi(cfg).postMarketingAudiences({ name: 'pro-developers', filter: { tier: 'pro' } }),
new CampaignApi(cfg).postCampaign({ name: 'q4-release', objective: 'adoption' }),
]);
console.log({ audience: aud.data, campaign: camp.data });import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import MarketingApi, CampaignApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
print(MarketingApi(client).post_marketing_audiences({"name": "pro-developers", "filter": {"tier": "pro"}}))
print(CampaignApi(client).post_campaign({"name": "q4-release", "objective": "adoption"}))curl -s -X POST https://api.hanzo.ai/v1/content/generate \
-H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"zen6","brief":"Write a concise technical launch note for CPU Kai capability training.","tone":"direct, evidence-first"}' | jq '.'
curl -s https://api.hanzo.ai/v1/campaign/summary \
-H "Authorization: Bearer $HANZO_API_KEY" | jq '.'curl -s -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "marketing",
"arguments": {"op": "get_marketing_audiences", "input": {}}
}
}'Verify the outcome
- Preview audience counts via
POST /v1/marketing/audiences/{id}/previewand send a test broadcast before launching live.
Production guardrails
- Keep campaign launches behind human approval and monitor bounce/unsubscribe metrics on
GET /v1/campaign/{id}/metrics.
Next steps & Hanzo University
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.PreviousPause high-risk autopilot runs for human approvalNextCoordinate role-scoped agents with A2A handoffs
Last updated Nov 25, 2026