Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Answered

Working with too many conditions to a question

(0) ShareShare
ReportReport
Posted on by 5

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.

  • MisterJoe Profile Picture
    MisterJoe 5 on at
    Re: Working with too many conditions to a question

    Many thanks for the response, I was able to run the topic with the flow from Power Automate with no issues per your suggestion.

  • Verified answer
    Pstork1 Profile Picture
    Pstork1 64,822 on at
    Re: Working with too many conditions to a question

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics