Skip to content
Documentation
Docs/EMBED

Embed Troubleshooting for AI Chatbot Websites

Fix CDN, mount, config, mode, and styling issues.

Common Issues and Fixes

IssueLikely CauseAction
window.ChatbotSDK is not availableWidget script did not loadConfirm chatbotsdk-web.iife.js loads successfully, then run mount() after that script tag.
Widget renders unstyledStylesheet is missing or blockedConfirm chatbotsdk-web.css is loaded on the page and not blocked by browser or site settings.
Widget does not start after adding a keyMissing or empty chatbotKeyUse a valid non-empty key copied from My Chatbots.
Widget stops after adding custom optionsA display option was placed outside configKeep chatbotKey for your bot, then place mode, title, showPoweredBy, and styleOverrides inside config.
Widget still shows previous behavior after an updateThe page is loading an older copied fileConfirm both chatbotsdk-web.css and chatbotsdk-web.iife.js load directly from https://cdn.cortexvia.in and that you are not mixing them with older self-hosted assets.
Chat area appears before the widget is readyThe page shows its chat area before the widget finishes loadingKeep your own loader visible until config.onReady runs, then reveal the chat area.
Inline chat not visibleTarget container has no heightGive container explicit height in mode: "chat".
Widget still shows old embed behaviorPage is reusing an older snippet or loading an older SDK includeReplace the page code with the latest minimal embed snippet from docs and retest after removing older copied SDK tags.

Fast Debug Checklist

text
1) confirm chatbotsdk-web.css loads on the page
2) confirm chatbotsdk-web.iife.js loads on the page
3) confirm chatbotKey is present and valid
4) confirm custom options are grouped inside config
5) confirm both SDK asset URLs load from https://cdn.cortexvia.in and not from an older local copy
6) confirm mode is exactly "chatbot" or "chat"
7) for mode "chat", confirm host container has fixed height
8) test the minimal embed snippet, then add options one by one

Minimal Test

html
<link rel="stylesheet" href="https://cdn.cortexvia.in/chatbotsdk-web.css" />
<script src="https://cdn.cortexvia.in/chatbotsdk-web.iife.js"></script>
<div id="cv-chat"></div>
<script>
window.ChatbotSDK.mount("#cv-chat", {
chatbotKey: "ctx-cb-xxxxxxxxxxxxxxxx",
config: {
mode: "chatbot"
}
});
</script>

If this test works, add options gradually: title, avatars, and then styleOverrides.

Stability Practice

Keep the stylesheet and script URLs paired from the latest CDN files. If the widget still looks old after an update, replace older copied tags or files with the current docs snippet.

Related References