Use Script node to include a Groovy script. It can be used to achieve comlicated functions, such as editing variables, detect whether user input achieve certain requirements, etc.
The following script provides the simplest example. It assigns 2 to variable "a". Variables with assigned values can be used as nodes' entering conditions. For more details, see Variables below.
The next example is more complex. This script detects whether the user input captured by Wildcard node is a number, and stores the result in the variable "isNUmber". Then the Bot says node uses the "isNumber" variable to tell user whether the input is a numebr or not.
In the following example, create a card list with the script, and store it into the "sentence" variable. The script node will output the card in the chatbox.