Install the AI chat widget on your website

Embed the Centerfy AI chat widget on any website with a single script tag.

The chat widget adds a floating chat button to your website that connects visitors to your AI chat agent. Paste one script tag before your closing </body> tag and the widget handles everything.

Get your embed code

  1. Open your chat agent

    Go to AI Agents, select your chat agent, and open the Agent Settings tab.

  2. Copy the embed code

    Copy the chat widget script shown on the page. It includes your assistant ID, organisation ID, and sub-account ID pre-filled.

  3. Paste on your website

    Add the script before the closing </body> tag on your website.

Embed code

<script
  src="https://aicrmpro.us/chat-widget.js"
  data-assistant-id="YOUR_ASSISTANT_ID"
  data-account-id="default"
  data-organisation-id="YOUR_ORGANISATION_ID"
  data-sub-account-id="YOUR_SUB_ACCOUNT_ID"
  data-color="#4c81ec"
  data-position="bottom-right"
  data-theme="light"
  data-show-prompt="true"
  data-auto-open="false"
  data-prompt-message="Chat with us"
  data-assistant-name="Assistant"
  data-button-icon="chat"
  data-greeting-message="Hi! I am {assistant_name}, ask me anything!"
  data-prompts='[]'
  data-animation="slide"
></script>

Configuration options

AttributeDescriptionValues
data-assistant-idYour AI agent’s IDUUID from agent settings
data-account-idAccount identifierdefault
data-organisation-idYour organisation UUIDFrom your agency workspace URL
data-sub-account-idYour sub-account UUIDFrom your sub-account URL
data-colorWidget accent colorHex code (e.g., #4c81ec)
data-positionButton position on screenbottom-right, bottom-left
data-themeColor themelight, dark
data-show-promptShow prompt bubble on loadtrue, false
data-auto-openAuto-open chat on page loadtrue, false
data-prompt-messageText in the prompt bubbleAny string
data-assistant-nameDisplay name in chat headerAny string
data-button-iconButton icon stylechat
data-greeting-messageFirst message shown when chat opens. Use {assistant_name} to insert the agent name.Any string
data-promptsSuggested prompt buttons (JSON array)'["Ask about pricing", "Book a call"]'
data-animationChat open animationslide, fade
Where do I find my assistant ID?

Open your agent in AI Agents and go to the Agent Settings tab. The assistant ID is displayed on the page and is also pre-filled in the embed code.

The widget isn't appearing

Check that the script is placed before the closing </body> tag and that data-assistant-id, data-organisation-id, and data-sub-account-id are correct. Open your browser console to check for errors.

© 2026 Centerfy AI. All rights reserved.