To get started with Doks.ai, simply go to the Doks.ai dashboard and follow the two-step onboarding process:
- Step 1: Enter project details
- Step 2: Connect sources like website URLs or sitemap
After completing the onboarding process, you can embed widget on your website using a script code.
Note: Currently file uploads like pdf, csv, txt etc feature is in development phase.
Prerequisites
Before you install widget, make sure that you’ve connected and trained your chatbot using one of the provided ways. Without it, the AI chatbot won’t work.
Installation
Steps to install the widget on your website:
- Go inside Project.
- Click on the Embed section.
- Customize the widegt as per your requirement.
- Now, copy and paste the generated
<script>
code which will look like this:
<script src="https://app.doks.ai/widget.js" id="YOUR_PROJECT_ID"></script>
<script is:inline>
Doks.init({
projectId: "YOUR_PROJECT_ID",
interface: "message",
trigger: "floating-button", // "floating-button" or "custom" for custom add "doks-ai-trigger" in id of a div
openAs: "popover", // "popover" or "dialog"
position: "right", // "right" or "left"
})
</script>
When embedding the chatbot, it is mandatory to provide a list of ”Whitelisted Domains” to ensure that the chatbot is only embedded on authorized domains and sub-domains. The ”Whitelisted Domains” field can be found in the Configuration section inside Playground.