Smart Brevity AIdocs
Tools

edit_guidance

View as Markdown

Nothing it saves shapes guidance or reviews until a person opens the returned review_url and chooses Review & publish. Editors, admins and owners can call it. Members get an authorization error.

Inputs

FieldLimitUse
kindenumRequired. brand_guide or skill
slug64 charsRequired. Kebab-case. Must be brand-guide for a Brand guide. Can't reuse a built-in Skill's name
markdown50,000 charsThe document body. Required unless you're sending decision_candidate
lensenumSkills only. Pairs a built-in Skill, the Editor setting on the Skills page. Omit it to keep an existing draft's pairing
organization_idOptional. Can repeat the connection's workspace, can't switch it

The title comes from the slug. Set a Skill's audience, channel, goal, format, tone and avoid rules on the Skills page.

Markdown it accepts

Allowed: paragraphs, H2 and H3 headings, lists, blockquotes, inline links, emphasis and code.

Rejected, with a message naming the construct: H1 or H4+ headings, tables, images, horizontal rules, strikethrough, footnotes, task lists, reference-style links and raw HTML.

What comes back

{
  "org_id": "…",
  "saved": {
    "slug": "exec-update",
    "kind": "skill",
    "status": "draft",
    "revision": 3,
    "document_id": "…"
  },
  "review_url": "https://app.smartbrevity.com/style-guide/<document_id>",
  "next_tool": "…"
}

Give the user the review_url. Calling again with the same slug updates that draft and bumps revision. A new slug creates a new document.

Write a useful Skill

  1. Name the document type in the slug: exec-update, customer-incident-notice.
  2. State the rules an editor would give a new hire: what leads, what never appears, how long.
  3. Pair a lens only when the type always benefits from it.
  4. After publishing, an owner or admin adds before/after examples linked to the Skill on the References page. Guidance with that skill_slug and include_examples: true returns them.

Save review rules

To convert a guide into review rules, read the source with browse_guidance, then save the result here.

FieldUse
decision_candidate{ "version": 1, "binding", "draft" }. Copy binding from the candidate_binding that browse_guidance returned. draft holds the proposals
document_idThe source Draft
expected_revisionThe exact revision you read
kind, slugThe source Draft's existing values

Send this on its own, without markdown or lens.

The result adds rule_proposals: rules, unresolved, calibration (not_validated) and active (false). The source and its proposals publish together through Review & publish. After that, applicable approved rules can run in quick reviews. They stay unvalidated, and each review reports the rules it covered.

Errors

ConditionResult
The caller is a memberAuthorization error
kind: "brand_guide" with any other slugRejected
lens on a Brand guideRejected
A slug that matches a built-in SkillRejected
Disallowed MarkdownError naming the construct
decision_candidate sent with markdown or lens, or without document_id and expected_revisionRejected
The connection is bound to the wrong workspaceThe draft lands there. Reconnect and pick the right one

On this page