This topic describes how to register your application and generate credentials for you clients that are required to exchange messages between your application and the Kore.ai Bots Platform.
When you register your app, you will need to select a security algorithm:
- HS256 – Bot Builder generates and displays the Client ID and Client Secret necessary to generate the JWT token from your server.
- RS256 – You upload your public key to the platform and use the private key to generate the signature from your server.
To register an app
- Open the bot to which you want to add the Web/Mobile Client channel.
- Select Deploy tab from the top menu
- From the left menu, click Channel > Web/Mobile Client.
- In the Select App drop-down list, select your existing app registration or click Create App to create a new app.
- In the Name field, enter the name for the app registration used in Bot Builder, for example, My App Registration.
- Select one of these scopes for the app:
- Allow anonymous users to chat with the bot: enables anonymous users to interact with the bot.
- Auto register new users on Kore.ai Bots Platform: Select to control the auto-user registration in Kore.ai if the user assertion is unknown.
- In the JWT Signing Algorithms Used For Client App Authentication drop-down list, select one of the following security algorithms:
- RS256: Select to enable the Public Key field. The Public Key is used by the Kore.ai Bots Platform to authenticate the client application.
- HS256: Select to generate a Secret Key and a Client ID. The Client ID is required for SDK initialization, and the Secret Key used by the Kore.ai Bots Platform to authenticate the client application.
- Optionally, In the Push Notifications section, click Enable and then specify a URL to send the notifications to.
- Click Create. The app registration details appear.
- To copy the app registration details to the clipboard for your application, you can click Copy for Bot Name, Bot ID, and Client ID. For Client Secret, click View, and then click Copy.
- In the Allow Alert Task Setup section, Select Yes to enable your application users to set up their own alert tasks using the web client. By default, this setting is disabled for web client users, but mobile client users can always setup their own alerts.
- In the Enable Channel section, select Yes to enable the channel immediately after saving.
- Click Save to save the settings and close the Web/Mobile Client Channel page.
The Channel Information updated successfully message is displayed on the top-right corner of the page.