This demo shows you how to use monitor tag and render department list directly. In this example, MyLiveChat ID is 68268000. You need to replace it with your own MyLiveChat ID.
- Use
chatapi.aspx to embed monitor tag and hide button/link/box.
-
Use
MyLiveChat.Departments method to get all departments
of your account.
-
Use
MyLiveChat.Departments[i].Agents[j].Online method
to determine whether the agent of Departments[i] is online.
-
Use
MyLiveChat_OpenDialog() method to show the chat
dialog or offline message window.