Campaigns and flows
Create, copy, and archive campaigns and flows, then turn a flow on or off. Turning one on is a deliberate step you confirm, because it changes who gets emails.
sf comms flows activate --liveYou tell an AI assistant what you want on your store, like “add a fall sale banner to the homepage.” It makes the change in your UltraCart StoreFront, shows you a private preview, and you decide what goes live.
The “CLI” is just a text-based tool your assistant runs for you. You do not need to learn it. Paste the prompt below into your AI assistant and it can set everything up for you.
Public on npm as@ultracart/storefront-cli
uc-storefront# 1. Install the CLI (Node.js 24+) npm install -g @ultracart/storefront-cli@beta uc-storefront --version # 2. Create a workspace and install the skill uc-storefront init my-storefront cd my-storefront # 3. Connect your merchant (you sign in, in your browser) uc-storefront profile create my-store uc-storefront auth login --profile my-store uc-storefront profile bind my-store uc-storefront sf storefronts
Don’t skip step 2. uc-storefront init installs the skill, the UltraCart playbook your agent reads before every change. Without it, agents guess.
Read https://www.ultracart.com/theme/assets/storefront-agent-toolchain.txt?via=prompt. The UltraCart StoreFront CLI is in public beta. Follow the brief to install it and set it up for me, and ask before you install anything or sign in.
Hosted agents have no keychain. Save a key in your platform’s secret store as ULTRACART_STOREFRONT_CREDENTIAL_KEY, never in the chat, and your agent takes it from there. Steps are documented for Grok Bot Team Bots, Hermes Agent, Fly.io, and Docker. Grok Bot Personal Bots are still being tested, and Muse can’t pass saved secrets to commands yet. See the steps.
Your ~/.npmrc may map @ultracart to a different registry. Add --@ultracart:registry=https://registry.npmjs.org/ to the install command.
beta_access_required?Every active UltraCart merchant account can use the beta, so this usually means the account isn’t active, or you signed in to a different account than you meant to. Check it with uc-storefront auth status, then contact UltraCart support. Local authoring and validation still work.
The toolchain handles the plumbing. The look comes from your theme and what you hand the agent.
Using the attached lookbook mock, build a /fall landing page on my test theme: a promo bar, a hero with the lookbook CTA, and a four-item outerwear grid with prices, ratings, and add-to-cart. Reserve IDs, validate, render it for my review, and stop before pushing.
Rebuild my item page container with flex structures so it reads like a modern product page. Keep every functional node: item form, gallery, variations, quantity, add-to-cart, express checkout, reviews. Show me the before and after functional node count before you write anything.
Rework the site header: logo left, a department mega menu with the top three categories per department, cart and account on the right. Collapse to a drawer on mobile. Render it against /shop and wait for my approval before taking anything live.
Attached are three screenshots of our current pages. Extract the fonts, colors, and spacing, then restyle the /about page containers to match. Do not touch checkout. Validate and render each container before pushing.
Pick an example and watch each prompt travel from your agent, through UltraCart, onto a live storefront page. Account pages, checkout, product pages, and your homepage all use the same guarded loop, so every change is checked before it lands.
The agent adds a sticky sidebar, a loyalty stat strip, and photo order rows to the My Account overview, restyles it in the store's serif, and each change is validated and saved through UltraCart before the page updates.
The agent splits the checkout into two columns with a sticky order summary, adds express wallets, shows the store pickup state, and runs nine checkout states, keeping every checkout element and ID, with each change validated and saved through UltraCart.
The agent upgrades the item page: a v2 image gallery with a thumbnail rail, the jacket's product video in that item's own media slot, a star summary that jumps to reviews, and a reviews section with a rating breakdown, photo reviews, and a write-a-review button, keeping all 81 functional nodes and the buy path intact.
The agent builds a homepage hero experiment from the A/B recipe, previews the subscription variation without counting a session, starts the test, refuses to act while the assessment is still collecting, and ends it with the winning variation once the result is ready.
Put points, store credit, and recent orders where returning customers see them first. Your agent restyles all eleven account containers to match your store, and the login form stays exactly as it is.
Give the My Account area a sticky sidebar linking Orders, Subscriptions, Profile, Rewards, and Reviews. Add a stat strip to the overview with loyalty points, store credit, and member-since date. Match the storefront's type and colors. Work on a non-active theme and show me a render of the overview before pushing.
UltraCart's checkout is optimized out of the box. When your customers need something specific, like store pickup up front, the wallets they actually use, or an order summary that stays in view, your agent tailors it to fit. Every checkout element and ID stays in place, and it tests nine checkout states before it calls the change done.
Restructure the single-page checkout into two columns: a sticky order summary on the right, with contact, delivery, shipping, and payment stacked on the left. Keep every checkout element and its ID. Exercise pickup, billing-different, each payment method, and a 390px viewport before you report back. Show me a preview and do not take it live.
Show shoppers the product in motion and what other buyers think of it. Your agent adds a richer gallery, a product video, star ratings, and photo reviews to your item page, and every existing element and the Add to cart button keep working. The video lives in that item's own slot, so it shows only where it belongs.
Upgrade our item page: switch to the v2 image gallery with a thumbnail rail, add a star summary under the title that jumps to the reviews, and build a reviews section with a rating breakdown, photo reviews, and a write-a-review form. Add our field jacket video to that item's media slot only. Count functional nodes before and after, keep the buy band inside the item form, and render the jacket page for my review before pushing.
Find out which homepage sells more before you commit to it. Your agent builds the variations, previews each one without skewing the numbers, starts the test on live traffic, and names a winner only when the results are in, measured in revenue per session.
Set up a homepage experiment: keep today's hero as the control and add a subscription-led variation. Objective: revenue per session, fixed 50/50 split. Build it from the experiment-ab recipe, validate, show me each variation with sf preview, then start it. Check the assessment weekly and only end it with a winner when it reports ready.
Your agent can build and edit the campaigns and flows that run in UltraCart’s built-in email platform, under the same guardrails it uses on your storefront.
Create, copy, and archive campaigns and flows, then turn a flow on or off. Turning one on is a deliberate step you confirm, because it changes who gets emails.
sf comms flows activate --liveAdd email, wait, and postcard steps, move or remove one, and draw the whole flow as a chart for you to review.
sf comms sequences add-email · get --mermaidSave a customer segment from a rule, then point a campaign or flow at it. Changing a rule that a live campaign uses needs your approval.
sf comms segments createChange subject lines and preview text, see an email as a mail client shows it, and request a content review. Nothing is sent.
sf comms emails render --pngSee a postcard as it will print, front and back, from the print vendor’s proof. Nothing is mailed.
sf comms postcards proofBegin an email from an item in your code library, with its subject, preview text, and images carried over.
sf comms library emailsSending a campaign, and starting one, stay with you in the UltraCart admin.
When a change is destructive or touches live customers, your agent has to stop and ask. You approve it in UltraCart with your authenticator. There is no API for approving, so an agent can’t approve for you.
The CLI requests approval for that exact change, such as removing a step from a live flow.
Both appear in the terminal. Check that the code matches the one in your admin.
Open the link in UltraCart and approve with your authenticator, or decline.
It sends the approval along with the same change. The server checks it and spends it once.
sf approvals list · wait When a command needs a secret, your agent asks you to enter it in the UltraCart admin and gets back a handle. It never sees the value, only a fingerprint to confirm it arrived.
sf secrets request · wait Your agent can read what is happening on your store, then act on it, without leaving the terminal.
Your agent writes SQL against your own BigQuery warehouse, with your own credentials. Each query is dry-run first and held under a cost ceiling, and an audit log records the SQL, never the rows.
warehouse query --max-bytes 20GiBRead a visitor’s session, spot rage clicks and script errors, and replay chosen page views on your machine.
sf recordings show · renderStart an A/B test on a page or between pages, watch the numbers, and read an assessment of whether to act.
sf experiments start-page · getRead the server’s render logs to find a broken template, and render order pages against test orders. Real customer orders are never listed.
sf logs list · sf orders test-ordersPages are the start. These are the other parts of your storefront your agent can read and change, each through a guarded command.
Every safeguard below runs on every change, whichever agent is driving. Open any card for the details.
Seven raw calls and three ways to go wrong become two guarded commands.
If a teammate saves first, the agent’s older edit is refused, then redone on top of theirs.
Your agent looks at the part it’s editing, not the whole page, so it’s faster, cheaper, and less likely to make things up.
Skipped: product grid, reviews, footer. Available if it asks.
It stops what would break your page, flags what might, and never throws away what it doesn’t recognize.
A block points to the wrong parent. That would break the page, so it’s fixed before anything saves.
parent_link_mismatchA slider inside a row hasn’t been proven on a live store yet. Your call.
placement_unconfirmedA note field it doesn’t know. Left exactly as it was.
x-merchant-noteSay it your way. Your agent already knows which building block you mean, from real builds.
Reserve, pull, plan, validate, render, push, wire. Click a step to see its output.
sf idsReserve real widget IDssf pullRead, save a baselineapply --planAuthor locally, atomicallyvalidateErrors block, warnings advisesf renderServer-render one nodesf pushGuarded write with If-Matchtemplate wireOnly for a new containerThe controls you’d want before letting an agent near your store, built in from the first command.
Your agent stages the change and sends you a private link to see it on your real storefront. Nothing is written until you approve.
sf preview open --sessionYour agent keeps a copy of everything it reads, UltraCart versions every save, and product content logs who changed what and when.
sf containers versions · revertYour active theme and store menus change only when you decide to take an update live, and only from an account with publish permission.
preview first · you go liveSign in through your UltraCart account with a device code, not a pasted API key. Credentials stay in your OS keychain, and one command revokes them.
auth login · auth logoutWritten for your agent, not for you. It tells an agent how to install the CLI, what to expect, and what to do if access is refused. Read the agent brief as plain text.
Not yet:
UltraCart StoreFront Agent Toolchain: agent brief
STATUS: PUBLIC BETA. INSTALLABLE NOW.
Last updated: 2026-11-20
CLI version on that date: 0.2.0-beta.9 (npm dist-tag: beta)
This brief is for AI agents, and for the people who ask them to look. If a user
asked you to install, set up, or try the UltraCart StoreFront Agent Toolchain,
this is what to do.
WHAT IT IS
The uc-storefront command line tool, a packaged catalog of StoreFront elements,
and a project agent skill. It lets an AI coding agent build and edit a
merchant's UltraCart StoreFront through guarded commands: real widget IDs,
validated writes, previews before anything goes live, and no overwritten work.
It is a CLI, a catalog, and a skill. It is not an MCP server.
WHERE IT STANDS
- The CLI is published on public npm as a beta: @ultracart/storefront-cli,
dist-tag "beta". No GitHub account or package token is needed.
- Every active UltraCart merchant account can use the beta. Nobody needs to
request access: install the CLI and connect the store.
- If the server answers "beta_access_required", UltraCart refused the CLI for
the account that signed in. That usually means the account is not active,
or the sign-in went to a different account than the user meant. Stop remote
work, tell the user, and follow IF ACCESS IS REFUSED. Do not retry, switch
credentials, use an API key, or pick another merchant profile to get around
it. Offline authoring and validation still work.
WHAT YOU NEED
- Node.js 24 or newer. Check with: node -v (if it is older, install Node 24
first, for example with nvm or Volta, then continue)
- npm.
- An UltraCart account. A developer account works for testing.
Start on a test storefront or a non-active theme, not a live store.
INSTALL (ask the user before you run these)
1. Install the CLI from public npm:
npm install -g @ultracart/storefront-cli@beta
If the user's npm config maps the @ultracart scope to another registry
(a line like @ultracart:registry=... in ~/.npmrc), npm will not find the
public package. Add this flag to the install command:
--@ultracart:registry=https://registry.npmjs.org/
2. Confirm the version: uc-storefront --version (expect 0.2.x)
3. Create a workspace and install the skill into it. An agent's shell cannot
answer prompts, so name your agent with --target and add --no-input:
uc-storefront init my-storefront --target claude --no-input
cd my-storefront
uc-storefront skills status
--target takes claude, codex, gemini, or hermes. Repeat the flag for more
than one, or use all.
- Claude Code: --target claude
- Codex: --target codex
- Google Antigravity (the CLI, IDE, or app): --target gemini. Antigravity
reads the .agents/skills folder that target installs into. Gemini CLI
uses the same target, and now serves Enterprise and API-key accounts
only.
- Hermes Agent: --target hermes. The skill goes into the Hermes home's
skills folder, shared by every workspace on that machine.
Use one workspace per merchant. Some agents load project skills only from
a trusted folder; if yours does not list build-ultracart-storefronts after
init, check its trust setting.
4. Connect a merchant. The person, not the agent, completes the sign-in in
their browser:
uc-storefront profile create my-store
uc-storefront auth login --profile my-store
uc-storefront profile bind my-store
uc-storefront sf storefronts
Plain auth login prints a URL and a code, then waits for the approval. If
you run it from a command tool that shows output only when the command
ends, use the two-step form in its place:
uc-storefront auth login --profile my-store --no-wait
uc-storefront auth login --profile my-store --continue --wait
The first prints the URL and code and returns at once: give both to the
person. The second waits up to 45 seconds. Exit 3 means still waiting, so
run it again until it exits 0. "sign_in_expired" means start again with a
new code. Never open the approval page or accept the terms yourself.
Confirm the merchant shown is the one the user means.
5. Then load the build-ultracart-storefronts skill and follow it. It points
at the right reference for each kind of change.
IF YOU ARE A HOSTED OR REMOTE AGENT (Grok Bot, Muse, Hermes Agent, a
container, CI, or any machine that is not the person's own desktop)
Before step 4, in the workspace, run: uc-storefront auth status
(Before step 4 it also says the workspace binding is missing or no profiles
exist, and exits 1. That is expected.) Read the "credential" lines:
- "credential store: macos-keychain", "windows-credential-manager" or
"linux-secret-service" with "(durable, available)": this machine has a
keychain. Do step 4 as written, whatever the credential key line says.
- "credential store: encrypted-file (durable, available)" and "credential
key: set": do step 4, but sign in as described under SIGN IN below.
- "credential key: absent": the key is not reaching your shell. Stop. Tell
the person which platform you are, and that the CLI needs a secret named
ULTRACART_STOREFRONT_CREDENTIAL_KEY that reaches your shell commands as an
environment variable. They create it on their own computer (macOS:
openssl rand -base64 32 | pbcopy) and paste it only into the platform's
secret form. On Grok Bot a saved secret reaches new commands right away,
with no new chat. On other platforms they restart the session, task or
container so the CLI sees it. If your platform has no way to
pass a saved secret to shell commands, say so: sign-in is not possible
there yet. Offline authoring and validation still work.
- "credential key: invalid": ask the person to replace it with a new key.
Never generate, ask for, accept, type or repeat the key. Never run
auth keygen, env, printenv, set, echo $VAR, or read env files or
/proc/*/environ. Never put the key in a command, a file or the chat. Never
open, copy or upload the credentials folder in the config directory.
Check the key only with: uc-storefront auth status
KEEP IT: set ULTRACART_STOREFRONT_CONFIG_DIR to a folder that survives
restarts (Grok Bot: under /workspace), the same in every session. If
installed packages do not survive updates or resets, install with an npm
--prefix under that persistent folder (Grok Bot: /workspace/.npm-global),
put its bin folder on PATH in every command, and repeat the install when
uc-storefront goes missing.
SIGN IN: in step 4, use the two-step form. Run auth login --profile my-store
--no-wait and send the URL and code it prints to the person. Then repeat
auth login --profile my-store --continue --wait until it exits 0 (3 means
still waiting). The person approves in their own browser. Never open the
approval page yourself. If your platform cannot relay the code, tell the
person, and stop. Then finish step 4 (profile bind).
CONFIRM: auth status shows "credential store: encrypted-file" and "local
grant: present". Then run sf storefronts. A later session should show the
same. You do not need to start a new one to check.
One sign-in per bot or container. Never copy the config folder: a renewal
by one copy signs the other out. A second bot gets its own folder, key and
sign-in. If a key or token ever appears in a chat, command or file, it is
leaked: the person creates a new key, replaces the secret, revokes the CLI's
authorized application in UltraCart, and you sign in again.
A NEW ADDRESS (every agent, on a desktop or hosted)
A sign-in works only from the IPv4 addresses its person approved. The first
is the address it signed in from. If a command stops with
"location_approval_required", run: uc-storefront auth approve-location
Give the person the link and code it prints, and tell them UltraCart also
emailed them about it. Never approve it yourself. If they did not expect the
request, stop. An address that keeps changing is asked again each time, so
run from a stable address. Details:
https://docs.ultracart.com/developer/storefront/agent-toolchain/approved-addresses
HOW IT KEEPS A STORE SAFE
- Every write is validated, and pushes are guarded so they cannot overwrite
newer work. Every change can be previewed and adjusted before the
merchant takes it live. Some item, menu, and site changes affect shared live
data right away, even on an inactive theme, so start on a test storefront.
- Destructive changes and changes that touch live customers need the
merchant's approval in the UltraCart admin, with their authenticator.
An agent cannot approve for itself.
- When a command needs a secret, the user enters it in the UltraCart admin.
Never ask for or accept a password, API key, token, or card number in chat.
IF ACCESS IS REFUSED (beta_access_required)
Every active UltraCart merchant account can use the beta, so this refusal is
an exception. It is not a step where access is requested.
1. Stop remote work and tell the user. It usually means the account is not
active, or the profile is signed in to a different account than they
meant. Check which account it is with: uc-storefront auth status
2. If it is the right account, point them to UltraCart support, and give
them their Merchant ID (MID) to include if they have one. If they are not
an UltraCart merchant yet, they can say so when they contact support.
https://www.ultracart.com/help/support#help-form
3. Never ask for or accept a password, API key, token, or card number, and
do not fill in or submit a form for them.
WHILE THEY WAIT, AND FOR REFERENCE
The StoreFront CLI documentation covers setup, agents, capabilities and
safety:
https://docs.ultracart.com/cli
The UltraCart documentation covers StoreFronts and Themes:
https://docs.ultracart.com
An index written for agents is at:
https://docs.ultracart.com/llms.txt
WHAT THE BETA COVERS
- Storefront pages, containers, checkout and My Account, with previews before
anything goes live.
- Item content and prices, menus, theme colors and fonts, files and assets,
redirects, upsells, blog posts, languages, and experiments.
- Campaigns, flows, segments, emails and postcards in the built-in email
platform. Emails and postcard proofs can be previewed without sending or
mailing anything.
- Reading screen recordings, server render logs, and the merchant's own
BigQuery warehouse.
- Human approval, in the UltraCart admin, for destructive changes and changes
that touch live customers. An agent cannot approve for itself.
Details are on the page:
https://www.ultracart.com/resources/storefront-agent-toolchain “I feel like I finally have control over my own site. As a small business owner, it’s like having a development and marketing team right next to me.”
For the past week, I’ve been testing an Hermes agent built by Scale Lean to work with UltraCart’s new toolkit, which lets AI make changes directly on your website. Honestly, the results have been incredible. I’m now able to make 95% of the changes on my site on my own, without hiring developers or spending hundreds of hours trying to figure it out.
In a couple of days, I got done what would have taken a team of developers weeks. I redesigned my front page, rebuilt my email flows, and made more improvements than I can even list. A few that really stood out:
I’ve always wanted upsells for my products, but there’s so much strategy behind them that it felt overwhelming and I never knew where to start. I gave the agent my ideas, and it came back with half a dozen upsells, built them, and tested them. They’re live now and they look amazing. The reasoning behind them is fantastic.
It also found problems I didn’t even know I had, like broken links and product pages that weren’t connected the way they should be, and fixed them on its own. And my email creation time went from one to two hours per email down to 15 minutes. What it creates is better than anything I could have done myself.
Working with it, I feel like I finally have control over my own site. As a small business owner, it’s like having a development and marketing team right next to me. If you’re on UltraCart and feel limited by what you can do on your own, you need to try this.
Yes. The CLI is in public beta on npm: npm install -g @ultracart/storefront-cli@beta, with Node.js 24 or newer. Existing UltraCart merchants can connect it to their store after installing.
Yes. npm install gives your agent the uc-storefront tool, but not the knowledge of how UltraCart storefronts work. uc-storefront init installs the skill, the playbook your agent reads before every change. Without it, agents tend to guess. With it, they follow the guarded steps.
Node.js 24 or newer and npm. If your ~/.npmrc maps @ultracart to a different registry, add --@ultracart:registry=https://registry.npmjs.org/ to the install command.
Every active UltraCart merchant account can use the beta, so this usually means the account is not active, or you signed in to a different account than you meant to. Stop there, check the account with uc-storefront auth status, and contact UltraCart support. Installing, local authoring, and validation still work in the meantime.
No. It is a CLI, a catalog, and a skill. Your agent runs commands and reads JSON.
Any agent that can run a shell. The skill installs natively for Claude Code, Codex, Google Antigravity, and Cursor; other agents read it from the workspace.
It is built so that is hard to do. Your agent previews every change so you can review it and adjust it before you take it live. Saves are checked so they can’t overwrite a teammate’s newer work, and risky changes, such as deleting content or editing a live flow, need your approval in the UltraCart admin. For extra room to experiment, start on a test storefront or a non-active theme.
No. It uses the OAuth 2.0 device flow with scoped read, write, and publish access. Tokens live in your OS keychain, or in an encrypted file for containers and hosted agents.
Hosted agents have no keychain, so you create a key on your own computer and save it in the platform’s secret store as ULTRACART_STOREFRONT_CREDENTIAL_KEY, never in the chat. The CLI then keeps your sign-in in an encrypted file, and you approve the sign-in in your own browser. Grok Bot Team Bots, Hermes Agent, Fly.io, and Docker have documented steps, and Grok Bot Personal Bots are still being tested. Muse isn’t supported yet: it has no documented way to pass a saved secret to the agent’s commands. Offline authoring and validation still work there.
Yes. It can list, create, copy, and configure pages, then build their containers. A new page is live as soon as it exists, so start on a test storefront.
Yes. Both are theme containers, so they go through the same pull, validate, render, push loop. The checkout pattern keeps every checkout element and ID in place and lists the states to test before a change counts as done.
It can build and edit campaigns and flows, change email subject lines, and show you an email or postcard proof without sending or mailing anything. Sending a campaign, and starting one, stay with you in the UltraCart admin.
Yes, through your own BigQuery warehouse. Every query is dry-run first and held under a cost ceiling, and it runs with your own credentials.
You do. Destructive changes and changes that touch live customers need your approval in the UltraCart admin, with your authenticator. An agent can’t approve for itself.
The toolchain is free. You pay only for your own AI agent. It needs an UltraCart account, and a developer account works for testing.
A packaged catalog of more than 550 elements, with field notes for more than 500 of them and pattern cards for whole pages, each earned on a live storefront.
It is a public beta, so we are still improving it release by release. Start on a test storefront, preview your changes, and take them live when you are happy with them.
A free UltraCart Developer Account gives you a safe sandbox storefront, exactly the test store this toolchain asks for. Its StoreFronts stay locked until you push them to a paid account.