Skip to main content
Once you’ve tested your Integration and are happy it works, you are ready to embed it into your website. This is done by adding a Javacript snippet to your website. You can find this by visiting the Integrations page and clicking Get Code. The instructions to embed the widget into your website vary by type.

Chatbox

Copy and paste the code into your website’s HTML, just before the closing </body> tag. You may also be able to insert the code in other locations. A button to launch the widget will automatically appear in the bottom right hand corner of your website.

Dialog

This integration has two steps: adding the script, and adding a trigger button.

Add the widget script

Add the code just before the closing </body> tag in your HTML. You may also be able to insert the code in other locations.

Add the trigger button

Dialog widgets require trigger buttons. Add the swiftquery-dialog-trigger class to any element on your page. Example:
<button class="swiftquery-dialog-trigger">Ask a Question</button>
You can use any element (button, link, div, etc.) and customize the text and styling. The widget will automatically detect all elements with the swiftquery-dialog-trigger class.