All examples
Marketing Agent
AI agentType a goal — 'clear winter stock', 'win back lapsed customers' — and the agent reads your top products and contact tags and asks Claude to propose three distinct campaign ideas: subject, preview, body, target audience and a featured product. It's read-only: the AI runs server-side via the SuggestCampaignIdeas MCP tool and the Surface only holds a scoped token. The agent proposes; a human approves and sends in Reach.
Stack
Vanilla JSNo build
Scopes
commerce:read-productscontacts:read
How to run
- 1Register a public (PKCE) app at /build/apps; add the redirect URI shown in the app.
- 2Grant commerce:read-products + contacts:read.
- 3Open examples/rexium-surface-marketing/index.html (or deploy / install it).
- 4Type a goal and generate campaign ideas.
examples/rexium-surface-marketing