What is the difference between widget and iframe?

Last updated: February 12, 2026

ChatLab offers two ways to add a chatbot to your website: as a widget or as an iframe. Both use the same chatbot with the same training data and settings, but they differ in how the chatbot appears on your page.

Widget

The widget adds a chat icon to a fixed position on your page (bottom-right by default). Visitors click the icon to open a chat popup. The chat window can be closed back to the icon at any time.

Key characteristics:

  • Appears as a launcher icon in the corner of the screen
  • Opens as a popup when visitors click the icon
  • Stays available across all pages where the code is installed
  • Supports customization of the icon position, auto-open behavior, welcome message bubbles, and minimized display mode (Settings > Appearance)

Widget tab selected in Add to Website

Iframe

The iframe embeds the chatbot directly into your page content. The chat window is always visible and can be surrounded by other elements on the page.

Key characteristics:

  • Always visible on the page without needing to click an icon
  • Embedded in the page flow alongside other content
  • Adjustable size -- you can set the width and height attributes in the embed code to fit your layout
  • Best for dedicated pages where the chatbot is a central element, such as a support page or landing page

Iframe tab selected in Add to Website

Where to select widget or iframe

  1. Select your chatbot from the dashboard
  2. Click the Add to Website tab
  3. Choose the Widget or Iframe tab to see the corresponding embed code
  4. Click Copy to clipboard and paste the code into your website

Trying both modes

You can preview both modes without embedding any code. On the Overview tab, find the Try out & share row and click either link:

  • As always-open frame -- opens the chatbot in iframe mode
  • As openable widget -- opens the chatbot in widget mode with the launcher icon

Try out & share links on the Overview tab

For more about sharing these preview links, see Sending a link to your chatbot.

Which should I choose?

  • Choose widget if you want the chatbot available on every page without taking up screen space. Visitors can open the chat when they need help and close it when they are done.
  • Choose iframe if you want the chatbot to be a visible part of a specific page layout, such as a help center, contact page, or product page where the chatbot is always ready for interaction.