Script embed
GET https://answers.bootstrapware.co/embed/v1.js serves the versioned IIFE. A non-React page mounts the same component.
<div id="answers"></div>
<script src="https://answers.bootstrapware.co/embed/v1.js"></script>
<script>
BootstrapwareAnswers.mount(document.getElementById("answers"), {
presentation: "launcher",
});
</script>mount returns an unmount function. Calling it again on the same element updates props. BootstrapwareAnswers.unmount(el) removes it.
Pass appId and publishableKey and the script calls Hosted ask. No adapter function is required. suggestedQuestions renders starter chips. shortcut such as mod+k opens the widget and focuses the question (Command on macOS, Control elsewhere). Do not put a secret key or a provider key in that script.
BootstrapwareAnswers.mount(document.getElementById("answers"), {
appId: "ana_…",
publishableKey: publishableKey,
suggestedQuestions: ["What is your return window?"],
shortcut: "mod+k",
});Related: Script guide · React component