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.
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?
Solved! Go to Solution.
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/
Hi @Anonymous ,
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/
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 @Anonymous ,
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/
Hi @Anonymous ,
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/
@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.
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?
@Anonymous ,
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.
Keep up to date with current events and community announcements in the Power Virtual Agents community.
A great place where you can stay up to date with community calls and interact with the speakers.