
Courier journeys are now code. The Journeys API is the source of truth, and the SDKs, the Courier CLI, and Courier Skills for your coding agent (Claude Code, Cursor, Codex, and others) all sit on top of it. You'll probably reach for the agent: describe the flow in plain English, check the plan, ship it. The same JSON ships through any of them.
Building a Courier journey has never been the hard part. The visual designer lets PMs, marketing ops, or engineers stand one up without filing a ticket.
The problem shows up later.
A journey gets built once, then ossifies. The day-5 nudge written before the product had an activation event still fires for the user who activated on day two. The re-engagement email still links to a pricing page that moved. The branch condition still keys off a property that got renamed two quarters ago.
It's not that nobody noticed. It's that editing the journey (clicking through the visual editor or hand-rolling JSON in the browser) is annoying enough that the fix slides to next sprint, then the sprint after, then off the board entirely. "Set it and forget it" isn't a strategy. It's what happens when iteration is expensive.
Journeys-as-code makes iteration cheap. Same flow, same JSON, but now it lives next to the rest of your customer-engagement infrastructure: in source control, in PRs, in CI, and, most importantly, reachable from anything that can hit an API.
For a category-level view of where this fits (orchestration platforms, lifecycle tools, CDP-bundled journey builders), see the customer journey orchestration tools guide.
The Journeys API is the change. Every journey, and every trigger, send, delay, branch, fetch, and AI step in it, has a JSON representation, and there's now a public surface to create, update, publish, and invoke them programmatically. The visual editor still works; it's no longer the only door.
Around the API sit a few access points:
POST /journeys to create, PUT /journeys/{id} for updates, POST /journeys/{id}/publish to ship. Standard CRUD. Drop-in for any backend.The API is the foundation, but writing journey JSON by hand isn't where you want to spend your afternoon. Even with an SDK, you're still mapping a user story ("send a renewal email seven days out, branch on whether they've upgraded, fall back to SMS") onto node types, condition trees, and template ids.
A coding agent collapses that translation step. You describe the flow the way you'd describe it in a Notion doc; the agent emits the JSON and calls the API.
Courier Skills teaches your coding agent how Courier journeys actually work, so it builds against the real API instead of guessing. Ask it for a flow and it:
It's an agent skill rather than a one-harness plugin, so the same files work in any agent that reads skills.
Turn a Notion paragraph into a real flow, iterate on re-engagement and renewal sequences without filing a ticket, or get a fixture on disk you can drop into source control or a smoke test. Same skill, three workflows, no role-specific tooling.
If you want the agent skill route:
npm install -g @trycourier/clinpx skills add trycourier/courier-skills. In Claude Code you can install it as a plugin instead. The Courier Skills docs cover every harness.export COURIER_API_KEY="..."Want the agent to work in your workspace directly? Connect the Courier MCP server too.
If you want to skip the agent and go straight at the API, head to the Journeys API reference. The shape your agent is generating is the same shape you'd POST by hand.
A renewal-alert flow with a personalized branch:
api-invokefetch the user's subscription recordai step that summarizes recent usagebranch on data.renewal_in_days:
Described to the agent in a couple of sentences, it came back with this plan (truncated):
┌────────────────────────┐
│ trigger api-invoke │
└────────────┬───────────┘
▼
┌────────────────────────┐
│ fetch subscription │
└────────────┬───────────┘
▼
┌────────────────────────┐
│ ai (usage summary) │
└────────────┬───────────┘
▼
┌────────────────────────┐
│ branch renewal_in_days │
└──┬───────────────────┬──┘
WITHIN 7 │ DEFAULT │
▼ ▼
(renewal email, (exit)
delay 2d,
status check,
SMS if not renewed)After yes, the agent makes the calls: POST the shell, POST each journey-scoped template, PUT the full body, publish the templates, then publish the journey. State: PUBLISHED.
The agent is trading typing for talking.
Publishing a journey doesn't publish its templates. Publish each journey-scoped template first, then the journey. A send whose template was never published fails at delivery even though the run looks fine. See building journeys.
AI nodes need a model, a user_prompt, and an output_schema. Leave one out and the create fails: AI step needs a model, or output_schema: must be a valid JSONSchema object. A minimal one works fine:
{
type: "ai",
model: "gpt-5.4-mini",
user_prompt: "Summarize recent usage for {{data.user_name}} from the previous fetch.",
output_schema: {
type: "object",
properties: { summary: { type: "string" } },
required: ["summary"],
},
}The skill handles these and the other constraints: journey-scoped templates are single-channel, POST /journeys rejects send nodes with a 422 (so the flow has to be shell-first), and every branch has a default path.

Run lifecycle marketing from Claude Code, Cursor, or Codex
Connect your coding agent to Courier's CLI or MCP server, install Courier Skills, and keep a small folder of markdown context files. From there, one person with Claude Code, Cursor, or Codex covers the work that used to need a lifecycle marketer, an email designer, a marketing ops hire, and an engineer: planning campaigns, shipping templates, building journeys, auditing every notification, and debugging delivery without opening a dashboard.

Create a customer journey from AI coding agent
Use Courier's Journey API to create multistep customer engagement workflows from your coding agent of choice. Describe the kind of journey you'd like to create, answer a few questions, and publish to the platform.

Turn customer context into personalized messaging with AI
Build adaptive customer messaging with Courier Journeys. Use AI nodes to classify users, generate notification copy, enrich profiles, and route each workflow based on structured AI output.