Upgrading

What changes between versions, and what to do about it.

Browser or server Both dev · https://api.dev.oprag.ai

The SDK is at 0.1.0 and pre-1.0, so minor versions may still change shapes. Pin an exact version until 1.0 if that matters to you.

Moving off the CDN script tag

The script tag and mountWidget render the same widget, so the migration is configuration, not behaviour.

Script attributemountWidget option
data-projectprojectId
data-embed-keyembedKey
data-api-urlapiUrl
data-inlinetarget
data-primary-colortheme.primaryColor
data-positiontheme.position
data-theme-modetheme.mode

If you were reading answer directly

Older client code that read res.answer without checking res.type still works for the answer branch and breaks the first time a project's smart lead capture fires. Add the branch — see client: chat.

Ready to ship?

Get started free