Re: Get answers from a txt or docx file saved in onedrive
Hi
You can try one of these 3 methods
1) You can store your question and corresponding answer in an excel in one drive. When user asks a question build a logic using power automate to look into the excel and pull the corresponding answer.
However, this will work if the user asks the exact wordings as you will have it in your question sheet (as this is a regular expression match).
Or Instead of questions, have key word phrases which are comma separated or in array and use "contains" logic to pull the corresponding answer.
2) Consider each question as a Topic and create a topic with trigger words which user may ask and spawn an answer.
The problem with this would be if there are too many questions, you would have to create that many topics.
3) Build an AI model (NLP) using BERT/SBERT/ChatGPT where your entire Q&A corpus is trained. When the user asks a question, your AI model is called and based on the word similarity your answer is returned.
I have written on how to implement this here:
https://medium.com/@nikviz/integrate-ai-language-models-with-power-virtual-agent-pva-36e357b76734