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

Community site session details

Session Id : JiIGEIojW0gWUgXl8CiSar
Copilot Studio - General
Answered

Looping back to previous question

Like (0) ShareShare
ReportReport
Posted on 7 Sep 2022 09:40:02 by 10

Is there a way to loop back to a previous question when an invalid answer is detected?

 

For example, I have a topic that asks for an order # and proceeds when an order # is found.

 

How do I keep looping to the question X amount of times until the user provides a matching order # or exceeds the number of attempts?

Categories:
I have the same question (0)
  • DiegoPeres Profile Picture
    327 on 12 Sep 2022 at 23:55:30
    Re: Looping back to previous question

    Hi @MikkoM 

    Yes, there is, you need to treat the data if it is not found.
    I created a situation where the data is not found for you to understand the logic that must be created.
    For this I used the Power Automate to search the data informed by the user.

    DiegoPeres_0-1663026836077.png

    As for your search not finding the data you need to define a return parameter and create a validation condition in your topic, so the user will return to the flow of informing the data until it is found.


    Did I answer your question?😉
    Please consider accepting it as the solution to help other members find you faster.


    Like my answer?


    Like it! 👍



    Thanks!
    Diego Peres,
    Connect with me: Linkedin

     

  • MikkoM Profile Picture
    10 on 13 Sep 2022 at 06:50:40
    Re: Looping back to previous question

    Right, no way to do this without Power Automate?

  • Verified answer
    DiegoPeres Profile Picture
    327 on 13 Sep 2022 at 22:41:14
    Re: Looping back to previous question

    Hi @MikkoM,  If you already have the data in your stream it is possible. If in your topic the answer is always going to be #, you can put in the condition, if it differs from # it goes back to the input request.

    DiegoPeres_0-1663108868977.png

     


    Did I answer your question?😉
    Please consider accepting it as the solution to help other members find you faster.


    Like my answer?


    Like it! 👍



    Thanks!
    Diego Peres,
    Connect with me: Linkedin

     

  • NielsUitterdijk Profile Picture
    2 on 24 Jul 2023 at 13:42:59
    Re: Looping back to previous question

    This seems to be no longer possible since a UI change. Cannot find anything in the docs either about how to do this with the current version. I made a very simple scenario where I ask a question, store the entire answer, and make a condition if a certain keyword variable is present in the answer, and then use the 'go to step' to go back to the question. When prompted, this enters an infinite loop and the bot times out.

    Any idea how to achieve such a loop?

    NielsUitterdijk_0-1690206162897.png

     

  • joeflynn Profile Picture
    2 on 27 Jul 2023 at 23:27:38
    Re: Looping back to previous question

    I am stuck in the new authoring canvas and cannot seem to figure out how to go back to a previous step when the supplied answer is No.  I did the Go Back to Step and it does nothing.

  • Robulane Profile Picture
    on 28 Jul 2023 at 06:54:29
    Re: Looping back to previous question

    Hi,

    We are working on improving this scenario. To unblock yourself, you can open question properties and select "Ask every time":

    Robulane_0-1690527260927.png

     

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on 03 Aug 2023 at 12:32:45
    Re: Looping back to previous question

    Hi there,

     

    On the new canvas when you click on the plus button, and then on Topic Management > Go to step . After clicking on Go to step, select the step in the conversation tree on canvas where you want the bot go back to.

     

    2023-08-03 13.28.56 web.powerva.microsoft.com c40cd40fb6bc.png

     

    Cheers,

     

    Fernando

  • maghedrizk Profile Picture
    7 on 03 Sep 2023 at 14:21:44
    Re: Looping back to previous question

    Thank you..This answer saved me time.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 471 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 421 Super User 2025 Season 2

#3
Giraldoj Profile Picture

Giraldoj 55 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete