cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rohitjadhav123
Helper IV
Helper IV

Is is possible to create orchestration for PVA bots

Hello,

 

We are trying to explore PVA capabilities before we accept this platform fully as bot development in our organization. We have many teams that are building bot and, we are trying to see if we can create Master - slave pattern or Virtual assistant pattern in PVA.

 

Example:

Master PVA bot get user input.

Master PVA, provide user authentication using existing PVA capabilities. and, flows out in 2 paths.

  • If user token is received -
  • If user token is not received.

Based on some information present in a token, master will call respective Child PVA bot. For example, if in JWT token user belongs to 'HR group', master will send user to HR PVA bot.

 

Can we achieve something like this in PVA platform? If not out of the box, are there any workarounds? or items on the roadmap?

1 ACCEPTED SOLUTION

Accepted Solutions

Additionally, I created the idea here: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Create-a-Master-bot-and-redirect-to-another-bot...

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

View solution in original post

12 REPLIES 12
renatoromao
Super User
Super User

Hi @rohitjadhav123 ,

 

Thanks for posting in the forum! 🙂

 

Yes, it is possible to do your situation, just follow these steps:

 

- Create a bot

- Create some topics, like HR Group, Finance Group, Directory Group

- Create a principal topic called General

- When user open your principal topic, you force to use Authentication, get the token and you can validate the token sending  as a parameter to Power Automate

- When you Power Automate returns your text variable, you can create a condition if is "HR Group", use the "Go to another topic" action on the PVA

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

I liked your solution but it assumes I have to work with only 1 PVA bot. You missed a point where I mentioned master PVA and slave PVA's. You are assuming HR Group, Finance Group, Directory Group as topics to a PVA bot vs I am saying the individually need to be PVA bots. Moreover, General Topic will be part of separate PVA master bot.

 

 

Hi @rohitjadhav123 ,

 

Sorry, I suggested another way to do it using one PVA bot.

Unfortunately, you cannot redirect to another Bot or something like that. You just can redirect/call another topic, but not Bot.

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Hi @rohitjadhav123 ,

 

A workaround would be to call a Bot Framework bot via Skill, but that's probably not what you want.

 

Can you tell us why you want to separate these in separate bots, instead of using @renatoromao 's suggestion? I would like to understand your scenario so we can potentially bring that as a feature to Power Virtual Agents.

 

Thanks

Additionally, I created the idea here: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Create-a-Master-bot-and-redirect-to-another-bot...

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Renato Romão
https://www.linkedin.com/in/renatoromao/


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

View solution in original post

@renatoromao just to make sure I got it right. What is the connector and action name on MS flow I should be using to validate the token? I didnt find specific one. 

Use the PVA authentication, open the documentation related to Power Virtual agents.

Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Yes, I have already read that have auth setup using azure AD. Its working and giving right token back. I am focusing on following statement of yours

 

"validate the token sending as a parameter to Power Automate"

 

What do you expect Power Automate to do with token? and, what string to send back to bot as an output?

@rohitjadhav123 ,

 

You can get the token message, call the Power Automate using the token as a parameter/input, inside the Power Automate, validate using the Condition or use this token to get some properties related to the user using Office 365 connectors and respond to Power Virtual Agents as an output. 

 

 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,350)