Documentation menu

Docs

Configuration, publishing and rollback

Your character's settings live in your dashboard, not in the script tag on your page. You edit a draft, you press Publish, and your site changes on the next page load — without anyone touching your HTML.

What wins: the dashboard or the tag

The published configuration is the source of truth for everything the dashboard can set: the character, her name, her persona, her greeting, the accent colour, the layout, the position, the language, the badge, your allowed websites and which AI model answers.

data- attributes survive for one job: overriding presentation on one page. Four of them do that, because those four are genuinely a property of the page rather than of the character:

AttributeOn a page with a published config
data-keyRequired, as always. It is how we know whose character this is.
data-modeOverrides the published mode on this page.
data-positionOverrides the published corner on this page.
data-layoutOverrides the published panel layout on this page.
data-langOverrides the published language on this page.
data-accentIgnored, with a warning in the console telling you where to set it. Set the accent on your character's Character page and press Publish.

The accent is the one attribute that lost its job, and deliberately. A colour that can differ from page to page means your character is a different brand on every page of your site, and it means any page carrying your key can dress her as somebody else. Everything a page legitimately needs to vary — where she sits, which shape she takes, what language her buttons are in — it can still vary.

A per-page override, which is still fine
<!-- Japanese landing page: her buttons in Japanese, bottom-left, on this page only -->
<script src="https://live2d.noiselimited.com/v1/nikoori.js"
  data-key="pk_live_your_key"
  data-lang="ja"
  data-position="bottom-left"
  async></script>
Nothing breaks on an existing site. If a character has never published a configuration, the script tag keeps deciding everything exactly as it did before, data-accent included. The rule above starts applying to that character the first time you press Publish.

Draft, preview, publish

  1. Edit a draft. Everything you change in Configuration is a draft. Visitors keep seeing the published version while you work — there is no half-saved state anyone can land on.
  2. A draft is private. It is served only through a signed link that expires after ten minutes and is honoured only inside your dashboard, so there is no way for a visitor to land on one.
  3. Publish. This writes a version — who published it, when, and what changed, in plain English (“Layout: visual novel → companion”). It becomes what visitors get.
  4. Unpublish, if you need the character off your site. Your keys stop being answered at the next page load, so the widget simply does not appear. Nothing is deleted — your draft, your published versions and your history all stand, and pressing Publish again puts the character straight back.

How fast a published change reaches visitors

The next page load. There is no cache window and nothing to purge.

The widget asks us for its configuration on every page load, and our answer carries Cache-Control: private, no-cache, must-revalidate. In plain terms: no shared cache — no CDN, no corporate proxy — may keep a copy of your configuration, and the visitor's own browser may keep one but may never use it without checking with us first.

That check is cheap. The browser sends the ETag it already has; if nothing has changed we answer 304 Not Modified with no body at all. So a repeat visitor pays almost nothing, and the moment you publish, the very next load gets the new answer.

History and rollback

Every publish is a numbered version with a plain-English list of what it changed. Any earlier version can be restored with one click.

A rollback creates a new version rather than deleting anything. Going back from version 7 to version 4 produces version 8, holding version 4's settings and noting where it came from. Your history stays an honest record of what actually happened to your site, which is what you need when you are working out when something changed and why.

What happens if your plan changes

A downgrade never breaks your widget and never edits your configuration.

  • If your published character needs a paid plan, visitors see our free 2D character instead — keeping the name you gave her. Your dashboard tells you exactly what is being substituted.
  • If you had the “Powered by Nikoori” badge removed, it comes back, because removing it is a paid feature.
  • Your published configuration is untouched. Upgrade again and the very next page load serves what you published, with nothing for you to redo.

Whoever maintains the page also sees one console line explaining the substitution, so it is never a mystery.

The configuration response

If you are debugging, this is what GET /api/embed/config?key=… answers. It is additive by policy: we add fields, we never rename or repurpose them, so a copy of embed.js cached in a visitor's browser from months ago keeps working.

GET /api/embed/config?key=pk_live_…
{
  "name": "Aria",
  "vrmUrl": "/api/models/aria-2d?key=pk_live_…",
  "style": "pro-3d",
  "posterUrl": "/avatars/2d/aria-anime/poster.png",
  "badge": true,
  "limit": null,

  "config": {
    "schemaVersion": 1,
    "character":     { "name": "Aria", "style": "pro-3d" },
    "greeting":      "Hi! Ask me anything about our shipping.",
    "presentation":  { "mode": "chat", "layout": "stage",
                       "position": "bottom-right", "language": "auto",
                       "accent": "#635bff" },
    "features":      { "badge": true }
  },
  "configVersion": 7,
  "published": true,
  "publishedAt": "2026-09-22T09:14:03.117Z",
  "mode": "live",
  "keyMode": "live",
  "planNotices": []
}

Two fields are called a mode and they mean different things. mode is which configuration you are being served — live for the published one, preview only ever for your own draft, from your dashboard. keyMode is the key you asked with: ask with your test publishable key and it says test, and that page view stays out of your plan's counters.

What is never in it

  • Your AI provider key. It is encrypted on our server and never leaves it.
  • Your persona prompt. It is applied server-side when a reply is generated.
  • Your allowed websites. We check them before answering; the list itself is nobody's business but yours.

See also Script attributes for the full attribute reference and Security and privacy for what leaves the browser.