Skip to main content

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

NameDescriptionTypeRequired
appIdApp ID received from Predis.ai account.Stringyes
embedTokenA token generated with the provided SSO key to enable Single Sign-onStringno
customAssetsAn 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.Arrayno