Scripts and Managed APIs
The DataSapien Mobile SDK makes use of an embedded JavaScript Engine and the DataSapien Orchestrator features a capable Script Editor with code completion support. Using the web-based Script Editor, you can author scripts on the Orchestrator and deploy them to the Mobile SDK to be executed on-edge, seamlessly integrated with your UX.
Managed APIs
A Managed API specifies the credentials and access details for an external API. With scripts, you can: connect, authenticate to, and consume any defined Managed API. This is extremely powerful in its simplicity. It makes the entire digital infrastructure accessible to you in a secure and controlled manner. You can consume any public or private (including your own proprietary) API and process the fetched response as required.
Mobile SDK Services and On-Device AI
The DataSapien Mobile SDK provides functionality via well-defined services. All the functionality offered by these services can be invoked by scripts that you author.
One notable service that scripts have access to is the Intelligence Service. The Intelligence Service provides a generic interface to download and invoke provisioned ML/AI models. This enables you to make an ML/AI function call at any place where a script can be executed.
Script execution places
The DataSapien Mobile SDK can execute scripts in the following places.
Script Based MeData Definitions
One powerful feature of the DataSapien Platform is its ability to create your own MeData Definitions aligned with your business needs. Among others, Script-Sourced MeData Definitions allow you to execute scripts to collect MeData.
Script based MeData Definitions allow you to collect data from virtually any source: if it has an API and is accessible via a network, you can use it as a MeData source thanks to the DataSapien Platform.
Scripts in Journeys
Journeys allow you to design end-to-end flows within your application, complete with custom screens and logic. Using Script Steps in Journeys, you can access Journey-scoped variables (such as an answer collected from a custom screen), call an API or change the order of flow. Scripts enable you to implement any business idea and end-user interaction, since they let you implement the logic in whichever way you require.
Executing Scripts as Rule Actions
MeData-based Rules can trigger actions when they are evaluated and their condition are met. Among other action types, Script Actions can execute your authored logic.