How can I run an Instant Messaging Applet on my web site?
I have seen a number of web sites that allow Instant Messaging sessions to be opened directly from the web site to members of that organizations sales or support teams?
Is this possible with GMS Instant Messenger and if so how do I do it?
Yes. This is straightforward to set up and you can see a working copy of this feature on our website at http://www.Gordano.com
by clicking on the "IM Sales" button on the top right hand side of the index page.
This feature has proved to be very popular with customers who are in need of maintaining a direct "presence" online for both prospective and existing customers to be able to easily contact staff.
To get this facility operational on your own web site you will need to write one MML page and one HTML page, examples of both are given below.
In these examples I have called the MML page "im.mml" and this page needs to be placed in the MML directory on the server running GMS. This server does need to be accessible from the Internet. This MML script is then called from any web server using an anchor tag as shown in the example HTML file which I have called "callim.htm".
You should be able to run the HTML file on any web server. It does not have to be a GMS server or even a server on the same network as GMS.
The accounts user1, user2 etc. specified in the MML file need to be set up on the GMS server, and are the
accounts to be used for the anonymous access (the customers). The passwords for those accounts need to match the passwords specified in the MML page so change as necessary.
The syntax in your MML is as follows – useremailaddress:userpassword:displayname. So in the example below:
the logon will take place for "user1" with a password of "password" and the user will display in Instant messenger as "guest1".
Any preferences set for these accounts
will apply to the IM client opened for the customer so please set permissions appropriately.
The accounts staff1, staff2 etc. defined within the MML file need to be real user accounts within the company. These should be the staff or people that you want to handle the IM calls from customers as they come through.
If a member of staff listed is not logged on to GMS Instant Messenger the applet will not try and contact them. They will also not be contacted if they are marked as busy, away from their desk etc. within GMS Instant Messenger. Staff should change their IM status appropriately throughout the day.
Example MML File
(Should be saved in the gordanomml directory)
Example HTML File
(Should be saved on your web site as callim.htm)
If your web server is behind a firewall, you will need to open port 8367 to allow IM traffic.
Keywords:Instant messaging applet web site im www imsales website