HELP!

Executing Viabl.ai Platform Objects

Object Inference is typically triggered by including the Object in another Knowledge Object (e.g. Question inside a Decision Tree or a Decision Tree inside another Decision Tree). However, there maybe situations where the Object needs to be executed from within a script. (e.g when Looping around the Object).

The .run() Object method can be used to execute the inference of Viabl Platform Objects (Question, Decision Tree, Script, Dialog, etc.) from within a JavaScript Script

#MyQuestion.run(); 
#MyDecisionTree.run(); 
#MyScript.run(); 
#MyDialog.run(); 

Please note that the () brackets following the run method are required.

On This Page