Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Looping back to previous question

(0) ShareShare
ReportReport
Posted on 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:
  • maghedrizk Profile Picture
    7 on at
    Re: Looping back to previous question

    Thank you..This answer saved me time.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    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

  • Robulane Profile Picture
    on at
    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

     

  • joeflynn Profile Picture
    2 on at
    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.

  • NielsUitterdijk Profile Picture
    2 on at
    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

     

  • Verified answer
    DiegoPeres Profile Picture
    327 on at
    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

     

  • MikkoM Profile Picture
    10 on at
    Re: Looping back to previous question

    Right, no way to do this without Power Automate?

  • DiegoPeres Profile Picture
    327 on at
    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

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard