Client API methods
Send information about the visual state from the client app to the dialog script
setVisualState(visualStateData:object)
Send data or perform actions without a voice command
projectAPI.method = function(p, param, callback) {
p.userData.data = param.data;
callback();
};
callProjectApi(method:string, data:object, callback:function)
Play a text message in the client app
playText(text:string)
Send a text message to Alan as the userâs input
sendText(text:string)
Execute a command in the client app
playCommand(command:object)
Comments