Skip to main content

How to Embed Your Chatbot on Your Website

With TeamAI, you can seamlessly integrate a personalized AI chatbot into your site, ensuring that your customers receive timely assistance.

Written by Abdul Samad

Overview

This guide explains how to embed your TeamAI chatbot on your website to enhance user engagement and provide instant support to visitors. You'll learn two different integration methods: iframe embedding and popup implementation.

Learning Objectives:

  • Access the chatbot embedding options in TeamAI

  • Implement iframe embedding for in-page chatbot placement

  • Set up a popup chatbot that appears in the corner of your website

  • Verify proper chatbot functionality after implementation

Prerequisites

You'll Need:

  • Access to your workspace with agent management permissions

  • A configured TeamAI agent ready for deployment

  • Access to edit your website's HTML code

  • Basic understanding of HTML implementation (helpful but not required)


Accessing Embed Options

Navigating to Website Integration

  1. In the left sidebar, open Agents

  2. On the agent row or card, open the options menu (⋯), then click Edit.

  3. Do not click Use Agent; that opens a chat session, not the editor.

  4. In the agent editor, click Channels in the left sidebar (below tabs such as General and Tools).

Note: You need permission to edit the agent to see Edit in the options menu. If Edit is missing, ask a workspace admin to grant edit access or to configure the embed for you. The agent must be published before the embed works on a live site.

Choose a website embed option

  1. On the Agent Channels page, select the Website channel

  2. Pick an embed type:

    • Iframe: embed the agent inline on a page.

    • Popup: show a chat bubble (typically bottom-right).

  3. Copy the embed code TeamAI provides.

  4. Paste the code into your site HTML.

  5. Open the live page and confirm the agent loads and responds.

Publish and test

  1. Confirm the agent is published (not draft-only) before testing the embed.

  2. If the widget does not appear, verify embed code placement and that you edited the correct agent.


Verifying Implementation

Testing Your Embedded Chatbot

  1. Open your website in a browser

    • Navigate to the page where you implemented the chatbot

    • Ensure the page has fully loaded

  2. Confirm the chatbot appears correctly

    • For iframe: Check that the chatbot appears in the designated area

    • For popup: Verify the chatbot icon appears in the bottom-right corner

  3. Test chatbot functionality

    • Interact with the chatbot by sending a test message

    • Confirm the chatbot responds appropriately

    • Test any specific features your chatbot should provide

Result: A properly functioning chatbot that enhances your website's user experience.

Important: If your website uses a Content Security Policy (CSP), you may need to update it to allow content from TeamAI domains.


Best Practices

  1. Choose the right embedding method: Select iframe for dedicated support pages and popup for general website presence.

  2. Customize appearance: Use the TeamAI interface to match your chatbot's appearance to your website's branding.

  3. Test across devices: Ensure your chatbot works well on desktop, tablet, and mobile devices.

  4. Monitor performance: Review chatbot analytics regularly to improve effectiveness.

Common Questions

Q: Can I customize the appearance of the chatbot?
A: Yes, you can customize colors, chat bubble text, and other appearance settings in the TeamAI interface before copying the embed code.

Q: Will the chatbot work on mobile devices?
A: Yes, the embedded chatbot is responsive and adapts to different screen sizes.

Q: Can I have different chatbots on different pages of my website?
A: Yes, you can embed different chatbot agents on different pages by using the corresponding embed codes.

Q: How do I update my chatbot after embedding?
A: Changes made to your agent in the TeamAI platform will automatically reflect in the embedded chatbot without requiring code changes.

Q: Does embedding a chatbot affect my website's loading speed?
A: The chatbot loads asynchronously, minimizing impact on your website's performance.

Q: Can I control when the popup chatbot appears?
A: Yes, advanced settings allow you to control timing, triggers, and initial messages.


Did this answer your question?