# Build a Kick widget with your own AI

> Connect Claude, ChatGPT, Cursor or another MCP app to KickBot to build, test and publish custom Kick widgets for OBS with no message limits from KickBot.

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

You can use Claude, ChatGPT, Cursor, Codex, or any MCP-compatible AI app to build custom Kick overlays directly in KickBot. Connect your AI app to the KickBot MCP server, describe what you want, and your AI reads KickBot's widget guide, writes the widget files, and sends test events while you watch the live preview in the editor. Unlike KickBot's built-in AI chat, using your own AI has no message limits from KickBot.

Under **Widgets** > **Create** ([kickbot.com/dashboard/widget-create](https://kickbot.com/dashboard/widget-create)), you can build with **Use KickBot AI**, **Use your own AI** (this page), or **Start from code**, and switch between them on the same widget at any time.

## What you can make

Custom widgets run HTML, CSS, and JavaScript with KickBot's `kb` SDK for live Kick events, saved data, settings, dashboard control buttons, chat messages, and TTS. Three examples:

- **Monthly top 5 gifters board:** tracks gifted subs in saved data across OBS restarts, resets on the 1st of each month, and adds a **Clear board** button on the widget's settings page.
- **Chat raffle with `!join`:** collects viewers from Kick chat, lets moderators pick a random winner with a button or chat command, displays Kick emotes, and optionally posts the winner in chat.
- **TTS "Now playing" card or multi-stage sub goal bar:** shows the voice name, image, and text while KickBot TTS plays, or shows custom milestone rewards as subs and gifted subs come in.

## What 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.
- An AI app that supports MCP (such as Claude, ChatGPT, Cursor, Codex, VS Code, or Grok).
- A computer to open the widget editor (on smaller screens you can still change settings and copy widget URLs in [My widgets](https://kickbot.com/dashboard/saved-widgets)).
- If you are a moderator on someone else's channel, the owner or an admin must turn on **API & MCP access** and **Widget builder** for you in [Manage team](https://kickbot.com/docs/account/team).

## Connect your AI app

1. Open **Widgets** > **Create** > [Use your own AI](https://kickbot.com/dashboard/widget-create/own-ai) and pick your AI app (**ChatGPT**, **Claude**, **Cursor**, **Codex**, or **Other**).
2. Add the KickBot MCP server URL in your AI app's connector or MCP settings:

```text
https://kickbot.com/api/v1/mcp
```

3. On the KickBot approval page that opens, sign in, pick your channel, choose **Read and change settings**, and click **Approve**. A read-only connection cannot create or edit widgets.
4. Leave **Use your own AI** open while sending your first prompt. It shows live progress and opens the widget editor automatically when your AI saves the first code.

> **Good to know:** If your AI app works better with fewer tools, use `https://kickbot.com/api/v1/mcp?areas=widgets` to load only the widget tools and the account tools.

For app-by-app setup steps, API key headers, and how to disconnect an app later, see [Connect an AI app to KickBot](https://kickbot.com/docs/api/start/connect-ai-apps).

![The Use your own AI page in KickBot with Claude selected, the MCP server URL, the starter prompt and the Status card that shows Connected to Claude](https://kickbot.com/docs/images/widgets/build-with-your-ai/01-use-your-own-ai.webp "Pick your AI app, copy the URL and the prompt, and the status updates on its own.")

## A first prompt to copy

Paste this prompt into a new chat in your AI app, or edit the first line to describe your own widget. You can also copy an editable starter prompt directly from **Use your own AI**.

**Example 1: Monthly top 5 gifters board**

```text
Build a KickBot widget: a monthly top 5 gifters board that resets automatically on the 1st of each month.
Read the KickBot widget guide first. Count gifted subs per username, save totals in saved data across OBS restarts, and show "No gifters yet" when empty. Add settings for title, rows to show (3 to 10), accent color, text color, panel color, panel opacity, and font, plus a "Clear board" control button with confirmation. Fit cleanly in 420 x 360 with a transparent background. Test it with subGift test events and give me the editor link.
```

## More example prompts

Specific prompts get the best results: name the events, what should survive OBS restarts, the settings and buttons you want, and the size.

**Example 2: Chat raffle with `!join` and moderator controls**

```text
Build a KickBot widget: a chat raffle where viewers type !join to enter once per round.
Read the KickBot widget guide first. Show the entry count on a dark card and animate the random winner reveal. Let me and my Kick moderators run !pick and !clear in chat, and add "Pick winner" and "Clear entries" buttons in controls. Save entries in saved data. Add settings for the join command word, accent color, panel opacity, font, and a toggle to announce the winner in chat. Test it with chat test events and give me the editor link.
```

**Example 3: Multi-stage sub goal bar**

```text
Build a KickBot widget: a horizontal sub goal bar with 3 milestone stages (for example 25, 50, and 100 subs), each with its own reward label.
Read the KickBot widget guide first. Count new subs and gifted subs, store the count in saved data as an editable number, and add a "Reset goal" button with confirmation. Add settings for each stage target and reward label, bar color, text color, panel color, panel opacity, and font. Size it at 800 x 120 with a transparent background so nothing is cut off. Test it with sub and subGift test events and give me the editor link.
```

## What your AI does step by step

1. **Reads the widget guide.** Your AI calls `get_widget_guide` to learn the four files (`index.html`, `style.css`, `script.js`, and `widget.json`), the `kb` SDK events, saved data, and channel limits.
2. **Creates the widget and writes the files.** Your AI calls `save_widget_files` to create the widget and save its code. KickBot also creates your installed copy automatically and returns the editor link (`editor_url`).
3. **Sends test events.** Your AI calls `send_widget_test_event` with sample events (`follow`, `sub`, `subGift`, `kicks`, `tip`, `raid`, `chat`, `tts`, `imagine`, `pinned`, `unpinned`, `streamOnline`, or `streamOffline`) so you can verify how it reacts.
4. **You check the preview and Console.** If you kept **Use your own AI** open, the editor opens automatically; otherwise open the link your AI returns. Edits and test events appear live in the **Preview** and **Your AI** activity feed with no reload. Switch between **Close-up** and **On stream** (1920 × 1080) to check sizing, and check the **Console** tab at the bottom for errors.
5. **Add it to OBS.** Click **Add to OBS** in the top right of the editor, copy your widget URL, and add it as a **Browser** source in OBS with the width and height shown in the popup. It also works in Streamlabs Desktop, Meld Studio, XSplit, vMix, PRISM Live Studio, and Lightstream.

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

![The KickBot widget editor with the Your AI activity feed on the left, a monthly top gifters board in the preview and the Console tab at the bottom](https://kickbot.com/docs/images/widgets/build-with-your-ai/02-editor.webp "Each change and test event from your AI shows in the feed and in the preview.")

## How to change your widget

- **Keep chatting in the same thread:** Ask for layout tweaks, new settings, extra events, or fixes. Changes appear live in the preview.
- **Continue in a new chat:** In the editor's **Your AI** panel, click **Copy prompt** to copy a prompt with the widget's name and ID so a fresh chat updates the same widget.
- **Fix errors:** Paste any error from the **Console** tab into your AI chat, or click **Fix with AI** next to the error to have KickBot AI fix it (this uses one of your monthly KickBot AI messages).
- **Switch tools anytime:** Move between **Your AI**, **KickBot AI**, **Code**, and **Settings** on the same widget whenever you want.
- **Undo or restore versions:** KickBot saves a copy before every change. Click **Undo last change** in **Your AI**, or open **Versions** in the top bar to restore any older snapshot (your current files are saved before restoring too).
- **Remix a library widget:** Ask your AI to copy an existing library widget as a starting point, or click **Remix** on an installed widget's settings page.

![The Versions panel in the widget editor with saved copies from before each change by your AI, each with a Restore button](https://kickbot.com/docs/images/widgets/build-with-your-ai/03-versions.webp "Restore any copy from before a change.")

## Publish to the library or keep it private

New widgets start as **Not published** and work only for your channel through your private widget URL. To share a widget with other streamers:

- **Through your AI app:** Ask your AI to publish it. Your AI runs `check_widget_for_publish` (automatic security and quality check, plus a suggested category and description), fixes any blocking problems if needed, confirms details with you, and calls `publish_widget` for **Everyone in the library** or **Only people with the link**.
- **Preview pictures:** Your AI can upload up to 5 preview images (PNG, JPG, GIF, or WebP, max 10 MiB each; 16:9 recommended). If it publishes to the library without pictures, KickBot publishes link-only first and returns a finish link (also shown as **Finish listing** in the editor and [My widgets](https://kickbot.com/dashboard/saved-widgets)). Open that link and click **Finish listing**. KickBot makes the pictures from your widget and adds it to the library.
- **From the editor:** Click **Publish** in the top right to run the check, generate pictures with AI (or upload your own), choose **Everyone in the library** or **Only people with the link**, and publish.

![The Publish to the library panel with the name, a category picked by AI, a description written by AI, four preview pictures made with AI, Who can find it and Check passed](https://kickbot.com/docs/images/widgets/build-with-your-ai/04-publish.webp "KickBot runs the check and suggests the category, the description and the pictures. You can change each one.")

Published widgets are translated into KickBot's other 13 dashboard languages in the background. Republishing creates a new version for streamers following the newest version. To unpublish, open **Widgets** > **Create**, open the widget's menu under **Your widgets**, and click **Stop sharing**. Copies people already added keep working.

## Limits and good to know

| Limit | Value |
| --- | --- |
| KickBot messages with your own AI | No message limit from KickBot (your AI app's own plan limits apply). Standard API limits apply: 120 requests/min, 3,000/hour ([Errors and limits](https://kickbot.com/docs/api/start/errors-and-limits)). |
| KickBot built-in AI chat (for comparison) | 100 messages/month on Free, 1,000 on Premium. |
| Custom widgets per channel | Unlimited on Free and Premium. |
| File size | 500 KB each for `index.html`, `style.css`, and `script.js`; 100,000 characters for `widget.json`. |
| Widget size | Width 50 to 3840 px; height 50 to 2160 px. |
| Settings, saved data rows, controls | Up to 60 settings, 30 named saved-data rows, and 8 control buttons. |
| Saved data (`kb.store`) | Up to 3 MB per installed widget (512 KB per value). Survives reloads and OBS restarts. |
| Chat and TTS from widgets | Up to 10 chat messages/min (max 500 chars) and 6 TTS messages/min (max 300 chars) across all widgets on your channel. Toggle either off per widget under **Permissions**. |
| Publishing | Up to 20 publish checks a day per channel. |

Sandbox rules to keep in mind:

- **No clicks on stream:** Viewers cannot click a browser source in OBS. Put actions in `controls` buttons or Kick chat commands.
- **Sandboxed page:** Widgets have no cookies and no access to `window.parent`. They can load public fonts and libraries (Google Fonts, jsDelivr, unpkg) and call public keyless browser APIs.
- **What widgets cannot access:** Widgets cannot read or change your KickBot chat commands or bot settings, AI character replies, clips, VODs, or Stream Deck actions. Tip TTS plays in the [KickBot tip alert](https://kickbot.com/docs/tipping/tip-alerts) and reaches widgets as a `tip` event, not a `tts` event.

## FAQ

**Do I need KickBot Premium to build widgets with my own AI?**

No. Connecting an AI app through MCP and building custom widgets is free on both Free and Premium plans, with no limit on widget count.

**Which AI apps work with the KickBot MCP server?**

Any AI app that supports MCP works, including Claude, ChatGPT, Cursor, Codex, VS Code, and Grok. See [Connect an AI app to KickBot](https://kickbot.com/docs/api/start/connect-ai-apps).

**Can my AI app edit a widget I started with KickBot AI or code?**

Yes. Open the widget in the editor, switch to **Your AI**, and click **Copy prompt** to give your AI app the widget name and ID.

**Are widgets I build with my own AI public by default?**

No. New widgets start as **Not published** and work only through your private widget URL unless you choose to publish them.

**Can a custom widget post in Kick chat or play TTS?**

Yes. Widgets can send up to 10 chat messages per minute and 6 KickBot TTS messages per minute per channel (TTS plays through your [KickBot TTS](https://kickbot.com/docs/tts/set-up-tts) browser source). You can turn either off per widget under **Permissions** on the settings page.
