Installing the SDK
Learn how to set up the Foldspace SDK in your product in no time. Grab the JavaScript Snippet to easily get started
Installing the Foldspace SDK to Your SaaS Product (SPA/MPA)
This call is nonblocking and will not impact the product or website’s performance
The JavaScript Snippet can be found under Agent Studio > Setup
Make sure you copy the snippet from the product settings page that has both your PRODUCT-KEY and your AGENT-NAME
<!-- DO NOT COPY THIS SNIPPET!!! -->
<body>
<!-- Your HTML content goes here -->
<script type="text/javascript">
(function (w, d, u, n, k, c) {w[n] =w[n] ||function () {(w[n].q = w[n].q || []).push(arguments);};
w.__FOLD_SPACE__ = n;w[n].k = k;w[n].c = c;var s = d.createElement('script');s.async = true;s.src = u + '?k=' + k;
var h = d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s, h);
})(window, document, 'https://script.eucerahive.io/web/sdk/eucera.js', 'foldspace', 'PRODUCT-KEY');
foldspace('when', 'ready', () => {
foldspace.agent('AGENT-NAME').show();
})
</script>
</body>
Updated 2 days ago