Our Client SDK allows your application's front-end to communicate with MindCloud. It handles secure user authorization, renders the modal, and exposes methods to install, edit, update, and manage workflows for your end users.
To install it, please include this tag in your HTML page headers:
<script src="https://embedded.mindcloud.co/assets/embedded/sdk.1.0.0.min.js" type="text/javascript" />
After including the script tag, initialize the SDK:
const mindCloud = window.MindCloud();
Since the SDK acts on behalf of your end users, you must create an end user and generate a short-lived token before using the SDK.