Skip to content

AI CMS

The back office of a content site that uses AI, on the App Shell: a posts table with bulk publish, an editor with a writing assistant and an SEO panel, a media library with AI alt text and a revision history. Every AI call is a function you replace.

This page holds the props and the code. See the template, its screens and a live preview.

On this page
Used for
  • Blog or docs back office
  • AI writing assistant in an editor
  • Editorial workflow
  • Media library with alt text
  • SEO checklist before publishing

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

posts
Post[]
Defaulta fictional set
The posts of the table.
assets
MediaAsset[]
Defaultgenerated pictures
The media of the library and of the cover picker.
renderHistory
({ draft, postId }) => ReactNode
DefaultRevision history
Replaces the content of the History sheet.
layout
"page" | "fill"
Default"page"
page: the window scrolls and the sidebar and topbar stick. fill: the page fills its parent and the main column scrolls.
embedded
boolean
Defaultfalse
For a page shown inside another page: no second main or aside landmark.
labelPrefix
string
Prefixes the shell's landmark names so several previews on one page stay unique.
AI calls
demoAssist, demoSuggest, onGenerateAlt
Stand-ins at the top of the file that wait a moment and answer. Replace each with a request to your own endpoint.

What it handles

  1. 01Lays out a content site's back office on the App Shell: a sidebar with Posts and Media, a posts table, an editor page and a media page.
  2. 02Lists posts with status, author, tags and last edit, filters them with chips and publishes, schedules or archives the selected ones through one callback.
  3. 03Opens a post in an editor with a toolbar, a Markdown body, a side panel for cover, slug, description, tags and publish time, and an autosave indicator.
  4. 04Works on selected text with a writing assistant (rewrite, shorten, continue) that shows a diff, then Accept or Undo, and scores the post with an SEO panel that suggests fixes.
  5. 05Keeps the media in a library where AI writes alt text for each picture, and shows the saved versions of a post in a sheet, with Restore.
  6. 06Fetches nothing: every AI call and every save is a function at the top of the file that you replace with your own request.

States

First render
Nothing moves; the table and the editor paint as they are
none
Open a post
The editor replaces the table at once
none
Assistant answers
The diff card rises in with a short fade
180ms, ease out
History
The sheet slides in from the right
280ms, ease out
Reduced motion
Everything changes at once
0ms

Works with

When to use

When to use

  • The back office of a content site that uses AI: posts with bulk publish, an editor with a writing assistant and an SEO score, and a media library with AI alt text.
  • A starting point for a CMS where every AI call is your own endpoint.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI AI CMS to my app and wire it to my own data.
  • I need the back office of a content site that uses AI: posts with bulk publish, an editor with a writing assistant and an SEO score, and a media library with AI alt text. Set that up with the Knowns UI AI CMS.
  • Which AI CMS props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "template-ai-cms" }) and search_docs({ query: "ai cms" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on AI CMS, or found something off? We read every message.