MyChat online-consulting system or website chat

  1. What is a website chat?
  2. What does a website chat must be able to do?
  3. Safe or free? We have a solution for both options!
  4. How to run a website chat?
  5. Examples

1. What is a website chat?

Website chat support

We all can agree that an opportunity to communicate with customers and have feedback from website visitors in real-time is an important part of our business.

A client looks at a company’s website, searching for needed product or service, and without leaving the page he can communicate with an operator to find out important things for himself, as same as he could do in the real store with the real consultant.

But the point is that all website chats are third-party services with paid or free functions. They ask you to add CMS widget or insert a special HTML code on a WEB page to run a website chat.

Yes, it’s easy to do, but only if you are not concerned about security issues. The real thing is that when you use third-party services, you give your agreement to save all messages between clients and operators on another server.

We take this question seriously and believe that conversations between your co-workers and clients are very too important and should not become a public domain.

2. What does a website chat must be able to do?

Live website chat helps you to expand your experience of communication in real-time with each client or visitor and must be able to do three important things:

  • To send text messages. The system must remember all visitors and show them previous messages history.
  • To make voice and video calls directly from the website without any plugins or Flash players (all web browsers systematically refused to use it). The ideal option is WebRTC, supported by all modern browsers.
  • To send images and documents. If a website chat has an option to send screenshots it will be a good additional feature for comfortable work (PrintScreen, Ctrl+V).

3. Safe or free website chat? We have a solution for both options!

Safety and availability inside one product: the free edition of MyChat Company Messenger with a free license up to 20 connections allows you to run a website chat with an unlimited number of operators. You can call, send text messages and documents. MyChat also has Windows/Linux/Mac OS/Android and WEB apps.

Download MyChat.

4. How to run a website chat?

Firstly, you have to install MyChat Server. Go to the an official support page to get a manual..

You must have an external IP address to connect users to your MyChat Server via the Internet. If you don’t know how to do it — go here.

MyChat has a built-in WEB server which works on the 80 TCP port without encryption (by default).

If you want to know, what port your browser uses, go to the WEB Administration Control Panel from MyChat Client menu item "Tools" -> "Server Administration" (Ctrl+F10). Notice, that this option will be available for users with administration rights only:

Then, in the browser, in the Admin Control Panel, open "Settings" -> "WEB services", and you will see your WEB server port:

You have to remember this port, because you will need it to connect website visitors to the website chat.

Let's use generation mechanism for website chat HTML code. Open "Tools" -> "Support button to website":

After this, create a local group for WEB support and add your chat operators, who will communicate with website visitors.

In the list of users select one or two users and press the “Get” button to get the HTML code and paste it into the website page.

Example of the button code:

<!--== MyChat Web Support ==-->
		<script type="text/javascript">
		(function () {
		  window.mc_uho_opt = {
			id    : "119368490_1932_6-13-6-600000000",
			text  : "Задать вопрос",
			position: "1",
			uin   : [3,30],
			url   : "", 
			secure: false
		  var run   = document.createElement("script");
		  run.type  = "text/javascript";
		  run.async = true;
		  run.src   = ( ? "https://" : "http://") + mc_uho_opt.url + "/chat/uho/supportUho.js";
		  var s     = document.getElementsByTagName("script")[0];
		  s.parentNode.insertBefore(run, s);}


  • id — generates automatically;
  • text — button caption;
  • position — button page position:

  • uin — one or more identifiers (separated by comma) to open the chat. If there is more than one operator — selection is random;
  • url — your server IP address or domain name (this value must be identical with the "Settings" -> "Network settings" -> "IP address or hostname for external clients" option. If this option is empty — just type your external IP address;
  • secure — use the HTTPS or not ("false" by default).

Finally, we have ready HTML code to paste it on the website. Open index.html file in the website manager and add the button code before the </body> closing tag.

Thus, you will get a “cross-cutting” button, which will appear on all website pages. If you need the button on specific pages, paste the code on them only.

5. Examples

Standard button HTML code may seem difficult to understand. But the point is that it only makes a text “window”, and behind the curtain, it has the link to your MyChat Server with a full set of parameters. Also, you can create your own design and functionality of the website chat button.

When a website visitor clicks on the button he will follow the link and open a new browser window.

Example of working website chat link on the MyChat developer website.

Link format:


  • Protocol: HTTP is used by default, if you use an encryption, type “HTTPS”.
  • Address: replace YOU_SERVER_IP_OR_HOST with your external IP address or a domain name of your MyChat Server.
  • Port: use PORT only if your WEB server works on non-standard port (80 port for HTTP protocol or 443 for HTTPS).
  • User identifier: UIN in necessary for website chat to know, which exactly operator window will open.

Example №1: standard HTTP port 80, IP address — and UIN — 55:

Example №2: non-standard port — 8080, host —, UIN — 12 and enabled WEB server traffic encryption:

As you can see, there is a port after the hostname and colon, because it's non-standard.

Example №3: enabled encryption, third level domain, UIN — 7 and your own button design:

<a href="" target="_blank">
		<img src="images/pretty_button.png" alt="mychat">

That’s all folks.

If you still have questions, then visit the official MyChat Support Forum. Our team is always ready to help.

Служба поддержки