Use this checklist when the widget does not appear, appears twice, cannot verify identity, or behaves differently across pages.

For broader customer questions about setup, training, operations, billing, and security, search the Kommander FAQ. For behavior that changed between releases, review the changelog.

Quick Checks

  • Confirm the page includes https://app.kommander.ai/chatbot.js.
  • Confirm window.initKommanderChatbot runs after the script load event.
  • Confirm the embed uses the correct userId or organizationId.
  • Confirm only one root layout, CMS footer, or tag manager injects the snippet.
  • Confirm browser extensions, CSP, or ad blockers are not blocking the script.
  • Check the browser console and network panel before changing code.

Common Issues

ProblemLikely causeFix
Widget does not appearScript blocked, wrong load order, or missing initializer.Load the hosted script, then call initKommanderChatbot in the script load event or next/script onLoad.
initKommanderChatbot is undefinedInitialization ran before chatbot.js finished loading.Move initialization into the script load callback.
Widget appears twiceSnippet exists in both a layout and tag manager, or a React effect runs repeatedly.Keep the embed in one stable shell and de-duplicate script loading.
Wrong assistant answersIncorrect userId or organizationId.Copy the current snippet from Kommander.ai and redeploy.
Styling looks brokenHost CSS is leaking global button, input, svg, or div styles.Scope host CSS and override only .kommander-* classes when necessary.
Widget is hidden behind another elementHost overlay or cookie banner has a high z-index.Lower the host overlay or move it away from the launcher area.
Mobile window overflowsHost CSS overrides viewport sizing or safe-area spacing.Remove broad CSS overrides and test below 640px width.
Identity works locally but fails in productionDifferent secret, serialization, timestamp, or server clock.Compare exact payload bytes and verify NTP clock sync.
Customer-data tools are missingIdentity verification failed or userHash is absent.Check the identity payload and HMAC secret in Settings > Identity Verification.

Content Security Policy

If your site uses CSP, allow the hosted script and stylesheet:

Content-Security-Policy: script-src 'self' https://app.kommander.ai; style-src 'self' 'unsafe-inline' https://app.kommander.ai https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' https://app.kommander.ai;

Adjust the policy to match your existing nonce or hash strategy. If your CSP disallows all inline scripts, move initialization into your bundled application code.

Identity Debugging

When HMAC verification fails:

  1. Log the exact payload string your server signed.
  2. Log the timestamp and signatureEncoding.
  3. Log only a short signature prefix, never the secret.
  4. Confirm production and staging use different secrets intentionally.
  5. Confirm the previous secret has not passed its 7-day grace period.

State Debugging

The widget uses browser storage for conversation continuity. To test a clean first visit, use an incognito window or clear storage keys beginning with kommander_ for the host domain.

Use forceReset: true only for intentional identity transitions. Repeated forced resets can create unnecessary new conversations and make debugging harder.

Support Packet

When escalating an issue, include:

  • Host page URL.
  • Browser and device.
  • Widget script URL and response status.
  • Redacted initialization options.
  • Console errors.
  • Network request status codes for widget API calls.
  • Whether the visitor is anonymous or signed in.