Skip to main content

Notifications

Topic Creation & Management
Answered

Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

Posted on by 67

In a Topic, while designing a Question Node, I wanted to give a very big list of options to choose (for example 150 options). Configuring 150 options in Basic Card/Multiple Options/Options from a list var will be tedious for a chat user to scroll and select from it.

 

I need a solution for this. Is there a possibility to design dropdown search menu or type & search to pick from the Options. Please help me on this..

Categories:
  • adilei Profile Picture
    adilei on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Maybe this will help? Display Data from Arrays in Adaptive Cards - Microsoft Copilot Studio | Microsoft Learn

  • Karishma2805998 Profile Picture
    Karishma2805998 67 on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Great ! I think this is working. One more help adilei, Can you share some possible solution to dynamically add the JSON schema to Adaptive Card from Power Automate JSON output

  • Verified answer
    adilei Profile Picture
    adilei on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Change the schema to 1.5, it should work in Copilot Studio

    adilei_0-1709792114531.png

     

  • Karishma2805998 Profile Picture
    Karishma2805998 67 on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Thanks adilei. But I tried to use your sample JSON and getting version not supported issue in Adaptive Cards. 

     

    Karishma2805998_0-1709781968065.png

     

    Default version was 1.0. But when I use version 1.0, I am not getting proper filter component, its not editable/clickable

    Karishma2805998_1-1709782152403.png

     



  • Verified answer
    adilei Profile Picture
    adilei on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    So, it seems adaptive cards actually support a filtered search experience. I don't know if there's a limit on the number of choices, but it seems it would be worthwhile to test this:

     

    adilei_0-1709584018098.png

     

     

    {
     "type": "AdaptiveCard",
     "body": [
     {
     "type": "Input.ChoiceSet",
     "id": "choices",
     "style": "filtered",
     "choices": [
     {
     "title": "Option 1",
     "value": "option1"
     },
     {
     "title": "Option 2",
     "value": "option2"
     },
     {
     "title": "Option 3",
     "value": "option3"
     },
     {
     "title": "Option 4",
     "value": "option4"
     },
     {
     "title": "Option 5",
     "value": "option5"
     },
     {
     "title": "Option 6",
     "value": "option6"
     },
     {
     "title": "Option 7",
     "value": "option7"
     },
     {
     "title": "Option 8",
     "value": "option8"
     },
     {
     "title": "Option 9",
     "value": "option9"
     },
     {
     "title": "Option 10",
     "value": "option10"
     },
     {
     "title": "Option 11",
     "value": "option11"
     },
     {
     "title": "Option 12",
     "value": "option12"
     },
     {
     "title": "Option 13",
     "value": "option13"
     },
     {
     "title": "Option 14",
     "value": "option14"
     },
     {
     "title": "Option 15",
     "value": "option15"
     },
     {
     "title": "Option 16",
     "value": "option16"
     },
     {
     "title": "Option 17",
     "value": "option17"
     },
     {
     "title": "Option 18",
     "value": "option18"
     },
     {
     "title": "Option 19",
     "value": "option19"
     },
     {
     "title": "Option 20",
     "value": "option20"
     }
     ]
     }
     ],
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.6"
    }

     

     

  • Karishma2805998 Profile Picture
    Karishma2805998 67 on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Adilei,

     

    Can I get some reference about after creating custom search component, how to embed to the existing MS copilot I have created in Copilot Studio?

  • Karishma2805998 Profile Picture
    Karishma2805998 67 on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Thanks adilei for your response.

     

    Getting input from user and then search is not I am expecting. All the user will not be knowing the exact option to search thats why I wanted a dropdown type and search.

     

    Let me check out the BotFramework link you have shared if it provides me a solution.Thanks a lot again!

  • adilei Profile Picture
    adilei on at
    Re: Type and Search or Dropdown search possible in Question Node for Multiple Options (Eg 150 options)??

    Not exactly an autocomplete UX, but you could collect an input from the user, and then use a search function behind the scenes to retrieve a smaller subset of options that would be displayed as choices.

     

    If you're comfortable with a more code centric approach, you could create your own search component and embed that in the chat. Here is an example: BotFramework-WebChat/samples/05.custom-components/f.password-input at main · microsoft/BotFramework-WebChat (github.com)

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,990

#3
Expiscornovus Profile Picture

Expiscornovus 1,700

Featured topics