Skip to content
Site Builder Documentation
Site Builder Documentation: pages

How it works

This page explains what Site Builder runs on your board, what reaches your visitors, and exactly what the AI model can see and do. Read it before you turn the assistant on, or when your privacy policy needs to describe it.

The editor

  • The editor on the board is a Vue 3 and TypeScript application, built into one JavaScript file. It loads only for administrators in manage mode. Visitors never download it.
  • The editor talks to your board through a GraphQL API. Every request needs the Site Builder manage permission and runs with the permissions of the administrator who sent it.
  • Every change is written to a draft, never to the live board. Each change is one undo step, up to 50 per position, and visitors see nothing until you press Publish. A new page starts as an inactive draft that visitors get "page not found" for.
  • One browser tab edits a position at a time, so two administrators cannot overwrite each other's work.

On the board

  • One layout per device. For each request the board decides whether the visitor is on a desktop, a tablet or a phone, from a small sb_device cookie that the board's script keeps current from the screen width. The first visit uses the browser's user agent. Only that device's layout is in the page, so a cell hidden on phones is not sent to phones at all. A board behind a CDN or a page cache must vary the cache on that cookie (Admin).
  • Native fallback. Every publish also writes your banners and widgets to XenForo's own advertisements and widgets. Deactivate the add-on and they stay on the board. What XenForo cannot express is left out: the grid layout and device visibility are dropped, a country rule no longer limits who sees the item, and Site Builder pages are not shown until the add-on is active again.
  • Scoped custom CSS. A position's custom CSS is parsed, not pasted. Every selector is rewritten to apply inside that position only. CSS that does not parse is refused and nothing is stored.
  • Template checks. Page templates, HTML widgets and HTML banners are compiled with XenForo's own template compiler before they are saved. Text that would not compile, or that names a function, filter or test your XenForo version does not have, is refused, and the draft keeps its previous text.
  • Banner statistics. Impressions are counted after the page is sent, and clicks go through a signed link on your board. No IP address or user is stored (Banner statistics).
  • Country rules. The visitor's country is looked up in a MaxMind GeoLite2 database on your own server, downloaded by a cron job with your MaxMind license key. No visitor IP address leaves your server.

How the assistant works

  • The assistant runs on your server, in PHP, with the official Anthropic PHP SDK. It calls the Messages API of the provider you set up: Anthropic, z.ai, OpenRouter or another Anthropic-compatible endpoint. Your server connects to the provider directly. Nothing passes through XenReact.
  • An answer runs on the server after your page has loaded, and the chat bar shows its steps as they happen. You can keep working, queue a correction, or press Stop at any time.
  • The model cannot run code, database queries or commands. It can only call Site Builder's tools. Each tool is a fixed request to the same API the editor uses, and the model fills in its values only: a banner title, a cell width, a page's text.
  • Every tool call passes the same permission checks as the editor, as the administrator who asked. If that administrator loses the Site Builder permission, a running answer stops at its next step.
  • Read only mode, the default, offers the model the reading tools only. Full mode adds the writing tools, and everything they change is still a draft.
  • Publishing, deleting, discarding a draft, reordering a position, display rules that go live at once and reverting a page template always stop at a Confirm card (Questions and confirmations). The server holds the action until you press Confirm, and runs it once.
  • The model also has a small scratch folder of its own on your server for notes and text files: up to 256 KB a file and 4 MB per administrator. It can write there only in Full mode, and it cannot reach any other folder.
  • An answer stops after 50 steps or 10 minutes by default. Both limits are options. Each administrator can have two answers running at a time.

What the AI provider receives

A conversation sends the following to your AI provider:

  • The assistant's instructions and the descriptions of its tools.
  • Your board's address, and the title and address of the page you are on.
  • The positions on that page and the device you are previewing.
  • What the tools read when the model asks: positions, cells, banners, widgets and their settings, display rules with user group names, pages, page templates, navigation and style names.
  • Widget previews. They are rendered as you see them, so a widget such as New posts can carry thread titles and member names.
  • The layout of a position, measured in your browser: the size and place of its elements, their CSS, and short pieces of their text. It is not a screenshot.
  • The names and sizes of files you attach. An attached image is not sent to the model: the model refers to it by its number when it places it in a banner.

The AI provider never receives:

  • Your database, your server's files or the add-on's code.
  • Security tokens and draft preview links. They are removed from every tool result before it is sent.
  • Member profiles, email addresses, IP addresses, passwords or direct messages. No tool reads them.
  • An image from the web, unless you typed its address in your own message.

What the provider does with the data is set by your account with that provider. Check its terms before you add your API key.

Your data and your keys

  • API keys are stored in your own XenForo database, as you enter them, and are never sent to the board's pages. The provider form shows only the first eight characters of a saved key. The full key is shown only when an administrator presses View on that form (The API key).
  • Conversations are stored in your database, so you can reopen one from any browser. A conversation with no activity for 90 days is archived; it keeps its messages and opens read-only. The number of days is an option, and 0 keeps every conversation active.
  • The tokens each answer used are recorded with it. Site Builder does not limit what you spend: set a spending limit in your provider account.
  • Only administrators with the Site Builder admin permission can use the assistant. Members and guests never see it.

The license check

The license check talks only to the XenReact portal, customers.xenreact.com.

  • When you save your license key, the board sends the key, the board's host and address, and a one-time value. The key is never stored on your board.
  • Later checks send the board's host, the add-on, XenForo and PHP versions, and the token the portal returned at activation.
  • Every reply is signed by the portal and checked on your board before it is used.