There are two types of scripting supported by the Viabl.ai Platform:
In general, XpertScript should be used to implement procedural "expertise" (such as calculations) in a transparent manner whilst JavaScript should be used for more complex data manipulation algorithms and for implementing integration with third party Web Services.
Special JavaScript Objects can act as "Functions" which can be invoked from the menu-driven XpertScript editor. This allows the business user to continue with their knowledge authoring knowing that any necessary JavaScript functionality can be implemented at a later stage by a person with the necessary programming skills.