vaSystem.endConversation VS the "End" node

s1li_ucsd
Tera Contributor

Hello all,

I am rewriting the Fallback Topic for our organization, and listening in on the webinar from 7/5/2023 titled "Conversational Interfaces Academy: Improve the Virtual Agent fallback experience for better service".

 

In this webinar, Tricia shows the structure of her customized Fallback Topic, which includes a Script Action called "Close Conversation" that flows to the End node.

 

She did not click on the node during the webinar to show us the script embedded within, but I did find a "Close Conversation" Script Action node in the oob "Closing Conversation" setup topic, and all it appears to do is end the conversation:

 

(function execute() {
vaSystem.endConversation();
})()
 
My question is, why would she use a Script Action for this purpose? Why would Tricia add a Script Action node to close the conversation instead of just connecting that branch to the End node? Is this a best practice, to end a Conversation using that Script Action instead of just connecting branches to End?
1 REPLY 1

Community Alums
Not applicable

Hi @s1li_ucsd ,

 

I have the same query, were you able to find an answer?