microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
870 stars 372 forks source link

Issue still not resolved with Array Property and Branch Switch #9011

Closed HugzBatman19 closed 2 years ago

HugzBatman19 commented 2 years ago

To whom it may concern,

I recently posted some issues I had building a Smoothie Constructor through Bot Framework Composer. I have taken all advice and implemented is as follows. However, it does not produce the required result. I can send through the file if somebody would like to test it on their end (if that is allowed). Essentially, the bot asks the user what fruit they would like in the smoothie. The answers are stored in an array (dialog.answers). A branch switch then decides that if the array has certain answers e.g Apple, Pear, then it will spit out a value e.g ApplePear, in which the bot will send a reply. I previously attempted to use a user array so that I could have the SmoothieConstruction for collecting the answers, and then a separate dialogue - perhaps called SmoothieAnswer that would provide those answers so that I could have one dialogue for questions, and one dialogue to deal with Answers, and the properties would survive since they were user properties.

image

image

image

image

image

image

image

breakingram commented 2 years ago

Investigating this.

breakingram commented 2 years ago

Hi @HugzBatman19

I created a sample composer project with the basic given requirements mentioned above.

Here is the link to the repo: https://github.com/ramfattah/SmoothieBot (clone this repo and open the .sln in composer)

This is the bot output:

breakingram commented 2 years ago

Also, the Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow.  The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.