Upgrading
What changes between versions, and what to do about it.
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 attribute | mountWidget option |
|---|---|
data-project | projectId |
data-embed-key | embedKey |
data-api-url | apiUrl |
data-inline | target |
data-primary-color | theme.primaryColor |
data-position | theme.position |
data-theme-mode | theme.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