Hello,
I am brand new to this and i have created a PVA bot. I been doing research and tried a few different ways to implement when a user asks a bot a for a document and searchs the sharepoint and returns back results that are similar to the documents they are looking for?
If anyone has any examples of step by to set up so I can get an Idea that would be greatly appreciated.
Also if anyone has an example for a topic that links or calls to the automate flow for an example too.
Looks good - don't forget:
- your bot must be created in the US
- if you use Sharepoint as a source you'll need to activate authentication to make sure users have only access to the documents they are allowed to see.
Remi,
I tried doing the Generative answers. Am I missing anything?
Depending on what you are trying to accomplish (from what I read you want to surface sharepoint documents to users via PVA) then you should look at @HenryJammes reply:
"
One way to search SharePoint and returns results to the user is to use Generative Answers:
I also wrote that post on using the Graph API with PVA:
"
My recommendation would be using the new generative answer capability - that way you have 0 flow to code, just configure your PVA to point to your Sharepoint site, that's it
@DEKEITH you can see in the output of your "get file" action that the "body":{"value":[ ]} is empty: it means the action did not find any documents based on the search criteria. You should look into it because that's the reason why nothing is returned to your PVA.
output of get file
Append to string I couldnt open any more so I included more from the flow
Thanks for your assistance.
Can you expand each section of your flow run and see which step did not return the expected data? My guess is there is something wrong in the "get file" or the "apply to each" loop
@HenryJammes Below is the code for return value to Agents. Fairly new to all this, not sure if this is what you were asking or not.
@DEKEITH I can see in your screenshot that the last step of your flow has a gray "X" icon on it - which means it was not executed: probably because previous step did not return any value. Can you expand each section of your flow run and see which step did not return the expected data? My guess is there is something wrong in the "get file" or the "apply to each" loop
Romain The Low-Code...
74
Pablo Roldan
61
stampcoin
10