Skip to content
Website Integration

Embed AI Chat on Your Website

Add a smart AI chatbot to any website in minutes. Copy one line of code, paste it, and watch your website come alive with 24/7 intelligent customer support. No coding skills needed.
  • One-line embed code - just copy and paste
  • 4 display modes: bubble, sidebar, push, drawer
  • Customize colors, position, and branding
  • Works on any website: WordPress, Shopify, Wix, custom HTML
  • Create reusable chat themes for consistent branding
Beginner Friendly

What is Widget Embedding?

Think of it like putting a smart helper on your website. When visitors come to your site, they'll see a friendly chat button. They click it, and boom - they're talking to your AI chatbot who knows everything about your business. Explore real-world use cases across industries or get started free.

No Technical Skills Required If you can copy and paste text, you can embed our chat widget. We designed it so anyone - even complete beginners - can add AI chat to their website. Most people finish in under 10 minutes.

How to Embed Your Chat Widget (5 Minutes)

Follow these simple steps to add AI chat to your website. No coding experience needed - if you can copy and paste, you can do this!
  1. Create Your AI Chatbot

    First, you need a chatbot to embed. Use our simple wizard to create one - just give it a name, add your website URL (so it learns about your business), and pick a personality template. The whole process takes about 5 minutes.

    Tip: Pro tip: Add your sitemap.xml for complete coverage of all your pages. Your chatbot will automatically learn from everything on your site.

  2. Open the Widget Configurator

    Once your chatbot is created, go to your chatbot's page and click the "Widget" button. This opens our visual configurator where you can see exactly how your chat will look on your website - in real-time!

    Tip: The configurator shows a live preview on the right side. Every change you make appears instantly so you can experiment freely.

  3. Choose Your Display Mode

    Pick how you want the chat to appear on your website. Bubble mode shows a floating button (most popular). Sidebar slides in from the side. Push mode moves your content to make room. Drawer pulls up from the bottom (great for mobile).

    Tip: Not sure which to pick? Start with Bubble mode - it's the most familiar pattern for website visitors and works great on both desktop and mobile.

  4. Customize the Appearance

    Make the chat match your brand! Pick your brand color (used for the button and accents), choose the position (bottom-right is most common), and adjust the sidebar width if you're using sidebar modes.

    Tip: Want even more customization? Create a Chat Theme to add welcome modals, starter prompts, background patterns, and more. Themes can be reused across multiple chatbots.

  5. Get Your Embed Code

    Click the "Get Embed Code" button. You'll see a simple script tag that looks something like this. Just copy it to your clipboard.

    Tip: The embed code includes all your customization settings. If you change settings later, you'll need to update the code on your website.

    HTML
    <script>
      window.gnosariConfig = {
        agentUri: 'your-agent-uri',
        apiUrl: 'https://gnosari.com',
        displayMode: 'bubble',
        position: 'bottom-right'
      };
    </script>
    <script src="https://gnosari.com/widget.js"></script>
  6. Paste on Your Website

    Add the embed code to your website. Paste it just before the closing </body> tag. For WordPress, use a plugin like "Insert Headers and Footers" or add it in your theme customizer. For Shopify, add it to theme.liquid. For Wix, use the Embed HTML element.

    Tip: Done! Refresh your website and you'll see the chat widget. Click it to test - your AI chatbot is now live and ready to help your visitors 24/7!

Universal Compatibility

Works on Every Website Platform

Whether you built your site with WordPress, Shopify, Wix, or custom code - our embed works everywhere. Don't see your platform? No worries - our embed works on any website that supports JavaScript.

4 Ways to Display Your Chat Widget

Choose how the chat appears on your website. Each style works best for different situations - pick the one that matches your site's design.
  • Bubble ModeA floating chat button in the corner of your page. Click it, and the chat window pops up. This is the classic style you see on most websites - familiar and easy to use.
  • Sidebar ModeThe chat slides in from the side as a panel. Great for websites where customers need to chat while browsing. The chat stays visible next to your content.
  • Push ModeLike sidebar, but it actually pushes your website content to make room. Nothing gets covered - your page adjusts to show both chat and content side by side.
  • Drawer ModeThe chat slides up from the bottom like a drawer. Perfect for mobile websites where screen space is precious. Feels natural on phones and tablets.
Design Feature

Create Reusable Chat Themes

Design your chat's look once, then apply it to all your chatbots. Chat themes let you customize colors, welcome messages, conversation prompts, and more - all in one place.
  • Color ThemesPick from 10+ beautiful color palettes or create your own brand colors.
  • Welcome ExperienceSet up welcome modals, greeting messages, and first-time visitor experiences.
  • Conversation PromptsAdd starter prompts and follow-up suggestions to guide conversations.
  • Background PatternsAdd subtle patterns like WhatsApp to make your chat feel unique and branded.

How to Create a Chat Theme

Design beautiful, on-brand chat experiences in just a few clicks. See changes instantly with our live preview.
  1. Go to Chat Themes

    Navigate to Chat Themes in your dashboard sidebar. Click "Create Theme" to start designing your custom chat experience.

    Tip: Themes are reusable - create once and apply to multiple chatbots. Perfect if you have several chatbots that should all look the same.

  2. Choose Your Color Palette

    Pick a color theme that matches your brand. We offer 10+ beautiful pre-designed palettes, or you can create a custom color. The color affects buttons, links, accents, and gradients throughout the chat.

    Tip: See your color applied instantly in the live preview on the right side of the screen!

  3. Design the Welcome Experience

    Configure what visitors see when they first open the chat. Add a welcome modal with a headline and call-to-action, set an AI greeting message, and customize the empty state before any messages are sent.

    Tip: Welcome modals are great for explaining what your chatbot can help with. First impressions matter!

  4. Add Conversation Prompts

    Help visitors start conversations with suggested prompts. These are clickable questions that appear in the chat - visitors click one and the AI responds immediately. Great for showcasing what your chatbot can do.

    Tip: Add 3-4 starter prompts that cover your most common questions. This helps visitors who aren't sure what to ask.

  5. Add Background Pattern (Optional)

    Make your chat feel unique with a subtle background pattern - like WhatsApp's chat backgrounds. Choose from dots, waves, grid, or other patterns. Adjust the intensity to keep it subtle.

    Tip: Patterns add personality but keep them subtle - you don't want them to distract from the conversation.

  6. Save and Apply

    Give your theme a name and description, then click Create Theme. Now you can apply this theme to any of your chatbots. When you update the theme, all chatbots using it will update automatically!

    Tip: Create themes for different purposes: "Customer Support" with a welcome modal, "Sales Assistant" with product prompts, etc.

Everything You Need for Perfect Embedding

Our widget system is designed to work seamlessly on any website while giving you complete control over the look and feel.
  • One-Line Embed CodeJust copy and paste a single script tag. No npm packages, no build steps, no complex configuration. Works on any website that supports JavaScript.
  • 4 Display ModesBubble (floating button), Sidebar (slide-in panel), Push (moves content), and Drawer (bottom sheet). Each mode is fully responsive and touch-optimized.
  • Full Brand CustomizationMatch your website perfectly with custom colors, positioning, and sizing. Create reusable themes for consistent branding across all your chatbots.
  • Live PreviewSee exactly how your chat will look as you configure it. Every change appears instantly in the preview - no guessing, no surprises.
  • Lightweight & FastUnder 50KB script size. Loads asynchronously so it never slows down your website. Global CDN delivery for fast loading worldwide.
  • Privacy ControlsControl who can access your chatbot. Set it to public, password-protected, or private. GDPR-compliant with optional data collection settings.
Common Questions

Embedding FAQ

Common questions about embedding your AI chat on any website.

Still have questions?

Our team is here to help you get started.

How do I embed an AI chatbot on my website?

Create your chatbot using our wizard (5 minutes), open the Widget Configurator, choose your display mode and colors, click "Get Embed Code", and paste the script tag into your website's HTML before the closing body tag.

Does the embed code work on WordPress?

Yes. You can add the embed code via a plugin like "Insert Headers and Footers", through your theme customizer, in page builder HTML blocks, or by editing footer.php directly.

What is the difference between display modes?

Bubble Mode: floating chat button in the corner. Sidebar Mode: slides in as a side panel. Push Mode: moves your page content to make room. Drawer Mode: pulls up from the bottom, ideal for mobile.

Will the chat widget slow down my website?

No. The embed script is under 50KB and loads asynchronously, so it does not block page rendering or affect Core Web Vitals. We use a global CDN for fast delivery worldwide.

Can I have the chat on only certain pages?

Yes. Instead of adding the embed code site-wide, add it only to specific page templates. In WordPress, use conditional tags; in Shopify, add to specific template files instead of theme.liquid.

Ready to Embed AI Chat on Your Website?

Create your chatbot, customize the design, and go live in minutes. Your visitors will thank you for the instant, helpful responses.