Generative answers with Search and summarize the content with Power Virtual Agents
Published: 2023-08-20 12:12:52


---
title: Generative answers with Search and summarize the content with Power Virtual Agents
published: true
date: 2023-08-05 07:29:41 UTC
tags: 
canonical_url: https://the.cognitiveservices.ninja/generative-answers-with-search-and-summarize-the-content-with-power-virtual-agents
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z2d4onqy2oyw7aeeijxe.jpg
series: 101 - Power Virtual Agents
---

Photo by <a href="https://unsplash.com/@evgenit?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Evgeni Tcherkasski</a> on <a href="https://unsplash.com/photos/SqsbTuo5jP0?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
  

In a [previous article](https://the.cognitiveservices.ninja/generative-answers-with-power-virtual-agents), I discussed the possibility of using generated answers as a fallback when creating a bot; however, this feature can also be applied to a specific topic.

This can be accomplished by utilizing various internal and external information sources, such as:

External sources:

- Bing Search

- Bing Custom Search

Internal resources:

- SharePoint

- OneDrive for Business

Custom data (internal or external):

Provide your content from any source, like a Power Automate Flow, a Skill, or another source.

You can also incorporate information sources into a topic using the "Generative Answers" node. This node enables you to designate sources the node will search, depending on your inputs. The search outcomes will be condensed and assessed for data reliability.

## **Create generative answers**

The Generative Answers node lets you incorporate generative answers into your bot's topic. This feature allows you to search both internal and external information sources at the node level, enhancing your bot's conversations.

1. Open the authoring canvas for your topic, and pinpoint the location where you would like to incorporate generative answers.

2. Under the **Advanced** menu, add a **Generative Answers** node.
![](https://learn.microsoft.com/en-us/power-virtual-agents/media/nlu-gpt/generative-ans-node-22may23.png)
3. On the Generative answers node, select **Edit** under **Data sources**.
![](https://learn.microsoft.com/en-us/power-virtual-agents/media/nlu-gpt/create-gen-ans-node-image-highlight-22may23.png)
4. Specify the data sources you'd like the node to use, and add them to your list. This adds the source to the node's set of resources.
![](https://learn.microsoft.com/en-us/power-virtual-agents/media/nlu-gpt/nlu-generative-ans-sns-sources.png)
5. Once you have finished inputting sources, close the menu.
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690546067808/d9298f48-815a-4546-a868-523a5928c9c2.png?auto=compress,format&format=webp)
6. Within the properties in your node, you can select to post the node output as a message or save it in a variable.

7. When saving it to a variable, you can pick up the content of it with, e.g., PowerFX or Power Automate Flow.

The topic will now generate answers based on the information sources provided to the node.

## Conclusion

In conclusion, incorporating generative answers in a bot's topic enhances its conversational capabilities by utilizing various internal and external information sources. This feature allows the bot to provide more relevant and reliable information, improving user experience and satisfaction.