Skip to content

docs(help): one section for agents that publish on their own - #2130

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:docs/help-agents-dedupe
Nov 5, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:docs/help-agents-dedupe

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The Agent Center Help article (help/chat/agents.md) had the section Let an agent publish on its own twice. #2001 rewrote the section for new pages published live, but its diff also kept the older #1983 text (CMS drafts only) as a second copy. Chat answers from one section at a time, so it could answer from the older section, which leaves out live publishing. This PR merges the two sections into one and fixes one sentence that today's merges made wrong. Help only: no code changes.

The merged section keeps every fact from both sections. Each one was checked against the code on main:

  • Agents can publish new pages on Webflow, WordPress and Wix, and send drafts to your CMS, without a click. This matches the box's own text (chatAgents.form.goLive.covers).
  • It takes two switches: Agents that publish on their own in Settings › Chat, and Publish and send on its own on the agent's Mode & approvals step, with Full auto picked (agent-go-live-permission.ts, goLiveBlock in agent-go-live-box.tsx).
  • Managers see the agent's switch read-only, with Ask your Admin.
  • At most a day counts sends and publishes in a rolling 24 hours, from 1 to 20 (GO_LIVE_LIMIT_MIN/MAX).
  • The reasons a page still waits for a click, as the card shows them (chatEngine.held.*).
  • Changing what the agent does turns it off until an Admin allows it again. The permission belongs to one agent version.

It also adds three facts that were in neither section:

  • It needs Growth and up. Giving the permission needs Full auto on the plan (modeDenial), and both switches say "Needs Growth" below it.
  • The limit is 5 by default (GO_LIVE_LIMIT_DEFAULT).
  • "Where your workspace has it": both switches are hidden while the feature isn't on for the workspace. This is worded like the approved Set the rules Chat follows article, and it names no settings.

The section is 149 words, under the 150-word cap.

Fix in "On your own AI key": the section said every agent runs on the workspace's own key, so the provider bills it and the monthly AI limit doesn't move. Since #2032, a run uses the agent's own model (agent-driver.ts passes version.model). Since #2033, a picked model runs on its provider's key first, then the OpenRouter key, then Ansvisor's key on the AI limit (resolvePickedModelKey in web/src/lib/chat/key.ts, used by resolveChatModels). So an agent on Fast (Haiku) or Best writing (Sonnet) in a workspace whose own key is, say, OpenAI draws on the AI limit. The section now says agents on Auto run on the workspace's key, and gives the order for the other models. This matches Pick the model and effort Chat uses.

The rest of the article was checked against #2018 (Scheduled page), #2047 (schedule time zone) and #2086 (the "Notify me when an agent needs me" e-mail). None of them made anything in it wrong:

The article doesn't mention the Scheduled page or the new needs-you e-mail. Those are gaps, not errors, so they're left for another change.

approved: true stays: help/README.md doesn't say that an edit resets it. updated/last_checked are now 2026-11-04. sources gains web/src/lib/chat/go-live.ts and web/src/lib/chat/key.ts. web/src/lib/help/approved-articles.json was regenerated with yarn test -u src/lib/help.

Related issue

None. This cleans up a duplicate Help section left by #2001.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Run grep -c "^## Let an agent publish on its own" help/chat/agents.md. It prints 1.
  2. Read the section, and compare it with:
    • web/src/lib/chat/go-live.ts;
    • web/src/lib/chat/agent-go-live-permission.ts;
    • web/src/components/chat/agents/agent-go-live-box.tsx;
    • web/src/components/chat-access/go-live-section.tsx;
    • the chatAgents.form.goLive, chatAccess.settings.goLive and chatEngine.held strings in web/messages/en.json.
  3. Read On your own AI key, and compare it with:
    • resolveChatModels in web/src/lib/chat/engine-model.ts;
    • resolvePickedModelKey in web/src/lib/chat/key.ts;
    • FAST_MODEL/WRITING_MODEL in web/src/lib/chat/agent-form.ts.
  4. In web/, run yarn test src/lib/help. It passes, and the validator's word cap holds.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): not run; this PR changes no code
  • yarn typecheck passes (run from web/): not run; this PR changes no code
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR
  • Help article updated under help/ (or no user-visible change) — see help/README.md

Checked locally:

  • web yarn format:check passes;
  • yarn test src/lib/help passes (2 files, 12 tests);
  • the tests that read the approved articles pass: src/lib/chat/help-answer.test.ts, src/lib/report-card/help-lines.test.ts and src/lib/chat/engine.test.ts (3 files, 303 tests).

Generated by Claude Code

The Agent Center article had "Let an agent publish on its own" twice,
from two pull requests. Merge them into one section that keeps both
sections' facts: publishing new pages on Webflow, WordPress and Wix as
well as CMS drafts, the two switches with Full auto, the Manager's
read-only switch, At most a day (1 to 20, 5 by default), the reasons a
page still waits for a click, and the reset after a change. Add that it
needs Growth and up and only shows where the workspace has it.

"On your own AI key" said every agent runs on the workspace's own key.
Since agents run on their own model (ansvisor#2032) and a picked model runs on
its provider's key, then the OpenRouter key, then the AI limit (ansvisor#2033),
that holds for agents on Auto only: say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
gkhngyk previously approved these changes Nov 5, 2026

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

ansvisor#2049 merged the duplicate "Let an agent publish on its own" section on
main and added webhook sends. Keep this branch's section, which also has
the plan, the default limit and where the feature shows, and take the
webhook from main: "send pages to your CMS or webhook". One word trimmed
to stay within the 150-word cap. approved-articles.json regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gkhngyk
gkhngyk merged commit fc42e20 into ansvisor:main Nov 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants