To install an Agent on your website using the Standard widget use the following code snippet:
HTML
React.js
Next.js(App Router)
Next.js(Pages Router)
Angular.js
Vue.js
<script type="module">
import Chatbox from 'https://cdn.mu.chat/embeds/dist/chatbox/index.js?v=2';
Chatbox.initStandard({
agentId: 'YOUR_AGENT_ID',
});
</script>
<muchat-chatbox-standard />
Replace YOUR_AGENT_ID with the ID of your Agent
You can find the Agent ID in the Agent settings under the Settings tab.
See all the available attributes in the Chatbot Reference.