CHATBOT

Testing your chatbot

Validate behavior before production traffic.

Org dashboard

  • Test Bot — HTTP diagnostics with confidence and routing.
  • Test Real Chat — production WebSocket visitor experience (no diagnostics).
  • Webhook test — fire sample action delivery from org portal.

Smoke load scripts

  • After you deploy the backend, run scripts in StartUpCore-Backend/scripts/chatbot-live-smoke/:
  • connection-smoke.mjs — bootstrap + WebSocket + ping
  • message-smoke.mjs — parallel HTTP fallback messages
  • reconnect-smoke.mjs — close and reconnect
  • Set API_BASE_URL, WEBSOCKET_URL, PUBLIC_KEY, BOT_ID. Low concurrency only — not a million-connection benchmark.

Allowed domain test

  • Load embed from listed origin → session creates successfully.
  • Load from unlisted origin → 403 in network tab.

Local vs production

  • Dev: localhost API widget bundle + localhost API base URL.
  • Prod: cdn.kiwool.com (or cdn.startupcore.com) + production API; only production domains on allow list.