To embed the AI chatbot on an external website or app:
- Go to KB settings > AI chatbot. The AI chatbot settings page opens.
- Under the External website embed section, select Add domain and enter your full website or app domain. Follow these guidelines:
- Include the domain's protocol (
http://orhttps://). - If you don't add a port number, the embed will use default port 443 for an https: domain and port 80 for an http: domain.
- To allow the chatbot to use a different port number, add a port number at the end of the domain using a colon followed by the port number, for example:
https://mydomain.com:3000. The port must match exactly the port you wish to use. - Add multiple domains or use the * wildcard (such as for multiple subdomains on the same domain, for example:
https://*.mydomain.com).
- Include the domain's protocol (
- Save your changes.
- Under the Embed code section, copy the Basic embed code.
- Add the embed code before the closing
</body>tag of your external website or app. Once you've saved it there, your AI chatbot will appear on your external website or app.
Authentication may be required
If your knowledge base is private or if you want to allow access to restrict content, you must set up either JWT or OAuth 2.0 chatbot authentication.