Skip to main content

Overview

The Widget simplifies the process of integrating a chat functionality on your website. As a developer, you only need to toggle the widget’s settings from our Dashboard and customize it to fit your needs. Within a few minutes, you can get started with our widget. The Chat Widget is available for the following platforms:
  1. HTML / Bootstrap / jQuery
  2. WordPress

Prerequisite

  1. Login to CometChat Dashboard and select your app.
  2. Click on the Chats tab, then select Widgets from the left navigation pane.
  1. You can create new widgets as well as see a list of existing ones here.

Features of Widget


WordPress / BuddyPress

Before getting started

Go through the overview to set up Chat Widget from the CometChat Dashboard.

Installation

  1. Download the CometChat Pro plugin.
  2. In WordPress Admin, go to Plugins → Add New.
  1. Click Upload Plugin, choose the zip, then click Install Now.
  1. After upload completes, click Activate Plugin.

Configuration

  1. Get App ID, Region, REST API Key, and Auth Key from CometChat Dashboard → Chats → Widget.
  1. In WordPress go to Settings → CometChat Pro, then set:
  • App ID
  • Region
  • REST API Key
  • Auth Key
  1. Click Update Settings. The logged-in WordPress user will be registered in CometChat.
  2. Choose layout:
    • Embedded Layout
    • Docked Layout

Embedded Layout

Use the shortcode to load the Chat Widget in embedded layout. Configure keys as needed.
Replace WIDGET_ID with your Widget ID.
Configurable keys: Optional parameters:

Docked Layout

Use the shortcode to load the Chat Widget in docked layout.
Replace WIDGET_ID with your Widget ID.
Configurable keys: Optional parameters are the same as embedded layout (default-username, default-id, default-type, rounded-corners).

Show docked layout on all pages

  1. Go to Settings → CometChat Pro in WordPress.
  2. Paste the docked shortcode under Load CometChat Pro on all pages/sitewide? to show it everywhere.

Advanced Features

Open or close chat window

Chat with a particular user

Chat with a particular group

Initiate calls with a particular user

Initiate calls with a particular group

Message Listener

Chat open state listener

Chat closed state listener

Localization

Supported languages include: en, zh, es, hi, ru, ar, pt, ms, fr, de, sv, lt, hu.