I want to initialize bot data from service calls for around 6 to 8 entities as soon as Bot iwindow is opened by the user.
How can I achieve that?
I am using Kore.ai version 6.2.0.
I want to initialize bot data from service calls for around 6 to 8 entities as soon as Bot iwindow is opened by the user.
How can I achieve that?
I am using Kore.ai version 6.2.0.
@nehamsheikh I assume your requirement is to invoke a dialog (which makes service calls and then utilize the data present in the response at some entities you have in the same dialog or some other dialogs) when the bot is connected from the webSDK.
Invoke a dialog by sending the first message from webSDK to the bot at the event “onOpenWSConnection” present in the kore-bot-sdk-client file of webSDK.
Please refer to the topic :
In the invoked dialog, make the service calls as needed and store the required information present in the response data into the context variables.
The data should be available in the context variables depending on the time to last (TTL) configured for the variables and can be used throughout the bot including entities.