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.
Would be awesome if Micosoft would be adding this as a setting to show the matched responses vertically.
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:
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:
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:
Let me know if that helps.
Henry
@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
Romain The Low-Code...
132
Michael E. Gernaey
81
Super User 2025 Season 1
Pablo Roldan
61