# Build a Kick widget with KickBot AI

> Build custom Kick overlays for OBS with KickBot AI right in the dashboard: describe your widget, add pictures, test events, and undo changes.

Source: https://kickbot.com/docs/widgets/build-with-kickbot-ai

KickBot AI is the built-in chat in the KickBot widget editor that turns a plain-English description into a working Kick overlay for OBS. Open **Widgets** > **Create** ([kickbot.com/dashboard/widget-create](https://kickbot.com/dashboard/widget-create)) and click **Start with KickBot AI** ([kickbot.com/dashboard/widget-create/kickbot-ai](https://kickbot.com/dashboard/widget-create/kickbot-ai)). Describe what you want, and KickBot writes the code, names the widget, and opens a live preview you can test right away.

You need a [KickBot account](https://kickbot.com/docs/getting-started/create-your-account) with your Kick channel connected. Custom widgets are free, with no limit on how many you can make. If you are a moderator on another channel, the owner or an admin must turn on **Widget builder** for you in [Manage team](https://kickbot.com/docs/account/team). On a phone, you can start a KickBot AI build and change settings in [My widgets](https://kickbot.com/dashboard/saved-widgets), but editing in the widget editor requires a computer.

## Build your first widget

1. Open **Widgets** > **Create** > **Use KickBot AI** ([kickbot.com/dashboard/widget-create/kickbot-ai](https://kickbot.com/dashboard/widget-create/kickbot-ai)).
2. Type what your widget should do in the prompt box (up to 4,000 characters), or click one of the **Ideas** cards (**Subathon timer**, **Chat game with `!join`**, **Sub goal with stages**, or **Death counter**) to fill in a starting prompt and edit it.
3. Optional: open the **Size** menu. **Auto** lets KickBot AI pick a size that fits your layout, or you can choose `800 × 600`, `500 × 800`, `1280 × 200`, or `1920 × 1080`.
4. Optional: click **Add a picture** (or paste or drop images into the box) to attach a visual reference or a logo.
5. Click **Build it**.

The line under the prompt box shows how many KickBot AI messages you have left this month. When none are left, **Build it** is turned off until the next month.

KickBot creates the widget, writes its four files (`index.html`, `style.css`, `script.js`, and `widget.json`), picks a name, and adds your installed copy to [My widgets](https://kickbot.com/dashboard/saved-widgets). The editor opens in **Preview** view with the **KickBot AI** panel ready. If your prompt is missing a detail that changes how the widget should work, KickBot AI asks one short question in chat first and writes the files after you answer.

![The Use KickBot AI page with a follower goal prompt in the box, the Add a picture button, Size set to Auto, the Build it button and four Ideas cards below](https://kickbot.com/docs/images/widgets/build-with-kickbot-ai/01-use-kickbot-ai.webp "Say what the widget should do and click Build it.")

## Ask for changes

Stay in the **KickBot AI** panel next to the preview and type any change you want, such as a different font, new settings, extra Kick events, or layout adjustments.

- **Saved chat history:** Your conversation stays saved with the widget and is grouped by day.
- **Live updates:** Each reply lists the files that changed and reloads the preview automatically.
- **Start a fresh thread:** Click **New chat** at the top of the panel to work on a separate change without older chat context. Where each new chat starts is remembered in this browser only, so on another computer the history shows one chat per day.
- **Switch tools anytime:** Open **Code** or **Settings** at the top of the editor, or switch the panel to **Your AI**, on the same widget at any time.

![The KickBot widget editor with the KickBot AI chat on the left, a request for a follower goal bar, the answer and the four changed files, and the Followers today 4 / 100 bar in the preview with the test buttons below](https://kickbot.com/docs/images/widgets/build-with-kickbot-ai/02-editor.webp "Each answer lists the files KickBot AI changed. The preview updates at once.")

## Pictures and links in your prompt

You can give KickBot AI both images and links, and it can also draw simple graphics itself:

- **Attach pictures:** Add up to 2 pictures per message (PNG, JPG, WebP, or GIF) using **Add a picture**, clipboard paste, or drag and drop. Tell KickBot AI whether the image is a style reference ("match these colors and layout") or an asset to show inside the widget. When you use a picture inside the widget, KickBot AI puts it in an **Image** setting so you can swap it later without editing code.
- **Paste links:** Include up to 3 links in a message. KickBot can open public web pages, direct image links (PNG, JPG, GIF, or WebP), and KickBot widget, library, or editor links so you can copy or rework a design. For KickBot widget links, KickBot reads only the code and setting definitions, never saved data or private settings. Pages that require a login cannot be opened.
- **Built-in drawings vs uploaded artwork:** KickBot AI can draw simple SVG or CSS icons and shapes (hearts, stars, crowns, arrows, progress rings), use emoji, and load public icon libraries such as Lucide or Font Awesome. It does not generate detailed illustrations, photos, or complex logos. For detailed artwork, attach a picture or ask for an **Image** setting and upload your image there.

## Test events, preview, and Fix with AI

Check how your widget reacts before putting it on stream:

- **Preview modes and backgrounds:** Switch between **Close-up** and **On stream** (a 1920 × 1080 stream frame where you can drag the widget to check scale). Test contrast against the **Game**, **Moving**, **Bright**, and **None** backgrounds (plus **Studio** in Close-up), and change the widget's width and height in the preview bar if needed.
- **Test buttons:** Click **Follow**, **Sub**, **Gifted subs**, **KICKs**, **Tip**, **Raid**, **Chat message**, **TTS**, or **AI image** below the preview. Events your widget does not listen for appear dimmed. When your code uses them, buttons for **Pinned message**, **Unpin**, **Stream start**, **Stream end**, and up to 3 chat commands (`!command`) appear too. Each button from your widget's `controls` shows under **Actions**.
- **Fix with AI:** If the widget has an error, a red dot shows on the **Console** button at the top right. Open **Console** and click **Fix with AI** next to the error. KickBot sends the error and location to **KickBot AI** chat and updates the code. Clicking **Fix with AI** counts as one monthly KickBot AI message.

> **Note:** Test events show in both the editor preview and OBS, even while you are live. Chat messages and TTS triggered by test events are not sent for real; they appear in the editor **Console** instead.

> **Caution:** Clicking **Clear test events** restores saved data to how it was before your first test and removes any real events that arrived since then. Do not click **Clear test events** during a live stream.

## Undo changes and restore versions

KickBot saves a snapshot of your files before every AI change:

- **Undo last change:** Right after a change, click **Undo last change** below that reply to put the previous files back.
- **Versions:** Click **Versions** in the top bar to see earlier saved copies and click **Restore** on any of them. KickBot saves your current files as **Before a restore** first, so you can switch back if needed.

## Add to OBS or share it

Click **Add to OBS** in the top right of the editor to copy your private widget URL and see the exact width and height to enter in your OBS browser source. Click **Put it in a scene** in the same popup if you prefer to group overlays in a single source; see [Combine widgets in KickBot scenes](https://kickbot.com/docs/widgets/scenes) and [Add a KickBot overlay to OBS](https://kickbot.com/docs/getting-started/add-browser-source-obs).

A widget only counts live events and chat commands while it is open in OBS (or another streaming app such as Streamlabs Desktop, Meld Studio, XSplit, vMix, PRISM Live Studio, or Lightstream). New widgets start as **Not published** and stay private to your channel until you share them; see [Publish and share a widget](https://kickbot.com/docs/widgets/publish-and-share).

## Example prompts

Clear prompts get the best first draft: name the Kick events, what should survive OBS restarts, the settings and buttons you want, and the size.

**Example 1: Mod-controlled stream checklist**

```text
Build a stream checklist widget that shows up to 6 goals for today's stream on a dark card.
Let me and my Kick moderators type !done 2 to check off item 2, or !next to check off the next open item. Save checked items in saved data across OBS restarts. Add settings for the title, each checklist item (leave blank to hide), accent color, text color, panel color, panel opacity, and font. Add "Next item" and "Reset checklist" control buttons, with confirmation on reset. Size it at 380 x 280 with a transparent background.
```

**Example 2: Stream boss health bar**

```text
Build a stream boss health bar widget with a boss name, health bar, and current HP over max HP.
Deal damage on subs (100 HP per sub), gifted subs (100 HP per gifted sub), and KICKs (1 HP per KICK). When HP reaches 0, show a short defeat banner, save the winner's username, and start a new boss with higher HP. Save current HP, max HP, and last winner in saved data. Add settings for starting boss name, starting HP, damage per sub, damage per KICK, a toggle to announce boss defeats in chat (respecting the 10 messages per minute limit), bar color, text color, panel color, panel opacity, and font, plus a "Reset boss" button with confirmation. Size it at 640 x 120.
```

**Example 3: On-screen `!imagine` picture frame**

```text
Build a widget that shows each viewer's !imagine AI picture when the imagine event arrives.
Display the image inside a clean frame using object-fit: contain so square and wide images are never cropped, with the viewer's username and prompt in a small bar below. Queue multiple pictures so none are skipped. Add settings for time on screen (seconds, 3 to 30), show prompt toggle, border color, text color, panel color, panel opacity, and font. Size it at 520 x 560 with a transparent background.
```

## Message limits and what KickBot AI cannot do

Each message you send in **KickBot AI** counts once toward your monthly limit, even when KickBot AI changes multiple files. Failed requests do not count.

> **Note:** You get 1,000 KickBot AI messages per month on Premium and 100 messages per month on Free. The counter resets on the 1st of each month (UTC).

Keep these limits in mind when deciding what to ask for:

- **No generated artwork:** KickBot AI writes HTML, CSS, JavaScript, and simple SVG icons; it does not generate realistic artwork or photos.
- **No automatic testing or screenshots:** KickBot AI cannot click test buttons or see the rendered preview. You test the widget yourself with the test buttons below the preview, check **Console**, and tell KickBot AI what to change (or attach a screenshot).
- **No access to other KickBot features:** Widgets cannot read or change your KickBot chat commands or bot settings, AI character replies, clips, VODs, or Stream Deck actions.
- **No clicks on stream:** Viewers cannot click a browser source in OBS. Put interactive actions in **Actions** buttons (`controls`) or Kick chat commands.
- **TTS audio and tip TTS:** Widgets can queue TTS messages (up to 6 per minute per channel) and react to `tts` events, while the audio plays through your KickBot TTS browser source (see [Set up TTS on Kick](https://kickbot.com/docs/tts/set-up-tts)). Tip TTS plays in your KickBot tip alert source (see [Tip alerts in OBS](https://kickbot.com/docs/tipping/tip-alerts)) and reaches widgets as a `tip` event rather than a `tts` event.

For every event, property, and helper available to widgets, see [KickBot widget SDK reference](https://kickbot.com/docs/widgets/sdk).

## When to use your own AI instead

Switch to [Build a Kick widget with your own AI](https://kickbot.com/docs/widgets/build-with-your-ai) when you want to:

- Build large or complex widgets across many back-and-forth edits with no message limit from KickBot.
- Let Claude, ChatGPT, Cursor, Codex, or another MCP app send test events, run publish checks, and upload preview pictures directly.
- Keep working on a widget you started in KickBot AI by opening **Your AI** in the editor and clicking **Copy prompt**.

## FAQ

**Can I switch between KickBot AI, my own AI, and the code editor on the same widget?**

Yes. Every custom widget uses the same four files. You can start with KickBot AI, tweak code in **Code** or settings in **Settings**, or switch the panel to **Your AI** at any time.

**Does KickBot AI count a message if something goes wrong?**

No. If a request fails before KickBot AI replies, it does not count toward your monthly message limit.

**Can KickBot AI copy the look of a screenshot or another KickBot widget?**

Yes. Attach up to 2 screenshots with **Add a picture** as a style reference, or paste a KickBot library, editor, or widget link so KickBot AI can read its code and build a new version for you.

**Can I build a widget with KickBot AI on my phone?**

You can start a new widget on **Widgets** > **Create** > **Use KickBot AI** from a phone, then adjust its settings and copy its URL in [My widgets](https://kickbot.com/dashboard/saved-widgets). Opening the full widget editor to chat further or edit code requires a computer.

**Are widgets built with KickBot AI public by default?**

No. Every new widget starts as **Not published** and works only through your private widget URL until you choose to publish it.
