Skip to content

docs(help): add the Ansvisor Help knowledge base and its first 56 articles - #1792

Merged
gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:docs/help-kb
Oct 29, 2026
Merged

gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:docs/help-kb

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Chat Wave 1, W1-29: Ansvisor Help, the knowledge base Chat will answer "how do I…" questions from (CHAT-19 §4). These are plain Markdown files in the repo. Nothing reads them yet; W1-30 adds the answering.

  • help/{area}/{slug}.md: 56 articles in 12 areas.
    • action-center 9, ai-traffic 5, citations 2, competitors 2, content 9, getting-started 2, mentions 5, prompts 10, reports 3, settings 3, site-audit 4, visibility 2.
    • Front matter on each: title, the area, the in-app route, the plan that unlocks it, sources (the docs/guides/*.mdx it was written from), owner, updated, last_checked, app_version.
    • Every article is approved: false. Only approved articles will answer, after the product owner checks each one against the app.
  • help/README.md: the format.
  • web/src/lib/help/articles.ts: front matter and section parser, with no new dependency.
  • web/src/lib/help/validate.test.ts checks:
    • front matter fields and types;
    • that each route is a real page (Settings sections via SETTINGS_SECTIONS) and each source file exists;
    • every section, the intro included, is at most 150 words;
    • no backticks, links, HTML, /dashboard paths or internal terms (supabase, sql, migration, api/…);
    • unique slugs and titles;
    • at least 40 articles.
  • The "Help article updated" rule:
    • CONTRIBUTING.md gets a step under Making Changes and a help/ line in the project structure.
    • The PR template gets a checkbox.

Written from the guides only, where guide and app agree. Some guides are behind the app:

  • citations.mdx: source types, a type filter that doesn't exist, no Competitor Gaps tab.
  • competitors.mdx: topic map, 7/30-day trend, Suggest competitors, deleting.
  • answer-engine-insights.mdx: Leaderboard, Why it changed, Coverage, Share of voice, Net sentiment.
  • topics.mdx: rename and merge, "Generate brief".
  • add-your-first-brand.mdx: timing, where Suggestions is now.
  • The content guides: no "Win recap"; "Rebuild outline" is now "Rebuild brief"; the side panel tabs changed.

A docs PR to update those guides follows, and the matching articles will be completed with it.

Related issue

None (Chat Wave 1, Drive › Chat › CHAT-19).

Type of change

  • docs — Documentation (plus a validator test)

How to test

  1. cd web && yarn vitest run src/lib/help/validate.test.ts (5 tests over 56 articles).
  2. Read a few articles under help/: plain English, short sections, no internal terms.

Checklist

  • Branch follows the naming convention
  • Commits follow Conventional Commits
  • Web: validator passes; eslint, prettier and typecheck clean for lib/help
  • Each article checked against the app before approved: true: product owner

🤖 Generated with Claude Code

…mat check

Chat Wave 1 W1-29 (CHAT-19 §4, task CHAT-19-2): the product knowledge
base in /help/{area}/{slug}.md, one article per page, feature, metric,
setting and main task of the live app. 56 articles in 12 areas
(getting started, visibility, prompts, mentions, citations, competitors,
content, site audit, Action Center, AI traffic, reports, settings),
written from docs/guides only, and named as the app labels things.

- Front matter: title, route (a page of the app, which Chat's page card
  opens), keywords, synonyms, the lowest plan, updated, last_checked,
  owner, app_version, approved and sources. Every article is
  `approved: false`: Chat answers only from approved ones.
- A short intro and sections of 150 words or fewer, so retrieval can
  answer from one. No plan limits or prices (Chat reads the plan facts),
  no code, links, HTML, addresses or internal details (CHAT-19 §3).
- help/README.md describes the format. web/src/lib/help/articles.ts reads
  an article (front matter and sections, no new dependency), and
  validate.test.ts checks every article: its fields, that its route is a
  page of the app (a Settings section by its name), that its sources
  exist, section lengths, nothing internal, unique slugs and titles, and
  forty articles or more.
- "Help article updated": CONTRIBUTING.md asks a change users can see to
  add or update its article in the same pull request, and the PR
  template gets the checkbox.

Where docs/guides and the app disagree (Citations' source types,
Competitors' comparison, Answer Engine Insights' cards, Topics' rename
and merge), the articles say only what both agree on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…unities and briefs, bulk import, Clear All, fan-out engines, KPIs and the pulse email

@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.

Looks good with 4eac9ee. I merged main in (CONTRIBUTING.md conflicted) and corrected the claims that the app contradicts in a way that would mislead a reader.

How Help is served

  • It isn't served yet. help/ is plain Markdown, and web/src/lib/help/articles.ts is a pure parser with no imports. Nothing in the app imports it; only the validator test does. So this PR adds no route, no auth surface and nothing to the bundle. Every article is approved: false.

What I changed

  • Merge with main: CONTRIBUTING.md conflicted with main's demo-brand paragraph (#1740). The merge keeps that paragraph under step 4, then this PR's new step 5 (Help article), 6 (push), 7 (description) and 8.
  • I checked all 56 articles against main and fixed these:
    • connect-a-cms / send-to-cms: Wix (#1722) was missing. Added how to connect it (Site id, API key, the two permissions, the Blog needing a post), Change API key, the dialog order Webflow, WordPress, Framer, Wix, and what a Wix send leaves out.
    • content-opportunities / content-briefs: Generate Brief, Send to Plan, Dismiss All, Done and the webhook settings are for admins and managers (assertRole(MANAGER_ROLES), canManage). A brief's outline has 3–8 sections and 3–10 keywords (the zod schema), not 5–8. There's no "listicle" type.
    • content-editor / content-library: Export has five formats (Word, Excel, CSV, HTML, Markdown). Only Send to CMS waits for open placeholders. Send to CMS is listed among the header buttons.
    • add-prompts:
      • Bulk import uploads a one-column Excel or CSV file; it isn't paste-one-per-line.
      • Over the limit, the prompts that fit are added, with a count of those that weren't.
      • The Single tab has no location picker.
    • prompt-suggestions: Clear All now dismisses every suggestion listed, after asking (#1793).
    • query-fan-outs: ChatGPT's searches can appear too (sampled, and the ChatGPT API).
    • citations: names the Brand / Competitors / Third-Party / All choice; Domains and URLs open on Brand.
    • add-your-first-brand: every plan has competitor tracking. Your own competitors are added at the top, with a name and an optional domain.
    • action-center-kpis: there's no "Lead over top competitor" KPI; the registry has six.
    • daily-pulse: Visibility slipping is listed in the email (pulse/email.js).

What I checked

  • Every plan: matches its gate (only AI bots is growth: Starter has maxBotEventsPerMonth: 0). Every route: is a real page.
  • Numbers I checked in the Action Center, Daily Pulse, AI traffic and Site Audit articles match their config.
  • No customer names or domains, hostnames or secrets.
  • CONTRIBUTING.md and the PR template: the checkbox link is absolute.

Follow-ups (not blocking; for the owner's check before approved: true)

  1. getting-started/add-your-first-brand.md has route: /dashboard/brands/new (add another brand), but it describes the first-brand wizard at /dashboard/onboarding. The validator only looks under (dashboard), so it can't accept the onboarding route yet.
  2. CI doesn't run web tests, so validate.test.ts only runs when someone runs yarn test locally. CONTRIBUTING says it "checks the format"; a CI step for it would make that true for contributors.
  3. #1797's body says the "+ New" section of content-opportunities.md is added here. It isn't yet; add it, with "a prompt asks for one".
  4. Smaller wording, to fix during review:
    • The Help articles: KPI templates leave out Content Performance. The Site Audit sidebar label is Audit. "AI task writing is on for your workspace" is an installation switch. Add Topic is for admins and managers. Prompt Insights is unlimited on Enterprise. Prompt detail's GSC match is "at least half". Copy HTML can leave placeholders out.
    • In #1795: once it's merged, re-check the articles written from the guides it corrects.

Tests (with main merged in):

  • validate.test.ts: 5 passed over 56 articles, including the edited ones.
  • plan-row.test.ts passed.
  • tsc --noEmit clean; eslint and prettier clean on lib/help.
  • No build check needed: no app code imports the new module.

@gkhngyk
gkhngyk merged commit 8184fc5 into ansvisor:main Oct 29, 2026
4 of 5 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.

2 participants