Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Maxmellien
Helper I
Helper I

How trigger event if we did not select ask a Question topic options and send new message in Fallback flow?

Hi @citron-truc and everyone, Hope you all doing well.
I have created a Fallback flow that show follow up question by using ask a Question  topic but the problem is:
         - When i send message at first it give me Answer and follow up question.

         - But if i select the followup question it still working.

 

The Problem:

- When i donot select the ask a Question options and try to send new textas question it did not trigger the flow  from start and it again show me the followup question from previous resonse .
- so how i can activate trigger even if i did not select the followup question option that is given by ask a Question topic.

here is my flow:


Maxmellien_0-1705937893191.pngMaxmellien_1-1705938033789.png

Maxmellien_2-1705938080200.png

 

- So if we look at the first question it give us reponse and follow up questions.

- But if we did not select the followup question and try to ask new question it will automatically give the follow up question options  from previous response.

I want to send new question to the trigger without selecting the followup question option.

here is the code:

 

kind: AdaptiveDialog
beginDialog:
  kind: OnUnknownIntent
  id: main
  actions:
    - kind: ConditionGroup
      id: conditionGroup_LktzXw
      conditions:
        - id: conditionItem_tlGIVo
          condition: =System.FallbackCount < 0
          actions:
            - kind: SendActivity
              id: sendMessage_QZreqo
              activity: I'm sorry, I'm not sure how to help with that. Can you try rephrasing?

      elseActions:
        - kind: SetVariable
          id: setVariable_UZzHTG
          variable: Topic.userquery
          value: =System.Activity.Text

        - kind: SetVariable
          id: setVariable_JxvOBh
          variable: Topic.channel_id
          value: =System.Conversation.Id

        - kind: InvokeFlowAction
          id: invokeFlowAction_E7w02P
          input:
            binding:
              text: =Topic.userquery
              text_1: =Topic.channel_id

          output:
            binding:
              answer: Topic.answer
              followup: Topic.followup
              source: Topic.source

          flowId: e2261edf-1fb5-ee11-a569-6045bd006ade

        - kind: SendActivity
          id: sendActivity_EdTV40
          activity: "{Topic.answer}"

        - kind: SendActivity
          id: sendActivity_J4qAAN
          activity: "{Topic.source}"

        - kind: ConditionGroup
          id: conditionGroup_l0lbpH
          conditions:
            - id: conditionItem_vKSxmN
              condition: =Topic.followup <> "No"
              actions:
                - kind: ParseValue
                  id: 65LtLM
                  variable: Topic.OptionsTable
                  valueType:
                    kind: Record
                    properties:
                      json:
                        type:
                          kind: Table
                          properties:
                            DisplayName: String
                            question: String

                  value: =Topic.followup

                - kind: Question
                  id: question_FWI3kc
                  interruptionPolicy:
                    allowInterruption: true

                  variable: init:Topic.SelectedQuestion
                  prompt: "You may like Follow Up questions:"
                  entity:
                    kind: DynamicClosedListEntity
                    items: =Topic.OptionsTable.json

                - kind: ConditionGroup
                  id: conditionGroup_grIIgb
                  conditions:
                    - id: conditionItem_2iWCpo
                      condition: =!IsBlank(Topic.SelectedQuestion)
                      actions:
                        - kind: SetVariable
                          id: setVariable_Is0FtG
                          variable: Topic.FollowUpQuestion
                          value: =Topic.SelectedQuestion.question

                        - kind: InvokeFlowAction
                          id: invokeFlowAction_1lIq5m
                          input:
                            binding:
                              text: =Topic.FollowUpQuestion
                              text_1: =System.Conversation.Id

                          output:
                            binding:
                              answer: Topic.answer
                              followup: Topic.followup
                              source: Topic.source

                          flowId: e2261edf-1fb5-ee11-a569-6045bd006ade

                        - kind: GotoAction
                          id: QNFBoo
                          actionId: sendActivity_EdTV40

 

 

Input data coming from action in three variable:

 

{'sources': '',
 'answer': "```this is the query```.",
 'followup': {'json': [{'question': 'question one text',
    'DisplayName': 'question one text'},
   {'question': 'question two text',
    'DisplayName': 'question two text'}]}
}

 


how to get ride of this loop??
thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Maxmellien
Helper I
Helper I

Thank you @HenryJammes 
I think i found the way to getout of Question loop.
- Just go to Question properties and make it donot repeat, and if did not find entity set to empty as shown in image.
- then use condition so whenever we ask question if not in Question options then it will be empty or Blank so we can start from begining.

Maxmellien_0-1706013882369.png

 

View solution in original post

4 REPLIES 4
HenryJammes
Copilot Studio
Copilot Studio

Not sure I follow @Maxmellien , but why use a question for this, and not a message?

That way, any new user message will be interpreted as a new utterance that will either trigger a topic or go to fallback. 

In your example, it looks like the selected option chose by your user isn't recognized as a valid answer to the question, hence why I assume it asks it again.

Maxmellien
Helper I
Helper I

Hi @HenryJammes , Thanks for your answer. 
I am using message but after message i show followup question in Question Topic.

What i have observed that without selecting the Question topic options i never trigger the start of flow.
I used the Question Topic for dynamic click, so we can ask a question if there any other way which alway trigger start of the flow then please help me if there any alternative to this. The below is my existing scenario.

 

- As i am not directly using Question topic in flow, the existing flow work like this:
- When event trigger we got input text in PVA , so we save in variable and also conversation id.
- Then we send these two variable in action and got resposne in three varable, answer , sources, followup.

- Then we first display answer and sources and check if followup is not No then we put this data into Question to show followup quetsions.
- If we select any question then we save this selectedquestion in varable and again send via action but this time input text change to selectedquestion and conversation_id remain same and when reponse came we use Go to Step which is the previous message topic  that exist after first action in flow and this is loop for follow up question and answer.

 

- The issue arises when I don't select any follow-up question and write a new question. It doesn't initiate the fallback flow from the beginning. Instead, it retains the previous response's follow-up question. As a solution, I plan to send this input text to the start and send to first action in flow to obtain a response.

- kindly use the above given code after that you can see my whole flow.
 
Here is a snapshot of bot:

Maxmellien_0-1705996911429.png


The Questions which i have asked of if we see the picture, is not in followup question it should trigger the Flow from start.

Full flow images:

Maxmellien_1-1705998243903.png

 

Maxmellien_2-1705998295081.png

 

Maxmellien_3-1705998324107.png

 

Maxmellien_4-1705998383742.png

 

 

Maxmellien
Helper I
Helper I

Thank you @HenryJammes 
I think i found the way to getout of Question loop.
- Just go to Question properties and make it donot repeat, and if did not find entity set to empty as shown in image.
- then use condition so whenever we ask question if not in Question options then it will be empty or Blank so we can start from begining.

Maxmellien_0-1706013882369.png

 

Tks!!! helped me a lot

Helpful resources

Announcements

Copilot Cookbook Challenge | Week 1 Results | Win Tickets to the Power Platform Conference

We are excited to announce the "The Copilot Cookbook Community Challenge is a great way to showcase your creativity and connect with others. Plus, you could win tickets to the Power Platform Community Conference in Las Vegas in September 2024 as an amazing bonus.   Two ways to enter: 1. Copilot Studio Cookbook Gallery: https://aka.ms/CS_Copilot_Cookbook_Challenge 2. Power Apps Copilot Cookbook Gallery: https://aka.ms/PA_Copilot_Cookbook_Challenge   There will be 5 chances to qualify for the final drawing: Early Bird Entries: March 1 - June 2Week 1: June 3 - June 9Week 2: June 10 - June 16Week 3: June 17 - June 23Week 4: June 24 - June 30     At the end of each week, we will draw 5 random names from every user who has posted a qualifying Copilot Studio template, sample or demo in the Copilot Studio Cookbook or a qualifying Power Apps Copilot sample or demo in the Power Apps Copilot Cookbook. Users who are not drawn in a given week will be added to the pool for the next week. Users can qualify more than once, but no more than once per week. Four winners will be drawn at random from the total qualifying entrants. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once. If they are drawn multiple times, another user will be drawn at random. Prizes:  One Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value, does not include travel, lodging, or any other expenses) Winners are also eligible to do a 10-minute presentation of their demo or solution in a community solutions showcase at the event. To qualify for the drawing, templates, samples or demos must be related to Copilot Studio or a Copilot feature of Power Apps, Power Automate, or Power Pages, and must demonstrate or solve a complete unique and useful business or technical problem. Power Automate and Power Pagers posts should be added to the Power Apps Cookbook. Final determination of qualifying entries is at the sole discretion of Microsoft. Weekly updates and the Final random winners will be posted in the News & Announcements section in the communities on July 29th, 2024. Did you submit entries early?  Early Bird Entries March 1 - June 2:  If you posted something in the "early bird" time frame complete this form: https://aka.ms/Copilot_Challenge_EarlyBirds if you would like to be entered in the challenge.   Week 1 Results:  Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Copilot Cookbook Gallery:Power Apps Cookbook Gallery:1.  @Mathieu_Paris 1.   @SpongYe 2.  @Dhanush 2.   @Deenuji 3.  n/a3.   @Nived_Nambiar  4.  n/a4.   @ManishSolanki 5.  n/a5.    n/a

Your Moment to Shine: 2024 PPCC’s Got Power Awards Show

For the third year, we invite you, our talented community members, to participate in the grand 2024 Power Platform Community Conference's Got Power Awards. This event is your opportunity to showcase solutions that make a significant business impact, highlight extensive use of Power Platform products, demonstrate good governance, or tell an inspirational story. Share your success stories, inspire your peers, and show off some hidden talents.  This is your time to shine and bring your creations into the spotlight!  Make your mark, inspire others and leave a lasting impression. Sign up today for a chance to showcase your solution and win the coveted 2024 PPCC’s Got Power Award. This year we have three categories for you to participate in: Technical Solution Demo, Storytelling, and Hidden Talent.      The Technical solution demo category showcases your applications, automated workflows, copilot agentic experiences, web pages, AI capabilities, dashboards, and/or more. We want to see your most impactful Power Platform solutions!  The Storytelling category is where you can share your inspiring story, and the Hidden Talent category is where your talents (such as singing, dancing, jump roping, etc.) can shine! Submission Details:  Fill out the submission form https://aka.ms/PPCCGotPowerSignup by July 12th with details and a 2–5-minute video showcasing your Solution impact. (Please let us know you're coming to PPCC, too!)After review by a panel of Microsoft judges, the top storytellers will be invited to present a virtual demo presentation to the judges during early August. You’ll be notified soon after if you have been selected as a finalist to share your story live at PPCC’s Got Power!  The live show will feature the solution demos and storytelling talents of the top contestants, winner announcements, and the opportunity to network with your community.  It's not just a showcase for technical talent and storytelling showmanship, show it's a golden opportunity to make connections and celebrate our Community together! Let's make this a memorable event! See you there!   Mark your calendars! Date and Time: Thursday, Sept 19th Location: PPCC24 at the MGM Grand, Las Vegas, NV 

Tuesday Tip | Accepting Solutions

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   To enhance our collaborative environment, it's important to acknowledge when your question has been answered satisfactorily. Here's a quick guide on how to accept a solution to your questions: Find the Helpful Reply: Navigate to the reply that has effectively answered your question.Accept as Solution: Look for the "Accept as Solution" button or link, usually located at the bottom of the reply.Confirm Your Selection: Clicking this button may prompt you for confirmation. Go ahead and confirm that this is indeed the solution.Acknowledgment: Once accepted, the reply will be highlighted, and the original post will be marked as "Solved". This helps other community members find the same solution quickly. By marking a reply as an accepted solution, you not only thank the person who helped you but also make it easier for others with similar questions to find answers. Let's continue to support each other by recognizing helpful contributions. 

Reminder: To register for the Community Ambassador Call on June 13th

Calling all Super Users & User Group Leaders   Reminder: To register for the Community Ambassador Call on June 13th—for an exclusive event for User Group Leaders and Super Users! This month is packed with exciting updates and activities within our community.   What's Happening: Community Updates: We'll share the latest developments and what's new in our vibrant community.Special Guest Speaker: Get ready for an insightful talk and live demo of Microsoft Copilot Studio templates by our special guest.Regular Updates: Stay informed with our routine updates for User Groups and Super Users.Community Insights: We'll provide general information about ongoing and upcoming community initiatives. Don't Miss Out: Register Now: Choose the session that fits your schedule best.Check your private messages or Super User Forum for registration links. We're excited to connect with you and continue building a stronger community together.   See you at the call!  

Tuesday Tip | How to Provide Feedback

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We are always looking to improve your experience on our community platform, and your feedback is invaluable to us. Whether it's a suggestion for a new feature, an idea to enhance the platform, or a concern you'd like to address, we want to hear from you!   How to Share Your Feedback: Each of our communities has its own Feedback forum where the Community Managers can assist you directly in.  ●  Power Apps  ● Power Automate   ● Power Pages   ● Copilot Studio   We also have many articles on community account FAQs, or how to navigate the community, which can be found below.   Community Accounts & Registration:  https://powerusers.microsoft.com/t5/Community-Accounts-Registration/tkb-p/pa_community_accounts_regi...   Using the Community: https://powerusers.microsoft.com/t5/Using-the-Community/tkb-p/pa_using_the_community   Our Commitment to You: We are committed to creating a collaborative and supportive environment. All feedback is reviewed by our community managers, and we strive to implement changes that will benefit all members.   Thank you for being a part of our community. Your contributions help us grow and improve together!

Update: Copilot Studio Community | Forums & Blogs have MOVED

Get ready to experience a whole new level of engagement with the Copilot Studio Community beginning this June! We’re thrilled to announce significant enhancements to our Community Blogs and Forums, designed to foster collaboration, creativity, and connection in the Community. 🚀💡   Note: As we continue our journey towards a fully updated platform, we want to keep you informed of the current known issues you may encounter on the Community site: Deep Link Discrepancies:​​​​​​​ You may find that previously saved deep links are not functioning as expected. They are currently redirecting to the "Read Only" Forums & Blog boards.  We understand the inconvenience this may cause and we are working to resolve the issue.  In the meantime, you can access the updated: Copilot Community Blogs & Copilot Community Forum Boards and save the new deep links. ​​​​​​​Profile and Contribution visibility: Your profile, contributions, badges and other related elements may appear incomplete or not fully updated.  Rest assured; this is a temporary state due to the ongoing transition.  We are making every effort to ensure a complete and accurate migration of all of your valuable contributions.     What’s New? 🌟 Revamped Community Blogs: Dive into a more intuitive and enriched blogging experience, where sharing knowledge and insights is easier and more enjoyable than ever. Enhanced Forums: Engage in discussions, ask questions, and connect with peers through our improved forums, now with better navigation and user-friendly features.  Why Check It Out? ✔ Stay Informed: Keep up with the latest trends, tips, and tricks from Copilot experts and fellow community members.Expand Your Network: Connect with like-minded professionals and build lasting relationships within the community.Share Your Voice: Contribute your own stories, solutions, and successes to inspire and educate others.   Stay tuned for more details as we approach the launch date. We can’t wait for you to join us in this new chapter of the Copilot Studio Community. Together, let’s make it a hub of innovation and inspiration!   

Users online (4,564)