Website Integration

 

Add aiaibot script tag

After you have configured your domains for your website, you can add the aiaibot script tag to your website to integrate the aiaibot chatbot. You can find the script tag under Settings -> Chatbot in the Website Integration section.

 

Please add the script tag directly before the closing-body-tag </body> on your website as in the following example.

 

<html>
 <head>
    <title>Your Website</title>
 </head>
 <body>
    <!-- ... -->
    <script type="text/javascript" src="https://chat.aiaibot.com/bootstrap.js" data-aiaibot-key="<your-key>" defer></script> 
 </body>
</html>

 

 

Customize Content-Security-Policy (CSP)

If needed, add the aiaibot domains to your Content-Security-Policy (CSP):

frame-src *.aiaibot.com
default-src *.aiaibot.com
Was this article helpful?
4 out of 5 found this helpful