HELP!

How do I prevent the code in my Objects from being viewed from the Browser?

This question is only applicable to Dialog-based application Deployments i.e. it does not apply to Silent or Chat-based Viabl.ai Platform applications which are fully executed on the server anyway.

One of the unique features of Viabl.ai Platform Dialog-based knowledge-bases deployed applications is executing the entire application as JavaScript in the end-user's Web Browser. This distributes any large server load (which would otherwise be on placed server) when a large number of users access the deployed application at the same time - thus enabling exceptional usage scalability.

As a by product of this feature, JavaScript code relating to the application (e.g. for Knowledge and Script Objects) can be viewed in the end-user's Web Browser development tools. Thus an experienced and motivated software engineer may be able to view (and possibly even reverse-engineer) some sensitive knowledge-base content such as rules and algorithms. For example, a price calculation, a script for accessing a web-service containing access keys, etc. To overcome this, individual Objects in a Dialog-based Viabl.ai Platform knowledge-base can be designated as Run on Server, thus keeping any JavaScript code relating to those Objects away from the web Browser.

image descr

Objects that are designated as "Run on Server" can read all Catalog Objects fully (including their properties) but can only assign the values of Objects themselves (but not their properties).

On This Page