What's NewWeb SDK

August 12, 2026

Persistence mode for multi-page websites, faster session starts, a full Web SDK docs section, and the Add an AI Agent to Your Website guide

Persistence mode

For multi-page websites: on a traditional multi-page site, clicking a link triggers a full page reload — which tears down the running session, so the agent restarts on every page. The Web SDK's new persistence mode keeps the agent, its state, and the live connection alive as the visitor moves through the site — the conversation continues mid-sentence across page loads. (Single-page apps don't need it: client-side routing never unloads the page, so the session already survives route changes.)

NapsterCompanionApiSdk.init(token, {
  persistence: { enabled: true },
});

By default the site is wrapped as soon as the session connects; with iframeOnNavigate: true the landing page stays fully native and the wrap happens on the first click. Exclusion rules, history syncing, and an opt-in navigation progress bar are all configurable.

See the Persistence guide.

Faster session starts

Sessions now start noticeably faster. Ephemeral connection tokens are issued in under a second (down from a couple of seconds) — time that came straight off the gap between a user hitting start and the agent being live. And with videoPolicy: "deferred", the conversation starts the moment audio is ready, with the video avatar appearing a moment later — the agent feels instant even on slower connections.

A full Web SDK docs section

The Web SDK now has a dedicated docs section: installation, initialization, configuration, methods, events, messaging, built-in features, framework examples, persistence, and troubleshooting.

New guide: Add an AI Agent to Your Website

An end-to-end walkthrough for the most common goal: putting an Omniagent on your website — from token endpoint to embedded agent, including making the agent able to operate your site, not just talk about it.

See Add an AI Agent to Your Website.

On this page