web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Using similar structur...
Copilot Studio
Answered

Using similar structure to Fallback, can chatbot topic be set for detecting numbers

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm wanting to have a topic that functions similar to the built in "Fallback" topic. I want the chatbot to detect anytime a user enters any set of numbers and store that in a variable "num" to pass into a flow. It's an inventory function. I created a fallback topic when I originally published my bot and by far the most popular topic has been inventory lookup but in my "unrecognized phrases" spreadsheet I can see that many users are attempting to just enter the item number from the start instead of triggering the inventory lookup topic and then entering the number when prompted. User education has been attempted many times to correct this but it is still happening a lot. I know if I can just create a topic in the chatbot that looks for numbers being entered and passes those numbers to the inventory lookup flow this will solve 70% or more of the failed chatbot interactions. So, in closing, is this even possible and if so, where do I access the parameters to achieve it?

I have the same question (0)
  • Verified answer
    peterswimm Profile Picture
    Microsoft Employee on at

    You should handle this using entities and slot filling:

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-entities-slot-filling#prebuilt-entities

     

    You can use one of prebuilts for numbers, or if the inventory number is a mixer of numbers lets and symbols you would use a regex entity to look for the number and fill the slot in the relevant topic.

     

    For instance

    Do you have item ab-2422 in stock at store #31

    would be 

    Do you have item REGEX_ENTITY_STOCKNUMBER in stock at STORE_LOCATION_NUMBER

     

    And with those variables set you can then run your flow.

     

     

     

  • kgreen8790 Profile Picture
    189 on at

    Thanks for the direction. This really helped

  • Verified answer
    kgreen8790 Profile Picture
    189 on at

    I created the entity and it works perfectly inside the topic but not as the topic trigger. I typed the name of the entity in the trigger phrase and REGEX_ENTITY_PART_NUM as a trigger phrase. I'm still having to go to the topic via the traditional question and then it uses the entity as the question answer. Am I missing something to unlock it as a topic trigger also?

  • peterswimm Profile Picture
    Microsoft Employee on at

    Do you have a question node that can fill the slot as the first step in the topic? If it exists in the question, it should skip the question node prompt, even though you need to do it in the dialog authoring.

  • kgreen8790 Profile Picture
    189 on at

    Here's what I've got:

    debug1.PNGdebug2.PNGdebug3.PNG

  • peterswimm Profile Picture
    Microsoft Employee on at

    You will probably need more of an utterance to trigger the slot filling. Perhaps try a welcome dialog that asks the question as well? Utterances are intended to be more conversational than your example, and you do not need to provide the entity name, just examples of that entity in well-sourced utterances.

  • peterswimm Profile Picture
    Microsoft Employee on at

    Ie Im looking up part number 284934

    39349

    I'm trying to locate part 34343 etc

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 309

#2
11manish Profile Picture

11manish 187

#3
chiaraalina Profile Picture

chiaraalina 101 Super User 2026 Season 1

Last 30 days Overall leaderboard