I'm building a bot with bot framework composer (V2)
I want to create a multiple choice action, with choices that I get from a API call.
Api Choices
[
{
"id": 0,
"name": "One",
"active": true
},
{
"id": 1,
"name": "Two",
"active": true
},
{
"id": 2,
"name": "Three",
"active": true
},
{
"id": 3,
"name": "Four",
"active": true
},
{
"id": 4,
"name": "Five",
"active": true
}
]
I assume that you are able to call API and got the data in array format, suppose it got stored in dialog.response
.
So what you need to do is,
dialog.choices
in Array of choices
I have tested this flow till the bot sent card with multiple choice.