Skip to main content
You want to embed your custom trained AI support agent in your W3Schools Spaces website page. Here’s how to add an AI support agent to W3Schools Spaces with SiteSpeakAI. W3Schools Spaces is a collaborative workspace designed for learning and community engagement. It’s a platform built by the creators of W3Schools, offering a space for users to connect, share knowledge, and participate in discussions related to web development and related topics. You can find more information here: W3Schools Spaces

Add your AI support agent to your W3Schools Spaces website

In SiteSpeakAI

Select your chatbot from the dropdown menu at the top, click on the Install Agent section in the sidebar, then click on the Copy Code button to copy your code snippet. Copy code snippet

In W3Schools Spaces

  1. Log into your W3Schools account, select Spaces on the dashboard and then select your website
  1. On the website editor page, select index.html (or any other html file, if you have added more pages to your website)
  1. You will now have a split display with the index.html code on the left pane and the webpage preview in the right pane. Scroll down in the left pane to just before the ending </body> tag
  1. Insert a blank line just above the </body> tag and insert your AI support agent snippet. When done, click on Save and then on Run to see your changes in the preview pane. Your AI support button will appear on your page
  1. If you click on the button it will display your support agent dialogue
  1. If you click on the View in a new tab button, it will display your website in a new tab as a full webpage
  1. Your AI support agent button will now be displayed on your W3Schools Spaces website page
  1. If you click on the button it will display the AI support agent dialogue
Your AI support agent has now been added to your W3Schools Spaces website and your visitors/customers can start interacting with it!

Ready to automate your customer service with AI?

Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.
Last modified on March 3, 2026