Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

Building an entire embedded chat ("chat bar")

$
0
0

Hiya,

 

we're a new LivePerson.net customer and evaluating the product currently to see if it fits our needs.

 

We're not going to use the "standard Chat" (popup window) but are building our own embedded chat for our websites using the Chat API (JS).

 

Currently I'm having a trouble in "catching" the invite/engage signal from the agent.

 

If the agent sends an invite/engage, the invitation picture from LP appears, from the Monitor Tag.

 

I've read your (old) documentation regarding the Monitor Tag Deployment FAQ:

https://base.liveperson.net/hc/s-5296924/cmd/kbresource/kb-742580270609226312/!DOWNLOAD?entryid=317941&attachid=28129

 

I tried different things, like:

 

lpMTagConfig.defaultInvite = function() {

     alert("Invite received");

};

 

- or -

 

lpMTagConfig.invitePlace = function(objID, divStyleRef) {

     alert("ObjId: "+objId+"\nDivStyleRef: "+divStyleRef);

};

 

But it didn't work out.

 

 

What I want to do is simple:

If an agent (operator) send an invite/engage request, I don't want the default routine to work (the picture from LP) but to have my JS function called which executes my custom code to handle the invite/engage request. Which function has to be created for this?

 

To accept an invite request, the function will be:

requestChatFromInvite();

 

But which function to call for refusing a chat (that the agent console shows "No Chat") and the invite is stopped?

 

As I wrote already to my LP key account manager(s), I'll surely come back with more questions regarding your API so we can build our embedded chat.

 

Cheers,

Sven


Viewing all articles
Browse latest Browse all 2324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>