A reusable Power Platform snippet

Multiple Topics Matched (Topic)

This is a snippet that demonstrates how you can provide the user of your copilot the option to select a topic when multiple topics are triggered.

Copilot Studio
Preview PNG
Last updated
May 7, 2024
Category
Community snippet

From idea to implementation

Make it your own.

Check this snippet's prerequisites, permissions, and licensing before using it. The documentation below comes directly from the snippet README.

This is a snippet that demonstrates how you can provide the user of your copilot the option to select a topic when multiple topics are triggered. In this topic, an adaptive card will be sent to the user, so that the user can select the topic they want to trigger.

A view of choice for the user

Authors

Snippet Author(s)
Multiple Topics Matched (Topic) Henry Jammes (@HenryJammes)

Minimal path to awesome

  1. Open a copilot in Copilot Studio.

  2. Select Generative AI.

  3. Scroll down to the Use AI features in your copilot section and select the toggle in the Boost conversational coverage with generative answers to turn that feature on.

    View of the Generative AI features

  4. Select Save at the top.

  5. Select Topics.

  6. Select System.

  7. Select the Multiple Topics Matched topic by selecting the name.

  8. Select the ... in the upper right corner and select Open code editor.

  9. At the bottom line of the code editor, you should see the internal name of the copilot. Copy the internal name of the copilot and save it temporarily in a place where you can easily copy it from later on (for instance in notepad).

    NOTE: only copy the part before .topic.Fallback.

    View of the bottom of the code editor

  10. Paste the contents of the YAML-file inside the code editor.

    View of the code editor

  11. Replace { REPLACE-WITH-COPILOT-NAME } on line 26 with the internal name of your copilot we just copied to notepad.

    View of the code editor with a red line around the connection reference name

  12. Replace { REPLACE-WITH-COPILOT-NAME } on line 145 with the internal name of your copilot we just copied to notepad as well.

  13. Select Save to save the Multiple Topics Matched topic.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.