The closing conversation script is not working

DNC
Tera Contributor

The closing conversation script is not working. Instead of the closing conversation it is showing ending lines.
i have tested the topic using the test button also, it is showing only line.

 

(function execute() {
var result;
if (vaInputs.user.first_name.getDisplayValue()) {
return gs.getMessage('Thank you {0} for the chat, I am here to help you anytime!',[vaInputs.user.first_name.getDisplayValue()]);
} else {
return gs.getMessage('Thank you for the chat, I am here to help you anytime!');
}
})();
 
Kindly help me to correct this scripting.
 
Thanks
Nagarjuna
1 REPLY 1

dgarad
Giga Sage

Hi @DNC 

Refer to the below link.

https://www.servicenow.com/community/virtual-agent-nlu-forum/end-conversation-running-twice/td-p/275...

https://www.servicenow.com/community/virtual-agent-nlu-forum/virtual-agent-always-ending-conversatio...

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad