Help center
Build the board's help center: a home page of categories, category pages, article pages with structured data, and old-slug redirects.
A
JBuild the help center: a home page that lists the categories and their articles, a page per category, and a page per article with the body, a canonical URL and structured data. The last section covers the Operator API for writing and publishing articles.
Operators write articles in the dashboard under Help center (Write a help center) or through the Operator API. Your frontend only reads the published ones. Method signatures are in the help reference.
Prerequisites
- A shared
boardclient from Install as package. - A public origin for canonical URLs and structured data.
- No session is needed. Every help read works with the publishable key.
Routes
| Route | Path helper | Role | Calls |
|---|---|---|---|
| Help home | BOARD_PATHS.help (/help) | help | board.help.categories.list, board.help.articles.list |
| Category | helpCategoryPath(slug) (/help/categories/<slug>) | helpCategory | board.help.categories.retrieve, board.help.articles.list |
| Article | helpArticlePath(slug) (/help/articles/<slug>) | helpArticle | board.help.articles.retrieve |
The helpers come from @cavuno/board/paths. The three pages are roles in your board's route manifest, so you can rename or translate the paths and platform links still resolve. Name the two route parameters helpCategorySlug and helpArticleSlug, so the roles are recognised after a rename.
The dashboard shows Help center to the operator once your site publishes the helpArticle role. Until then, articles can still be written through the Operator API.
Show a help link in your header or footer only when board.context().features.helpCenter is true. It is true when the board has at least one published article, so the link never leads to an empty page and you need no extra request to decide.
Render the help home
Read one page of categories and one page of articles together. Both lists arrive in the operator's order, so group the articles by category.id without sorting.
A category has slug, title and description. An article summary has slug, title, summary, category, publishedAt and updatedAt. Summaries carry no html.
Both lists are cursor-paginated: 25 a page by default, up to 100 with limit. When hasMore is true, pass nextCursor back as cursor for the next page, or walk every page with paginate from @cavuno/board.
Only categories that hold a published article are returned. A board with nothing published returns two empty lists: render your 404, as you do for a disabled feature.
Render a category page
Render an article page
retrieve returns the article with its html body. Old slugs keep working: when redirected is true, send a permanent redirect to newSlug before you render.
html is sanitized by the API. Render it in your prose styles on the server, so the title and body are in the page HTML for search engines and AI assistants that do not run JavaScript. Use title for the page title and summary for the meta description.
Add structured data
createHelpArticleJsonLd builds an Article with the published and modified dates. Pair it with a breadcrumb from the help home through the category to the article.
When your board renames or translates the help paths, build these URLs with your own route helpers; the @cavuno/board/paths helpers return the default structure.
List help pages in the sitemap
The board's sitemap has a help bucket with a last-modified date per URL. It appears once your site publishes the helpArticle role and the board has a published article. It lists each article, plus the help home when your site publishes the help role and each category when it publishes the helpCategory role. The helpers in Sitemap generation pick it up with the other buckets.
Cache the reads
The four reads are public and can be cached like other public reads. An article changes only when the operator publishes, so a short cache is enough for an edit to appear within minutes.
Manage articles with the Operator API
The Operator API (https://api.cavuno.com/v1, API key) manages the help center for automations and AI agents. It works on every board, whether or not the site has help pages yet.
| Task | Operation | Permission |
|---|---|---|
| List or read categories | GET /help/categories, GET /help/categories/{id} | help.read |
| Add, change or delete a category | POST /help/categories, PATCH /help/categories/{id}, DELETE /help/categories/{id} | help.manage |
| List or read articles | GET /help/articles, GET /help/articles/{id} | help.read |
| Add, change or delete an article | POST /help/articles, PATCH /help/articles/{id}, DELETE /help/articles/{id} | help.manage |
| Publish or unpublish | POST /help/articles/{id}/publish, POST /help/articles/{id}/unpublish | help.manage |
| Drop unpublished edits | POST /help/articles/{id}/discard-changes | help.manage |
An article needs content to be published. Edits to a published article are held until the next publish, so the public reads keep returning the published text. Full schemas are in the API reference.
Verify the result
- The help home lists each category with its articles in the dashboard's order, and a board with nothing published renders your 404.
- A category page lists only that category's articles, and an unknown category slug renders your 404.
- An article page has the title and body in the server HTML, a canonical URL, and
ArticleandBreadcrumbListstructured data. - An old article slug redirects permanently to the current slug.
- The header or footer link appears only when
features.helpCenteristrue. - A draft article is absent from the lists and is not found by slug.
Continue with Frontend infrastructure to make these routes canonical and indexable.