Chat4 Owner Helper for properties(hotels, villas) owners, Online Support Chat, Web-Widget, Online Reception, Viber, Telegram, Messenger

CHAT4 API

API

CHAT4 allows you to control the behavior of the widget using the available API functions
By default, the Chat Widget is displayed collapsed with slided welcome message. This can be changed in the widget's HTML code settings using the data-state parameter.
Using the API, you can open or close the chat window, open the channels panel, make the widget invisible

On each page of your site with an embedded Chat Widget, you have access to a global instance of chat4Widget with which you can use the API, for example chat4Widget.openChat();

API methods

Open Chat

chat4Widget.openChat(); - calling this method will open (maximize) a web chat window
Click here to see how it works

Close Chat

chat4Widget.closeChat(); - calling this method will close (minimize) a web chat window
Click here to see how it works

Hide Widget

chat4Widget.hideWidget(); - calling this method will hide Chat Widget
Click here to see how it works

Show Widget

chat4Widget.showWidget(); - calling this method will show Chat Widget
Click here to see how it works

Open Channels Panel

chat4Widget.openChannelsPanel(); - calling this method will open Widget Channels Panel
Click here to see how it works
Try CHAT4 today
Service that is always with you
No credit card required • Free plan available • No website required
Incoming Audio/Video call
Chat
Name Name