In this article, you will able to add Power Virtual Agents chatbots to SharePoint pages without writing any codes.
I developed a component to do a better integration with SharePoint Modern Pages using SharePoint Framework (SPFx).
Component developed to do a better experience for SharePoint users with chatbots inside modern pages.
The demonstration below is just a sample using fake data with Power Virtual Agents and SharePoint.
Awesome @renatoromao - This is going to be useful for many people. Well done!
Thanks, again, @renatoromao! I've just added it to my pages and all seems good!
Thanks, @lahddah and @nmk ! 🙂
This is so beautiful and it comes as expected.
I wanted to know how do we achieve Single sign on authentication If we add bot using the above solution.
@renatoromao Great article and easy to follow.
A question: Does the bot get the content from SharePoint? If so,how do you make that happen?
My page is a classic sharepoint site and I already have build my bot using PVA. All i need to do is place this bot as a mascot on the footer of the homepage.
Hello Renato Can you please upload the Source Code for the above solution in the git for reference
Hi @renatoromao I got this error message "Invalid SharePoint App package. Error: File contains corrupted data." .
Do you have any ideas why?
Thankyou so much sir,
it says unable to connect. please make it clear how to get BO
Hi @PowerUser84 ,
Go to your PVA creation panel >> Channels >> Manage >> edit the name of your bot >> go to publish tab >> publish your chatbot,
Now, go to Apps (on the left menu in the Teams) >> Built for your organization >> Find and open your chatbot, the ID will be there.
Let me know how it goes.
Thanks. After providing the BOT app ID, it is still saying unable to connect.
Hi @renatoromao thanks for the solution, but I get an Unable to connect message; do you know how I can solve this issue?
Did anyone find solution to unable to connect error. Please reply
@renatoromao A little update if it helps you in solving
I have developed a custom extension using spfx and getting same error. On f12 i found the below response on calling this URL
Receive same error response if loads the above webpart shared by you.
Why i cant see anyone reply here 😞
@PowerUser84 Unfortunately I was Unable to solve this issue.
@renatoromao : Hi, do u have any update for us? need your help to fix please
Found the resolution for that.
I will deploy the solution today and keep you posted.
Sorry for that!
@renatoromao : waiting for your kind response.
Waiting for your update and if you could solve this and update here, its really appreciate.
Change end point to this:
Thank you @SalahEddine42 for the reply,
I have basic coding knowledge, so I am not sure where to add the endpoint in the code. can you help with that?
Hi! This SPFx worked for the classic version of Power virtual agents. For the new version the ID is not recognized. Any solution?Thank you
So it works for me after few hours.
Here is a workaround. (sorry screenshot are in french)
1. Copy this link form mobile application
2. Onpen edge and F12 or ctlr + shift + I
3. Click on network then fetch/xhr
4. It opens the webchat at the left and at your right you have the devtools
5. Click on webchatsettings
6. Select Response (Answer ?)
7. Now we have the bot ID
8. Open the spfx and paste the bot ID
9. Voilà it's working now
Awesome package! Thanks for sharing!
Can I get the current upn or user id from the current user in this integration of Virtual Chatbot in SharePoint? Or does it only works anonymous?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.