> ## Documentation Index
> Fetch the complete documentation index at: https://info.invictai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Widget and embeds

<Info>
  This feature is available exclusively for Pro, Business, and Enterprise
  customers.
</Info>

The Widget and Embed feature allows you to integrate your Invicta AI agent into a
chat widget or an embed window on your website. This enables users to interact with
your agent directly on your site, without the need for sign-up, providing a seamless
experience similar to the ChatUI on the Invicta AI platform.

<img src="https://mintcdn.com/invictaai/rLU6J79e0_1ZhRdX/platform-capabilities/widget.png?fit=max&auto=format&n=rLU6J79e0_1ZhRdX&q=85&s=81e89ceeab99b5a2fbee305a063b5e42" className="rounded-xl" alt="Widget" width="2530" height="1528" data-path="platform-capabilities/widget.png" />

## Setting Up Widget and Embed

Follow these steps to set up the Widget and Embed feature:

<Steps>
  <Step title="Change Agent Visibility">
    Go to the Agent's Builder and change its visibility to "Widget/Unlisted".
  </Step>

  <Step title="Customize Widget">
    Click the "Customise Widget" button that appears. Select an accent color for
    the agent to match your brand. You can preview the widget in real-time.
  </Step>

  <Step title="Save the Agent">Save your changes to the agent.</Step>

  <Step title="Access Share Options">
    Open the agent's info window and click the "Share" button.
  </Step>

  <Step title="Copy Integration Scripts">
    You will see scripts for embeds and chat widgets. Copy the appropriate
    script and integrate it into your codebase.
  </Step>
</Steps>

## Functionality

The agent within the widget/embed functions similarly to the regular ChatUI, capable of:

* Responding to queries
* Using tools
* Invoking AI teammates

<Note>
  **Key differences in widget/embed functionality:** <br />

  1. **Steps** like "Knowledge Base retrieved", tool uses, or AI teammate invocations
     are not displayed. <br />
  2. **Credits** for agent usage within the widget are deducted from the agent's
     author, not the end-user.
</Note>

## Analytics

* You can view chat logs with your agents in the analytics page.
* Monitor agent usage across all platforms (widget, Invicta AI platform, etc.) in the analytics page.

<Info>
  Chat Logs Analytics feature is available for Pro, Business, and Enterprise
  customers.
</Info>

<Check>Usage analytics are available for all customer tiers.</Check>
