Operator chat widget: embed the chat panel into your system
The operator chat widget puts the SMSBAT operator chat panel inside your own web system, for example your CRM, ERP or internal admin panel. Operators can then answer customers without switching to chat.smsbat.com. In the dashboard you create the widget, set its look and languages, and copy a ready embed code that your developer adds to the page.
The widget is for operators, not for website visitors. For a chat window that customers see on your website, use Live Chat.
Before you start
- The organization must have operators. The panel works on behalf of one operator.
- Your developer needs access to the SMSBAT Chat API to create an operator token for the embed code, see Operator authorization and deep links.
Where to find the widgets
- In the left menu of omni.smsbat.com open Integrations.
- Click Operator chat.
The page shows a table of your widgets with the columns Name and Organization. Click the arrows next to a column name to sort by it. Click a row to open the widget (on a phone, press Details on the widget card).
Above the table there is a filter bar. Press Filters to show or hide it and Clear filter to reset it.
| Filter or button | What it does |
|---|---|
| Name | Finds widgets by name. |
| Organization | Shows widgets of one organization. |
| Remove | Deletes the widget selected with the round radio button in its row. |
| Create | Opens the form for a new widget. |
If there are no widgets yet, the table shows No suitable data.
Step 1. Create a widget
-
Press Create. The Create window opens.
-
Fill in the form:
Field What to enter Name A name that tells you where the widget is used, for example “CRM”. Required. Client Visible to SMSBAT administrators only: the client account the widget is created for. Organization The organization whose operator will use the panel. Required. Language switcher visibility Turn it on to show a language switcher in the panel. Activator button color The color of the button that opens the panel. Locales The interface languages available in the panel: Ukrainian, English. Default locale The language the panel opens in. -
Press Create. The button stays inactive until Name and Organization are filled in.
The message Successfully was created appears and the widget is added to the table.
Step 2. Configure the widget
Click the widget in the table. The widget page shows its Name, Organization and settings, and the embed code at the bottom.
-
Press the green pencil button in the top-right corner to switch to editing.
-
Change the settings:
Setting What it does Name The widget name. Required. Organization Shown for information. It cannot be changed after the widget is created. Language switcher visibility Shows or hides the language switcher in the panel. In view mode, ✓ means on and ✕ means off. Theme light color The main color of the panel in the light theme. Theme dark color The main color of the panel in the dark theme. Activator button color The color of the button that opens the panel. Locales The languages offered in the switcher: Ukrainian, English. This field appears only when Language switcher visibility is on. Choose at least one. Default locale The language the panel opens in. -
Press the green ✓ button to save, or the grey ✕ button to cancel the changes.
After saving, the page returns to view mode with the new values.
Note
The widget is saved only when at least one locale is chosen. If Locales is empty, turn on Language switcher visibility, choose a language in Locales, and press ✓ again.
Step 3. Copy the embed code
At the bottom of the widget page there is a dark block with the embed code. It already contains the settings of this widget: the language switcher, the colors, the locales and the default locale.
- Press Copy in the top-right corner of the block. The button changes to Copied!.
- Send the code to your developer, or paste it into the page of your system where the panel should appear.
The code contains token="YOUR_FRESH_TOKEN". This is a placeholder: before the panel can work, it must be replaced with a valid operator token. The token defines which operator the panel signs in as. How to get it and how long it is valid is described in Operator authorization and deep links. Embedding options for websites and web apps are described in Widget integration.
Warning
An operator token gives access to the operator’s chats. Your system should generate it on the server for the signed-in employee. Do not publish a token on a public page.
When you change the widget settings, copy the code again and replace it in your system.
How the panel works with chats
The widget does not add a new channel. Customers keep writing to you through the connected channels (Viber, bots, WhatsApp, Live Chat, Facebook, Instagram, marketplaces), and their conversations reach your operators in the chat workspace. The embedded panel gives the operator, whose token is in the code, the same chat panel inside your own system.
How operators take, answer and close conversations is described in How to handle a conversation. Working hours, auto-replies and notifications for chats are set in Chat settings.
Delete a widget
- In the table select the widget with the round radio button in its row.
- Press Remove.
- Press Confirm in the window “Are you sure to confirm?”.
The message Successfully was deleted appears.
Common questions
What is the difference between Operator chat and Live Chat? Operator chat is a panel for your employees inside your own system. Live Chat is a chat window for customers on your website.
The panel does not open on my page.
Check that YOUR_FRESH_TOKEN in the code was replaced with a valid operator token and that the token has not expired. See Operator authorization and deep links.
I pressed ✓, but the widget did not save. Choose at least one language in Locales. The field is visible only when Language switcher visibility is on, and Name must not be empty.
I changed the colors, but the panel on my site looks the same. The settings are part of the embed code. Copy the code again from the widget page and replace the old code in your system.
Can I move a widget to another organization? No. Organization cannot be changed after the widget is created. Create a new widget for the other organization.
The Create button is inactive. Fill in Name and choose an Organization.