Skip to content

Move from the old widget builder to the new widget system

Widgets you built in the old KickBot widget builder still run in OBS on the old runtime with the same widget URL, and you can still change their settings in My widgets. To edit code or publish updates, move the widget to the new widget system inside the editor. OBS keeps running the old version until you review the draft and click Make live.

  • Sandboxed kb SDK: Each widget runs in its own sandbox with structured Kick events, including KickBot tips, TTS queue events, !imagine pictures, pinned messages, and stream start and end. It also adds per-widget cloud saved data (kb.store, up to 3 MB), dashboard Actions (controls), chat messages (kb.chat.send), TTS (kb.tts.say), and scene-local widget messaging (kb.emit).
  • Four-file editor with AI and versions: Edit index.html, style.css, script.js, and widget.json alongside built-in KickBot AI (Build a Kick widget with KickBot AI) or Your AI over MCP (Build a Kick widget with your own AI). The editor also includes a visual Settings editor with sections and conditional rules, Console, Events, and Saved data tabs, and Versions history.
  • No widget limit on Free: Both Free and Premium channels can create unlimited custom widgets (the old widget builder capped Free accounts at 10).
  • Instant library publishing and Remix: Automatic checks replace manual staff review, and each publish creates a numbered version. You can publish to the library or link-only, listings translate automatically into 13 other dashboard languages, and creators can remix published widgets.

Where your old widgets are and what still works

Section titled “Where your old widgets are and what still works”
  • In OBS: Existing old-builder widgets keep running on the old runtime without any change to your widget URL.
  • In My widgets: Installed copies stay in Widgets > My widgets (kickbot.com/dashboard/saved-widgets) under Made by you. You can still open a widget’s settings page to change settings and copy its URL. Saving settings reloads OBS, while test events on an old widget’s settings page show only in the preview, not in OBS.
  • In Create: Opening /dashboard/widget-builder redirects to Widgets > Create (kickbot.com/dashboard/widget-create). All widgets you created (old and new) appear under Your widgets. Clicking Edit on an old widget opens it in the new editor.
  • Old builder URLs are read-only: If you open a direct bookmark to /dashboard/widget-builder/<id>, the code tabs open read-only with a banner and an Open in the new editor button. The old API update_widget endpoint also rejects code edits on old widgets and directs you to save_widget_files.
  • Publishing: Old widgets cannot be published in the new editor until you move them and click Make live.

Moving a widget in the editor keeps your existing OBS widget URL and settings, and lets you test safely before switching your live stream over.

  1. Open Widgets > Create (kickbot.com/dashboard/widget-create) and click Edit on the old widget (or click Open in the new editor from the old builder page).
  2. In the Move widget to the new system? popup, click Move to the new system (Not now takes you back to My widgets and changes nothing).
  3. Review your Draft · not live yet in the editor:
    • Your existing HTML, CSS, JavaScript, and settings carry over intact. KickBot adds the old page’s base styles to style.css, adds a short comment at the top of script.js when the code uses localStorage, and saves a copy in Versions as Before the move to the new system.
    • Existing v1 globals (globalValues, userVariables, widgetEvent, window.kickbotWidget, and localStorage) keep working in the new runtime, so you do not need to rewrite working code just to move.
    • OBS keeps running the old version while the widget is in draft. Draft edits do not reload OBS.
    • If your old code used localStorage, KickBot records those keys under legacy_storage in widget.json. The first time the new version loads in OBS after Make live, KickBot copies those old browser values once into the widget’s cloud saved data.
  4. If the line above the preview says 1 thing to fix (or more), click Show to open Needs a fix:
    • KickBot checks the code and runs it once in the new sandbox. It flags anything that worked on the old page but needs a change now (such as window.parent, cookies, popups, or links without https://), along with errors or a widget that does not start or shows nothing.
    • Click Show code to edit an issue yourself, or click Fix with AI next to an item to let KickBot update it. Each Fix with AI saves a snapshot (Before Fix with AI) in Versions and does not count against your monthly KickBot AI message limit.
    • Click Check again after fixing issues.
  5. Click Make live in the top bar when the preview looks right.
A moved widget in the KickBot editor marked Draft, not live yet, with the Make live button at the top and the Needs a fix panel listing two problems, each with Show code and Fix with AI
Fix each item, then click Make live.

Clicking Make live switches your existing widget URL to the new version and reloads open OBS browser sources automatically, even if an item remains in Needs a fix. If other channels use the widget, KickBot shows how many before you confirm. If the widget is in the library or other channels use it, KickBot runs the library check first and publishes a new version so channels following the newest version update. After Make live, you can edit and use Publish normally.

Before clicking Make live, you can cancel the move at any time: open Versions in the top bar, find Old system version, and click Move back. Your draft stays saved in Versions as The draft, before moving back.

  • Move with your own AI app (MCP): From Claude, ChatGPT, Cursor, or Codex (Build a Kick widget with your own AI), call save_widget_files with the old widget’s id. The first save moves the widget into a draft on the new system and returns the editor_url. Open that link in the editor to review and click Make live.
  • Rebuild fresh with KickBot AI: Open Widgets > Create > Use KickBot AI (Build a Kick widget with KickBot AI) and paste your old widget’s OBS, library, or editor link into your prompt. KickBot reads the old code from that link and builds a fresh widget directly on the kb SDK. This creates a new widget with a new URL and leaves the old one unchanged.
  • Upgrade code gradually: After moving a widget in place, you can keep your v1 code running and switch parts over to kb.store, controls, kb.on('settings'), kb.chat.send, or kb.tts.say whenever you want using the Code a Kick widget: quick start guide and KickBot widget SDK reference.
Old widget builderNew widget system
Saved widgetsMy widgets
Widget builderCreate
User variablesSettings tab (widget.json)
Dropdown / Audio variable typesChoice (select) / Sound (sound)
Publish widget (manual review)Publish (automatic check, versions, library or link-only)

Old names still run inside moved widgets. Use the new names when writing new widgets or updating code (each new name is described in the KickBot widget SDK reference):

Old widget builder (v1)New widget system (kb SDK)
userVariables.<key>.valuekb.settings.<key>
document.addEventListener('widgetEvent', ...)kb.on('<event>', ...)
globalValues.followerCount / subCountkb.counts.followers / kb.counts.subscribers
globalValues.viewerCount / currentStreamkb.stream
globalValues.lastFollower / lastSub / lastGiftedSubkb.last.follower / kb.last.sub / kb.last.gift (plus kb.last.tip)
globalValues.chatMessageskb.chatHistory
globalValues.streamerInfo.kickkb.channel
window.kickbotWidget.createChatMessageFragment()kb.parseMessage()
Shared browser localStoragekb.store (per-widget cloud saved data)
followEvent / unfollowEventfollow / unfollow
subEvent / subGiftEventsub / subGift
kicksEvent / raidEventkicks / raid
chatMessageEvent / chatMessageDeletedEvent / chatClearedEventchat / chatDeleted / chatCleared
chatMessagePinnedEvent / chatMessageUnpinnedEventpinned / unpinned
UserBannedEventban
followerCountUpdatedEvent / subCountUpdatedEvent / viewerCountUpdatedEventfollowers / subscribers / viewers
Do I have to change my OBS browser source URL after moving an old widget?

No. Moving a widget in the editor and clicking Make live switches your existing widget URL over to the new version and reloads open OBS browser sources automatically.

Will moving an old widget break my live stream while I am testing?

No. Moving creates a Draft · not live yet. OBS keeps running the old version until you click Make live, and you can click Move back in Versions at any time while in draft.

Do I have to rewrite globalValues, userVariables, or widgetEvent to move my widget?

No. The new runtime keeps globalValues, userVariables, widgetEvent, window.kickbotWidget, and localStorage working so moved widgets run without a full rewrite.

Does Fix with AI in Needs a fix use my monthly KickBot AI messages?

No. Using Fix with AI inside the Needs a fix checklist for a moved draft does not count against your monthly KickBot AI chat messages.

What happens to data my old widget stored in localStorage?

KickBot adds the localStorage keys it finds in your code to legacy_storage in widget.json. The first time the moved widget loads in OBS after Make live, KickBot copies those browser values once into the widget’s saved data.