Prerequisites
- An SDK API key. This is provisioned by the Cor team. See Authentication.
Add the snippet
Paste this into your app’s HTML, ideally just before the closing</body> tag. You can also add it through a tag manager such as Google Tag Manager.
How it loads
The snippet does two things:- Sets up a
window.ObiSDKcommand queue right away, so calls you make before the widget finishes loading are not lost. - Looks up the latest
obi-sdkversion and loads it from the CDN.
window.ObiSDK("update", ...) immediately after the snippet.
Allowlist these domains
If your app uses a Content Security Policy, allow these hosts so the widget can load:| Host | Purpose |
|---|---|
registry.npmjs.org | Resolve the latest SDK version |
unpkg.com | Load the SDK bundle |
app.coragents.ai | Talk to the Cor backend |

