This demo shows you how to use monitor tag and render chat agent 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[i].Agents method to get all agents
of the specific department.
-
Use
MyLiveChat.Departments[i].Agents[j].Online method
to determine whether the specific agent is online or not.
- Integrate online and offline agents to web site page
-
Use
MyLiveChat_OpenDialog() method to show the chat
dialog or offline message window.