initialize
Create an object from Predis.ai SDK.
Usage
const predis = new window.Predis();
predis.initialize({
appId: "YOUR_APP_ID",
embedToken: "SSO_TOKEN", // optional, to enable SSO
customAssets: [{ url: "some_image_url" }], // optional, to pass images inside the Predis.ai post generator
});
Parameters
Name | Description | Type | Required |
---|---|---|---|
appId | App ID received from Predis.ai account. | String | yes |
embedToken | A token generated with the provided SSO key to enable Single Sign-on | String | no |
customAssets | An array of objects with image URLs. If passed in the config, these images show up in the post generation flow and can be used to generate a post. | Array | no |