Skip to main content

Notifications

Calling Actions from Copilot Studio
Unanswered

looping a question based on input

Posted on by

Hi I am new to power virtual agents and power automate, I want to call an action  based on user input for instance a user can provide an input as an integer and based on that integer the user provides, I want to ask the same question until question count is equal to the integer provided by user, I have tried the implementation not sure how to pass variables and execute the looping does power virtual agents and power automate have this functionality :

 

e.g. 

 

Bot: How many buildings do you own?

User: 2

Bot: What is your 1 of 2 first pc's name?

User: Main building

Bot: Okay , What is your 2 of 2 first pc's name?

User: Small building

 

 

Categories:
  • remidyon Profile Picture
    remidyon on at
    Re: looping a question based on input

    Hi @mahambabp 

    You could set a variable "count" that you increment each time in a loop and compare it with the initial variable "userInput" using a powerFX formula as a condition and use the "go to step" instruction to loop on your questions

     

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

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

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,997

#3
Expiscornovus Profile Picture

Expiscornovus 1,708

Leaderboard

Featured topics