Back to Web SDK OverviewKore.ai SDK libraries use a WebSocket channel to communicate with the Platform. When using the Kore SDKs, you only need to generate and pass a JWT token to the client SDK — the SDK handles the rest.This page documents the WebSocket initialization flow, RTM events, and error codes for reference and custom client implementations.
Pass Custom Data to the BotIn addition to the message body, you can send custom JSON data to the bot using the customData object. This capability is available for both Web SDK and direct WebSocket integrations. For more information, see How to pass customData to bot from SDK?Return Custom Data in Bot ResponsesBot responses can also include custom JSON data in addition to the message content. Use the Advanced JavaScript Editor to add custom JSON to text, standard template, or custom template responses. Client applications can consume this data through available Web SDK or WebSocket events and process it separately from the user-visible message.
Event: /botKitUnreachable — Sent to the WebSDK when BotKit is unreachable. Default message: "Sorry, there was an error in continuing the conversation. Please retry." Developers can customize this message.
{ "type": "botKitUnreachable", "from": "bot", "botInfo": { "chatBot": "new bot hangouts", "taskBotId": "st-f3ad01a6-..." }, "message": "Sorry, there was an error in continuing the conversation. Please retry.", "traceId": "c070f2b7de24xxxx", "timestamp": 1693394943443}
Event: /form_delivered — Triggered when a form is delivered to a user.Event: /form_submitted — Triggered when a user submits a form.Event: /form_failure — Triggered when a form fails for any reason.All form events share the same payload structure:
Event: /agent_session_start — Triggered when chat is handed off to an agent.Event: /agent_session_end — Triggered when the agent conversation ends.Both share the same payload: