Create a multi-select button in kore.ai

Hi,
I am trying to create a multi-select button, where the user can select two or more values then submit their choices.

I have tried creating a list of items (enumerated) entity where I turned on “Is multi-item.” I am only allowed to select one option.

Also, I tried creating a message using the javascript button template, but unfortunately, I am still unable to select the multiple items. (please see code below). If anyone has experienced this issue, please feel free to share.

var info = [“Button1”, “Button2”, “Button3”];
var message = {
“type”: “template”,
“payload”: {
“template_type”: “button”,
“text”: “Please tell me what about your item is incorrect. \nSelect all that apply.”,
“subText”: “Button Template Description”,
“buttons”: []
}
};
for (i = 0; i < info.length; i++) {
var button = {
“type”: “postback”,
“title”: info[i],
“payload”: “payload1”+(i+1),
};

/* Uncomment this if the button is to redirect to url
 var button = {
 "type":"web_url", // type can be "postback" if
 "url":"URL_TO_REDIRECT",
 "title":buttons[i]
 };
 */

message.payload.buttons.push(button);

}
print(JSON.stringify(message));

Hi @tacarey,

Please refer to the below community post that is similar to the above use-case:

Kindly let us know if you need any further clarification on the above.

Regards,
Yoga Ramya.

Hi @yogaramya.mendu,

I am a bit unclear on the steps. I have not published the bot; I am still designing. As well I have not downloaded the bot kit. Is there a way to access the SDK folder for a non-published bot? If not will I have to download the SDK bot builder kit for the web?

Thanks for your response.

Hi @tacarey,

Please refer the following document link which illustrates on integrating with Web SDK

https://developer.kore.ai/docs/bots/sdks/kore-ai-web-sdk-tutorial/

Also, you will need to publish the bot once the web/mobile client channel is set up.

Regards,
Yoga Ramya.