HELP!

How to I use JavaScript code in my knowledge-base?

JavaScript code can be included in any of the following:

  • Contained in a Script Object
  • Embed Scripts in Decision Flow Tree branches
  • Contained in an Object Event (e.g. OnCapture)

Use the Add Scripting (JavaScript) tool under Advanced Tools for adding Script Objects and Embedded Scripts. Object Events can be added via the Edit Advanced Settings.

If you are familiar with the JavaScript language then you also need to be aware of a number of special techniques that allow JavaScript to access Viabl.ai Platform Object data and other Viabl.ai Platform functions. For example, a panel in the JavaScript editor lists all the Viabl.ai Platform Objects available for use with JavaScript Scripts and you can drag-and-drop Objects from the panel into the main editor window.

For more information see Using JavaScript in the Viabl.ai Platform

On This Page