Skip to main content
You can integrate the CometChat UI Kit Builder widget into your Webflow site by using the built-in Embed element in the Designer. Once installed, it will:
  • Load and initialize the widget on page load
  • Automatically log in a predefined user
  • Display a docked chat window on your site

Quick Steps to Embed CometChat Widget

1

Register on CometChat & Gather Your Keys

Before you begin, sign up at the CometChat Dashboard and create a new app. Copy:
  • App ID
  • Region
  • Auth Key
2

Open the Webflow Designer & Add an Embed

  1. In your Webflow project, open the Designer.
  2. From the Add panel (A), drag the Embed component onto your page where you want the widget to appear.
3

Include the Chat‑Embed Script in Project Settings

  1. In the Webflow Dashboard, navigate to Project Settings → Custom Code → Head Code.
  2. Paste:
  3. Save changes and Publish your site.
4

Embed the Widget Container & Init Script

Back in the Designer, with your Embed component selected, click Edit Custom Code and paste:
Replace <YOUR_APP_ID>, <YOUR_APP_REGION>, <YOUR_AUTH_KEY>, and COMETCHAT_USER_UID with your actual credentials and user ID.
5

Publish & Test

  • Click Publish in the Designer to push your changes to the live site.
  • Visit your published site to confirm the widget loads.
6

Troubleshooting

  • Widget not loading?
    • Verify your App ID, Region & Auth Key.
    • Check the browser console for errors.
  • Login fails?
    • Ensure COMETCHAT_USER_UID exists under Users in your CometChat Dashboard.
  • Embed blank?
    • Make sure you republished the site after adding custom code.

Advanced JavaScript APIs

Once the widget is loaded, interact with it via the global CometChatApp object:

Chat and Call Methods

UI Event Listeners

User and Group Management

Authentication Methods

Storage Methods

Localization

With language localization, our Chat Widget adapts to the language of a specific country or region. Chat Widget allows you to detect the language of your users based on their browser settings and set the language of the widget accordingly. You can also set the language manually using the CometChatApp.localize method. The CometChat App supports localization for multiple languages, allowing you to provide a tailored experience for users across different regions. You can find the list of supported languages and their corresponding language codes below:
It takes the following parameters:

Need Help?

If you have questions or run into issues, reach out to CometChat Support.