How to get different closing message for liveagent vs chatbot

Debosree Sinha
Tera Contributor

Hi All,

i’m trying to separate closing message of VA chatbot vs liveagent window.

I have used a decision to split to branches based on vaSystem.didConnectToLiveAgent().


But, I ended up having  similar closing block ( both aftef finishing VA chatbot as well as live agent unavailable case). Also separate liveagent specific closing message when agent are available.

 

my requirement is to have closing msg for live agent( both available as well as unavailable) and a separate closing for VA chatbot.

5 REPLIES 5

I observed that when i'm in Live Agent window, then a text comes up -'Hello! Please provide a brief description of your issue today.'

I checked the chat transcript and check if this above text comes up to identify live Agent window and branch out based on that decision.

 

(function execute() {

vaVars.transcript =vaSystem.getTranscript();
if(vaVars.transcript.indexOf(vaVars.va_closing) != -1) {
vaVars.Flow_switch = 'LiveAgent';
} else {
vaVars.Flow_switch= 'VA';
}

})()