When should I use JavaScript Scripting?
A viabl.ai JavaScript Script is used when data needs to be retrieved, saved or manipulated. The results can be used to auto-answer Questions used in your knowledge or otherwise used as an output of your application.
Examples include:
- Performing an arithmetic calculation
- Access data structures (e.g. copy values from a JSON string to an Attribute to use in Decision making)
- Performing text pattern matching functions using a text processors (e.g. using regex)
- Implementing algorithms to process an array of data (e.g. sorting or finding the gradient of a line)
- creating custom connectors to access 3rd party Web Services and enterprise applications
Low-code Scripting alternative is also available via XpertScript Scripts which can be used by non-programmers to perform simpler scripting tasks an to invoke JavaScript Script Objects.