Execute Cloud Script Action

Use this action to execute standard Javascript code on our cloud side. The Javascript code can contain any construct and will have available all of the conversation objects.

Settings

The action uses the following settings:

Remarks

Xenioo cloud scripting action uses Javascript as a server side scripting language to extend even further your chatbot functions.

The conversation object, injected in every execution, exposes multiple methods that can be used to interact and alter the current conversation results and variables as well as manage database connections.

The Javascript source is evaluated as a single block. You are free to use functions and standard object methods. ECMAScript 3 and ECMAScript 5 functionality, including ES5 strict mode are supported by the current runtime.

A fixed 5 seconds timeout is applied to every script execution. If your script exceeds this time, it will be forcefully terminated. Given the speed of the Xenioo runtime, 5 seconds is more than enough to execute great a number of operations.

Trigger

This action does not trigger any event.

Variables

This action produces the following variables:

After execution, script_result may hold one of the following values:

Availability

Channel specific availability follows the table below:

This action can be used only inside interactions and not as child of other actions. This action requires a Premium Account to be used on a live chatbot.

Last updated