0.0.9 • Published 5 months ago
@glass.props/sentient v0.0.9
Sentient by Glass
Widget for interacting with the Glass product intelligence platform.
Usage
Install using npm
Install sentient package by running the command.
$ npm i @glass.props/sentient
Import and setup the sentient widget.
import Sentient from '@glass.props/sentient';
Sentient.init({
apiKey: <apiKey>,
});
Install as script
Add sentient package script in your html body. Load the sdk and provide the api key generated.
<script
defer
src="https://unpkg.com/@glass.props/sentient/dist/sentient.umd.min.js"
></script>
<script>
window.sentientOnLoad = function () {
Sentient.init({
apiKey: <apiKey>,
});
};
</script>