Chat Widgets

Once you have created an AI Agent, you can embed it directly into your own website using our Chat Widget.

Quick Start

  1. Register Your Website Domain: For security, enter your website's domain on the Widget Sites page. This whitelisting prevents unauthorized websites from embedding your agent and consuming your resources.

  2. Ensure Public Visibility: Because visitors on your website interact with the widget without logging in, make sure your agent's visibility is set to Public on the Agents page.

  3. Copy the HTML Snippet: Click on the Widget button on any agent card or details page to copy the embed snippet:

<script type="module" src="https://widget.aish.li/widget.js" async></script>
<ai-chat agent="your-account/your-agent" max></ai-chat>

Paste this HTML code into your webpage (for example, right before the closing </body> tag) to display the interactive chat assistant to your users.