Skip to main content

Notifications

Topic Creation & Management
Answered

Question Node Not Behaving Properly

Posted on by 12
I am currently developing a copilot in Copilot Studio. In one of the topics, I am using a Question node to ask the user for some multi-digit number, e.g., a customer number. Unfortunately, this is where the problem begins.
 
There are two approaches that I have tried so far:
 
1. Under "Identify" I created a new Entity that uses RegEx to extract exactly 5 consecutive digits from the user's message/answer, not 4, not 6.
 
In this case, it works fine if I give exactly 5 digits in a sentence such as "Number is: 12345" or also when I just give the 5 digits as the entire answer ("12345"), but when I give a 6-digit number as the entire answer ("123456"), it directly escalates the topic ("How many repromts" under "Question behavior" is set to "Don't repeat", so this is partially expected behavior) BUT "Action if no entity found" under "Entity recognition" in Question properties is NOT set to "Escalate"; it is set to "Set variable to empty (no value)". I expected the variable to be set to Blank and continue the topic, but I was wrong.
 
2. Under "Identify" I selected "User's entire response". The expected behavior is: "No entity extraction; saved as is".
 
Here, I wanted to create a workaround: save the user's entire response to the Question node as a string, then use a Power Fx function/formula in a following Set variable value node to check for a 5-digit number in the user's response. This case works well when the user's response has words in it, such as "Yes, 12345", "Number is:12345.", etc. But when I give a pure numeric response in the Test window, such as "12345", "1234", etc., it again directly escalates the topic and doesn't proceed to the Set variable value node. Although, again, "Set variable to empty (no value)" is selected and not "Escalate". I am also confused that selecting "User's entire response" didn't make much of a difference. I expected the entire response to be saved as-is and assigned to a variable, which I could then work with in the next steps/nodes regardless of the response. Maybe I am misinterpreting this "Identify" behavior?
 
I read two related entries in this forum, one from 2022 and one from 2023. The recent one was solved by setting the value to blank rather than escalating, which is exactly the behavior I am struggling with. Any help or suggestions are welcome.
Thanks in advance!
Categories:
  • Suggested answer
    CU21082047-2 Profile Picture
    CU21082047-2 29 on at
    Question Node Not Behaving Properly
    How do I raise a complaint in Meesho? {÷} Toll Free: Online complain, 24/7) ➑➒➑➊➐➐➌➏➑➊//8981773681( Meesho complaint customer service /credit card/ report Transaction), 1800-258-6161 (Report online shoppingee
  • EÖ-13080954-0 Profile Picture
    EÖ-13080954-0 12 on at
    Question Node Not Behaving Properly
    Hi @renatoromao,
     
    Thanks a lot for your descriptive answer. If this issue with the Question node persists, I will go with your suggestion. Even though there might be a bit of latency compared to the Question node, functionality is more important.
     
    The only problem I would have in this case, and it is my bad for not giving more background, is that in the directly preceding node, I am generating the question to ask the user for their multi-digit number using a "Create generative answers" node. If I don't have a Question node in between, the Copilot wouldn't wait for the user's answer. It would continue with the rest of the functionality/flow without receiving a number from the user.
     
    Is there maybe any other node that waits for the user's answer?
  • Verified answer
    renatoromao Profile Picture
    renatoromao 6,819 on at
    Question Node Not Behaving Properly
    Hi,
     
    You could use the "Create generative answers" to get this data quickly and safe.
     
    Here is an example:
     
    Prompt: 
    I have a multi-digit number, e.g., a customer number. You need to extract exactly 5 consecutive digits from the user's message/answer, not 4, not 6. Save only the number and DO NOT REPLY with any other text. Here's the user message: [PASTE YOUR VARIABLE HERE]
     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update 9/9/24…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,705

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics