Script

The script node allows including custom functions that can be used to process the user conversations. By default, the application supports java-script in the Script node. Store the end of the node in a variable named "result", such that the response of the node can be consumed in other nodes using the node name. Use the standard formats to define the text to be displayed in the chat conversation.

A sample flow demonstrating the Script node, and response in the conversations. In the example below, the assign node is defined with a variable called result and that is set with the text "This text is set in the result variable". The response of the assign node is called in Text node "DisplayScript" to display the result of the script node.