---
title: "Help center"
label: "Help center"
description: "Build the board's help center: a home page of categories, category pages, article pages with structured data, and old-slug redirects."
publishedAt: 2026-11-23
updatedAt: 2026-11-23
order: 13
status: "published"
---

Build 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](/docs/team/help-center)) or through the Operator API. Your frontend only reads the published ones. Method signatures are in the [help reference](/docs/sdk/reference/help).

## Prerequisites

- A shared `board` client from [Install as package](/docs/sdk/installing/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.

```ts
// src/data/help-home.ts
import { board } from '../lib/board';

export async function loadHelpHome() {
  const [categories, articles] = await Promise.all([
    board.help.categories.list({ limit: 100 }),
    board.help.articles.list({ limit: 100 }),
  ]);

  return {
    groups: categories.data.map((category) => ({
      category,
      articles: articles.data.filter(
        (article) => article.category.id === category.id,
      ),
    })),
    // More articles exist than this page holds: link each category to its page.
    hasMoreArticles: articles.hasMore,
  };
}
```

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

```ts
// src/data/help-category.ts
import { isNotFound } from '@cavuno/board';

import { board } from '../lib/board';

export async function loadHelpCategory(helpCategorySlug: string) {
  try {
    const [category, articles] = await Promise.all([
      board.help.categories.retrieve(helpCategorySlug),
      board.help.articles.list({ categorySlug: helpCategorySlug }),
    ]);
    return {
      category,
      articles: articles.data,
      // Pass back as `cursor`, with the same `categorySlug`, for the next page.
      nextCursor: articles.nextCursor,
    };
  } catch (error) {
    if (isNotFound(error)) return null; // Render your 404.
    throw error;
  }
}
```

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

```ts
// src/data/help-article.ts
import { isNotFound } from '@cavuno/board';
import { helpArticlePath } from '@cavuno/board/paths';

import { board } from '../lib/board';

export async function loadHelpArticle(helpArticleSlug: string) {
  try {
    const article = await board.help.articles.retrieve(helpArticleSlug);
    if (article.redirected && article.newSlug) {
      return { redirectTo: helpArticlePath(article.newSlug) };
    }
    return { article };
  } catch (error) {
    if (isNotFound(error)) return null; // Render your 404.
    throw error;
  }
}
```

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

```ts
// src/seo/help-article.ts
import type { PublicHelpArticle } from '@cavuno/board';
import {
  BOARD_PATHS,
  helpArticlePath,
  helpCategoryPath,
} from '@cavuno/board/paths';
import {
  createBreadcrumbJsonLd,
  createHelpArticleJsonLd,
} from '@cavuno/board/seo';

export function helpArticleJsonLd(
  article: PublicHelpArticle,
  boardName: string,
  origin: string,
) {
  return [
    createHelpArticleJsonLd({
      article,
      boardName,
      permalink: `${origin}${helpArticlePath(article.slug)}`,
    }),
    createBreadcrumbJsonLd(
      [
        { label: 'Help', href: BOARD_PATHS.help },
        {
          label: article.category.title,
          href: helpCategoryPath(article.category.slug),
        },
        { label: article.title, href: helpArticlePath(article.slug) },
      ],
      { origin },
    ),
  ];
}
```

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](/docs/sdk/frontend-infrastructure/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](/docs/api).

## 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 `Article` and `BreadcrumbList` structured data.
- An old article slug redirects permanently to the current slug.
- The header or footer link appears only when `features.helpCenter` is `true`.
- A draft article is absent from the lists and is not found by slug.

Continue with [Frontend infrastructure](/docs/sdk/frontend-infrastructure) to make these routes canonical and indexable.
