Skip to main content

Notifications

Topic Creation & Management
Unanswered

How to Change system topic Multiple Topics Matched response to a Vertical

Posted on by

Hi,

 

if anyone can help, I am wondering if its possible to change system topic Multiple Topics Matched response to a Vertical and if so what I would need to change in the code. I am using the web PVA.

 

Cheers for any help.

Categories:
  • LimeLeaf Profile Picture
    LimeLeaf 24 on at
    Re: How to Change system topic Multiple Topics Matched response to a Vertical

    Would be awesome if Micosoft would be adding this as a setting to show the matched responses vertically.

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: How to Change system topic Multiple Topics Matched response to a Vertical

    Hi @Old_man_rolly,

     

    As @mboninco, you can likely address this on the client side (i.e. your chat replies displays the suggested actions / quick replies.

     

    Alternatively, you may choose to display the Multiple Topics Matched options using an adaptive card.

    I played around a little bit and got to that result:

     

    HenryJammes_0-1696647995170.png

     

    You can do the same by replacing the Multiple Topics Matched topic YAML with the below code.

    You can access the code by click this top right corner option:

     

    HenryJammes_1-1696648061605.png

     

    Maybe do a backup of your existing code before pasting mine.

     

    kind: AdaptiveDialog
    beginDialog:
     kind: OnSelectIntent
     id: main
     actions:
     - kind: SetVariable
     id: setVariable_M6434i
     variable: init:Topic.IntentOptions
     value: |-
     =Sort(
     System.Recognizer.IntentOptions, 
     Score, 
     SortOrder.Descending
     )
    
     - kind: EditTable
     id: sendMessage_g5Ls09
     changeType: Add
     itemsVariable: Topic.IntentOptions
     value: "={ DisplayName: \"None of these\", TopicId: \"NoTopic\", TriggerId: \"NoTrigger\", Score: 1.0 }"
    
     - kind: Question
     id: question_zf2HhP
     interruptionPolicy:
     allowInterruption: false
    
     alwaysPrompt: true
     variable: Topic.SelectedOption
     prompt:
     text:
     - "To clarify, did you mean:"
     attachments:
     - kind: AdaptiveCardTemplate
     cardContent: |-
     ={
     type: "AdaptiveCard",
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.5",
     body: 
     ForAll(Topic.IntentOptions,
     {
     type: "Container",
     items: [
     {
     type: "ActionSet",
     actions: [
     {
     type: "Action.Submit",
     title: DisplayName,
     data: DisplayName
     }
     ]
     }
     ]
     }
     )
     }
    
     entity: StringPrebuiltEntity
    
     - kind: SetVariable
     id: setVariable_HazjLn
     variable: System.Recognizer.SelectedIntent
     value: |-
     =LookUp(
     Topic.IntentOptions, 
     DisplayName = Topic.SelectedOption
     )
    
     - kind: ConditionGroup
     id: conditionGroup_60PuXb
     conditions:
     - id: conditionItem_rs7GgM
     condition: =System.Recognizer.SelectedIntent.TopicId = "NoTopic"
     actions:
     - kind: ReplaceDialog
     id: YZXRDb
     dialog: cc_ContosoCoffeeBot.topic.Fallback

     

    You also need to fix the redirect to the Escalate topic at the end:

     

    HenryJammes_2-1696648240144.png

     

    Let me know if that helps.

    Henry

  • mboninco Profile Picture
    mboninco on at
    Re: How to Change system topic Multiple Topics Matched response to a Vertical

    @Old_man_rolly 

    The following forum post has a solution that may work for you: 

     

    Solved: Customize the options display - Power Platform Community (microsoft.com)

     

    -- Mike Bonincontri

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