1. Home
  2. Kore.ai Conversational Platform
  3. Bot Builder Tool
  4. Bot Settings
  5. SDK Configuration

SDK Configuration

To enable your Kore.ai Bot to communicate between your application servers and Kore.ai servers, you need to create and register an app in Kore.ai Bot Builder that specifies the callback URL for your application, and generates the Client ID and Client Secret authentication tokens required for secure communications between your application and any Bots in your developer account. This topic describes how to create an app and generate registration credentials when using the Kore.ai SDK.

To access webhooks and messages in Dialog tasks, you need to subscribe to an app for your bot. All messages from the bot and user are sent to the SDK as message events. When a Webhook node is defined in a Dialog task, the webhook event is sent to the SDK at runtime. You must install, host, and configure the Kore.ai SDK in your network to allow communications between the bot event messages and webhooks, and your application.

To create an app

  1. Hover over the side-navigation panel of the bot, and click Apps & Agents. The BotKit SDK tab opens by default.
  2. On the BotKit SDK page, click the Add button next to the App Name drop-down list. The Create App dialog opens.
  3. In the App Name field, enter the name of the app registration, for example, SDK App, and then click Next.
  4. The Client ID and Client Secret are generated along with the App Created Successfully message.
  5. Click Done. The following fields appear.
  6. In the Callback URL field displayed, enter the URL for your application that you want Kore.ai to push data to, for example, https://koremessenger.com/postURL.
  7. In the Events section, select one or more of:
    • OnMessage – Triggers an event when a message from a user is received.
    • OnHookNode – Triggers an event when a WebHook node is encountered in the Dialog task flow.
    • OnAgentTransferNode – Triggers an event when an Agent Transfer node is encountered in the dialog task flow.
  8. Click Create Credentials.

The new app registration along with credentials is displayed in the SDK Configuration section.

Was this article helpful to you? Yes 1 No