@automationguy56 wrote:
Thanks @MattJimison for your response.
1. Teams Only Authentication - When I perform this I am getting below error

2. When I Use AAD authentication, I am able to get some responses now from the files present in the SP documents folder like PowerPoint. But it is not able to get the data in the ASPX page
Does this Generative Answers command is capable of look in to SharePoint page and give the answers?
Regards,
M
Hi @automationguy56,
Here is the documentation for the Generative Answers SharePoint/OneDrive data source:
https://learn.microsoft.com/en-us/power-virtual-agents/nlu-boost-node#connect-to-a-sharepoint-site-or-onedrive-for-business
The error you shared is a known, non-blocking (doesn't prevent from saving or publishing the bot).
It appears when you configure the bot security to 'Teams Only'.
You need to setup AAD v2 with admin consent provided for the documented Graph API permissions in order to publish your bot and use it with Generative Answers over SharePoint / OneDrive.
Content from SharePoint aspx pages should be returned (it's documented and I have it working).
Generative Answers over SharePoint / OneDrive summarizes content retrieved from the Graph API.
Have you tried to see what results are returned when you use the Graph Explorer?
Using the Graph Explorer,
- Log in,
- Do a POST
- Use https://graph.microsoft.com/v1.0/search/query
- Use & edit the below query to match your search and SharePoint site.
- Run query
{
"requests": [
{
"entityTypes": [
"driveItem",
"listItem"
],
"query": {
"queryString": "SEARCH TERMS filetype:docx OR filetype:aspx OR filetype:pptx OR filetype:pdf path:\"DOMAIN.sharepoint.com/sites/SITENAME"
},
"from": 0,
"size": 3,
"QueryAlterationOptions": {
"EnableModification": true,
"EnableSuggestion": true
}
}
]
}