First, please make sure that you have configured the domains for your websites. To integrate your chatbot with Google Tag Manager, you will need the code to be found in → under "Website" → "Website Integration".
Copy the API key from your code. The API key does not correspond to the whole block of code that you can copy, it is only the part marked in bold:
Paste the API key into the following placeholder named API_KEY and copy the section into your Tag Manager:
var script = document.createElement("script");
script.src = "https://chat.aiaibot.com/bootstrap.js";