Docs menu
Quick Start
Get the SDK running on your page.
The SDK puts GNR AI's post creation on your website or in your web app. This page is everything you need to get it running.
Step 1: Get an App ID
- Sign in or make an account.
- Go to Brand & Accounts → API & SDK, press Set up SDK, and copy the App ID.
- Add your website under Allowed websites — the editor only opens on the sites listed there.
Step 2: Set up the button
HTML
Add the script to the head of your page.
index.html
<script
type="text/javascript"
src="https://gnraisolutions.com/sdk/embed.js"
async
defer
crossorigin="anonymous"
></script>Launching the editor
Open the post creator by calling createPost once the SDK is ready:
const gnr = new window.GNR();
// Register callbacks before initialize() so initialisation errors are caught
gnr.on("ready", () => {
// open the GNR AI post creator
gnr.createPost({
onPostPublish: function (err, data) {
if (err) {
console.error("Error publishing post:", err);
} else {
// the published post's data
console.log("Post published:", data);
}
},
});
});
gnr.on("error", (error) => {
console.error("SDK error:", error);
});
gnr.initialize({ appId: "YOUR_APP_ID", embedToken: "SSO_TOKEN" });💡 Editing API-made posts
💡 Try it first
Signed in, open SDK demo: it runs this exact code with a demo user.