Hi there,
I am a beginner at PVA trying to create a topic in my bot on PVA for Microsoft Teams that will provide a URL based on what the user answers for two questions shown in the screenshots below. For example, if the user answers with "AL-1" or "RP-1", the bot will reply with a message that provides a hyperlinked URL to a specific SharePoint item in a SharePoint List respectively. However, my limitation here is as I have to add over a hundred conditions (e.g "AL-100" in this context), when I add them in, the topic becomes very slow and laggy.
Is there any alternative and more efficient method to do this that won't slow down the application?
Any help would be greatly appreciated.
Many thanks for the response, I was able to run the topic with the flow from Power Automate with no issues per your suggestion.
Try creating all the values as an Entity. Then pass those values to a flow for processing. Do the conditions in the flow using a switch action. Then return the message you want displayed from the flow. Here's an article on entities. Create and use entities (contains video) - Power Virtual Agents | Microsoft Learn