Current Page URL: https://docs.widgetkraft.com/available-widgets/ai-chatbot-widget

AI Chatbot Widget

Add intelligent, conversational AI assistance to your website, powered by advanced language models. Create a custom assistant that understands your business and helps visitors around the clock.

Pricing 0.8 credit / chat

You can fully customize

Chat appearance and theme
AI behavior and personality
Initial greeting messages
Colors, fonts, and bubble styles
Chat widget size and positioning

Your AI assistant is powered by Claude and can be customized with your own knowledge base.

Quick Start

Copy the snippet for your stack and paste it into your project you're live in under a minute.

HTML

Paste this snippet into any HTML file before the closing </body> tag.

1<!-- 1. Add this where you want the chatbot to appear -->
2<div id="chatbot-root"></div>
3
4<!-- 2. Load the widget script -->
5<script src="https://cdn.widgetkraft.com/chatbot.js"></script>
6
7<!-- 3. Initialize with your Widget ID -->
8<script>
9  ChatbotWidget.init({
10    widgetId: "YOUR_WIDGET_ID"
11  });
12</script>
TIPReplace YOUR_WIDGET_ID with the ID found in the Code tab of your chatbot editor.

Creating an AI Chatbot widget

Four steps from the dashboard.

  1. 1Go to All Widgets → AI Chatbot
  2. 2Click + Add Widget
  3. 3Go to My Widgets → AI Chatbot
  4. 4Click Configure
WidgetKraft: creating an AI Chatbot widget, dashboard selection
Dashboard, creating a new AI Chatbot widget

The chatbot editor opens with a live preview on the left and configuration panels on the right. Every change updates the preview instantly.

AI-powered intelligence

Your chatbot uses advanced AI to understand context, respond helpfully, and stay aligned with your master prompt.

Understanding the chatbot editor

Six configuration tabs.

Header

Title and branding

Chat

Message bubble styling

Input

Message input setup

Appearance

Size and design

Code

Embed snippet

1

Header tab

Controls the top section of your chatbot widget.

Title

The name shown at the top of the chat window.

"Support Bot"

Subtitle

Descriptive text below the title.

"Ask me anything…"

Logo URL

Your brand logo or icon. PNG, JPG, or SVG.

AI processing message

Shown while the AI is thinking.

"Thinking…"

Font color

Text color in the header.

Background color

Header background, to match your brand.

Font family

Typography for the header text.

WidgetKraft: header tab, title, subtitle, and logo configuration
Custom title, subtitle, and logo
2

Chat tab

How messages appear in the conversation.

Message bubbles

User bubble color

Messages sent by the visitor.

AI bubble color

AI assistant responses.

User font color

Text color for user messages.

AI font color

Text color for AI responses.

Bubble radius

Roundness of message bubbles.

18px

Font size

Message text size.

14–16px
WidgetKraft: chat tab, bubble colors and fonts
Custom bubble colors and fonts

Floating chat bubble

The circular button that opens your widget. Its size and radius are configurable here.

Design tip

Use contrasting colors for user and AI bubbles so conversations stay easy to follow, and keep text contrast high enough to read comfortably.
3

Input tab

The message field where visitors type.

Placeholder text

Hint text in the empty input.

"Type your message…"

First AI message

The greeting your AI sends when chat opens.

"Hey there, how are you?"

Background color

Input area background.

Border color

Input field border.

Text color

Color of text as the visitor types.

Font size

Text size in the input field.

14px

Send button color

Color of the send button.

WidgetKraft: input tab, styled field with placeholder text
Styled input field with custom colors
4

Appearance tab

Widget dimensions and visual style.

Width

How wide the chat window appears.

400px default

Height

Vertical size of the chat window.

550px default

Background color

Main chat area background.

Background image URL

Optional custom pattern or image.

Border radius

Roundness of the chat window corners.

16px

Shadow

Adds elevation and separation from the page.

0 4px 12px rgba(0,0,0,.1)
WidgetKraft: appearance tab, dimensions, background, and theme
Dimensions, background, and theme customization

Theme presets

Default
Dark
Ocean
Sunset
Forest

Pick a preset to instantly apply coordinated colors across every element.

5

Knowledge Base

Define how your AI responds and what business information it can use.

Master prompt

This is where you define your AI assistant's identity, behavior, response style, and presentation.

  • Who the assistant is and what brand or business it represents
  • How it should answer, friendly, professional, concise, or detailed
  • How replies should be styled and structured for visitors
  • What business topics it should prioritize when answering
  • Any rules, boundaries, or fallback behavior it should follow

Example master prompt

"You are the official AI assistant for our business. Answer in a helpful, professional, and easy-to-understand tone. Keep responses clear and concise first, then add more detail when needed. Use our services, pricing, policies, and terms as the source of truth, and avoid guessing when information is unavailable."

WidgetKraft: AI tab, master prompt configuration
Master prompt and knowledge base setup

Knowledge sources

Add important business pages and URLs so the AI can answer with better context and more accurate information.

  • Pricing pages and plan details
  • Terms and conditions, privacy policy, and refund policy
  • Product, service, and feature pages
  • About, FAQ, support, and onboarding pages
  • Any business-specific documentation the AI should rely on

The more relevant sources you provide, the more confidently your AI can answer questions about your business, services, pricing, policies, and customer expectations.

WidgetKraft: knowledge sources for AI training

Prompt and knowledge base tips

  • Describe the exact tone and answer style you want the AI to use
  • Tell it whether replies should be short, detailed, persuasive, or support-focused
  • Add pricing, policy, and service pages as knowledge sources
  • Use real business information so the AI does not rely on generic answers
  • Update sources whenever your offers, terms, or policies change
6

Code, embedding the chatbot

Once configured, copy the embed snippet onto your site.

HTML
<div id="chatbot-root"></div>

<script src="https://cdn.widgetkraft.com/chatbot.js"></script>

<script>
  ChatbotWidget.init({
    widgetId: "aaaaaaaa-7777-4545-bbbb-112233445566"
  });
</script>
WidgetKraft: code tab, embed snippet with widget ID

Using the embed code

  1. 1Click Copy to copy the embed snippet
  2. 2Paste it before the closing </body> tag, so it loads on every page
  3. 3The chatbot appears as a floating button in the bottom-right corner
  4. 4Visitors click it to start chatting with your AI assistant

Integration notes

No backend required

The widget is fully hosted and managed.

Instant updates

Editor changes apply immediately to live widgets.

Mobile responsive

Automatically adapts to every screen size.

Fast loading

Optimized for performance with minimal page impact.

Saving and publishing

  • Click Save at the top to store your configuration
  • Changes apply instantly to your live chatbot
  • No need to update the embed code when making changes
  • Your widget ID stays the same across updates

What happens during conversations

When a visitor chats with your assistant.

AI processing

Messages are sent to Claude for context-aware responses.

Master prompt usage

Your custom master prompt guides every AI response.

Conversation history

Chat logs are stored in your dashboard for review.

Credit consumption

Credits are used per AI message generated.

Best practices for AI chatbots

Write a comprehensive master prompt

The more detail you provide about your business, the better your AI can assist visitors, product details, pricing, FAQs, and contact information all help.

Test your chatbot thoroughly

Ask a range of questions in the preview to confirm the AI responds accurately, then refine the master prompt from what you see.

Set clear boundaries

Tell the AI which topics to avoid or redirect. This keeps conversations on-topic and professional.

Use your brand voice

Define tone and personality, friendly, professional, casual, directly in the master prompt.

Match visual design to your site

Colors and styling that complement your website keep the widget feeling native, not bolted on.

Monitor conversations

Review chat logs regularly to spot common questions and improve the master prompt over time.

Summary

The AI Chatbot Widget lets you:

Add intelligent AI assistance to your website in minutes
Customize appearance, behavior, and AI personality
Provide 24/7 support without human intervention
Handle common questions and guide visitors automatically
Embed with a single script tag, no backend required
Update instantly without changing the embed code