cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MCG87
Regular Visitor

PVA Chatbot Factorial Conditions

Hello All,

 

I am trying to build a chat-bot in Teams that can be used in classroom / educational simulations. When the bot is started, it asks a question and the user is presented with 8 multiple choice options which creates 8 conditions to contain the variable for the selected response. Depending on the response, the user selects I want the bot, in the next question, to present the other 7 options as possible responses. I want this to continue until, no matter the order, the user has exhausted all 8 initial options.

The obvious problem with this is how many conditions this method necessitates-- ~40,320. This is too many for the PVA editor to handle. So, clearly, I need to split this into smaller topics. The issue I cannot figure out is how to account for selections made in previous topics and have those options dynamically disappear from topics to which the user is directed.

 

How can I build this simulation bot?

 

Thank you for considering this issue.

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

Whether this would work or not depends on how you need to respond to each topic chosen.  But I would try to create the equivalent of a matrix array using a closed list entity for the questions and a delimited string variable to record the questions that have been asked.  Pass the variable to a flow that will use it to filter out the list in the entity and return the available questions. Repeat until there are no questions left.  

 

I'm not sure if my explanation is clear enough.  So let me know if it needs clarification.  The idea is to avoid the permutations entirely by processing the possible questions each round dynamically.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
MCG87
Regular Visitor

I feel like I am on the verge of understanding your recommendation. Can you please go into a little more detail and clarification?

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,778)