Contains template code that can be added to a website to integrate with Copilot Studio. University branded and vetted for accessibility.
This was generated as part of the IT ProForum 2026 presentation. Links are at:
- https://itproforum.illinois.edu/eventdesc/1-spring-2026/1-1pm/from-idea-to-agent-building-your-first-chatbot-with-copilot-studio/
- https://go.illinois.edu/itpf2026-resources
- index.html: template that has the chatbot information
- chatbot.js: JavaScript that contains chatbot connection information
- chatbot.css: CSS style that contains chatbot styling
- bot.png, user.png: sample graphic files to show up in the chatbot
index.html needs to have the following:
<script>
generateEndpoint(' ** token endpoint here ** ');
generateBotAndUserImages(' ** bot image here ** ', ' ** user image here ** ');
</script>
You get the endpoint by going to Copilot Studio Agent and choosing Channels --> Email. Copy the token endpoint for this.
You can start the chatbot by calling showChat() on a button click. Note that when this starts, it will use a Copilot Credit, so only do this when the user wants to intiate a chat. Do not run this on window.load().
