Adding Quack AI to your website
Adding the Quack AI SDK to your website is just a few simple steps.
Step 1
Add the following single line of code to your HTML.
This script tag will load the Javascript required to render the widget.
Step 2 (optional)
To identify a user, call this function when you obtain the user’s id or email. If the user is meant to stay anonymous, there’s no need to call this function.
That's it! See below for some examples. Note that this is to identify the user on the frontend so that conversation history is preserved.
It's highly recommended to make the User ID an unique unguessable value (like an UUID).
Step 3 - If Chat is enabled (optional)
Last updated