Copilot Studio Generative Answers (NLU Boost) Node: Setup Guide & Troubleshooting

This article explains one of Copilot Studio’s standard features for utilizing generative AI: the “Generative answers” node (formerly known as “Generative response” or “NLU Boost”).

スポンサーリンク

Using Generative AI from Copilot Studio

There are two straightforward ways to use generative AI from Copilot Studio:

  • Generative answers
  • Prompt actions (AI Builder)

While it’s also possible to connect to AI services like Azure OpenAI through custom connectors or Power Automate, starting with these two methods is probably the best approach.

In this article, I’ll explore the “Generative answers” node in detail.

Generative answers

The “Generative answers” node generates answers using knowledge (data sources) with RAG. *Generation is also possible without knowledge
Screenshot showing the Generative answers node interface in Copilot Studio

Basic Usage

First, prepare sites or files that will serve as knowledge. For this example, I created a SharePoint Online site containing cat documents.
Screenshot showing a SharePoint site with cat documentation
Start by going to Data source editing and clicking “Add knowledge”,
Screenshot showing the Add knowledge option in Data source editing
Select SharePoint,
Screenshot showing SharePoint selection for knowledge source
Enter the URL of the site you created earlier (https:// not needed) and add the knowledge source.
Screenshot showing how to enter the SharePoint site URL
Note that knowledge is added to the agent (not per topic), so the added SPO site is also displayed in the knowledge section of the [Overview] tab.
Screenshot showing the knowledge displayed in the Overview tab
Now when you ask questions about information in your knowledge base, it will generate answers based on that information.
Screenshot showing a generated answer based on the knowledge source

Troubleshooting: Why is my Generative Answer not working?

The Indexing Delay (The most common issue)

If you just added a SharePoint site or uploaded a file, you might need to wait
15 to 30 minutes before the bot starts answering correctly.
Copilot needs time to index your data.

Don’t panic—go grab a coffee and come back later.

Storing the Response in a Variable

By setting a variable in [Advanced] → [Save bot response with a name] in the properties, you can store the generative AI’s response in a variable.
Screenshot showing how to save bot response with a variable name in Advanced properties
There are two ways to save responses. If you select “Text only”,
Screenshot showing the Text only option selected for saving responses
Only the generative AI’s response (text) is stored,
Screenshot showing the stored text-only response in a variable
If you select “Completion”, the variable becomes a record type,
Screenshot showing the Completion option selected for saving responses
And you can access not only Content (text only) but also MarkdownContent (text in markdown format) and other properties.
Screenshot showing the record type variable with Content and MarkdownContent properties

Generating Responses by Referencing Only Knowledge (Not Using AI’s Built-in Knowledge)

When using the “Generative answers” node with default settings, “Allow use of AI’s built-in knowledge” is turned ON, so it can answer questions even if the information isn’t in your knowledge base.
Screenshot showing the Allow use of AI's built-in knowledge option turned on
While convenient, this can lead to hallucinations or unintended behavior, so if you “want to generate answers only from your knowledge base,” turn this off.
Screenshot showing the Allow use of AI's built-in knowledge option turned off
If information isn’t found in the knowledge base, the variable will be “empty,” allowing you to specify what happens when no answer is found using conditional statements later in the flow.
Screenshot showing conditional handling when no answer is found in the knowledge base

Generating answers Without Using Knowledge

While it’s probably not a common scenario, if you “want to generate responses without using knowledge (using only the AI’s built-in knowledge),” you can turn ON “Search only selected sources” and leave knowledge sources unselected, allowing the AI to create answers on its own.
Screenshot showing the Search only selected sources option turned on with no knowledge sources selected

So the “Generative answers” node is a feature that makes it easy to generate AI-powered answers, so I encourage you to try it out.

In the next article, I’ll provide a detailed explanation of AI Builder’s “Create prompt” feature.

Bonus 1: Referencing Classic Data

When you open the [Classic data] dropdown, you can also reference data sources from Copilot Studio’s early days, but I think you’d only use this when connecting directly to Bing Search or Azure OpenAI.
Screenshot showing the Classic data dropdown with options like Bing Search and Azure OpenAI

However, I feel it’s more flexible to use either of these through Power Automate actions, so I don’t think I’d use this much anyway.

Bonus 2: Supported File Formats for Knowledge

Currently, the following four file types can be used for knowledge:

  • SharePoint pages (modern pages)
  • Word documents (docx)
  • PowerPoint documents (pptx)
  • PDF documents (pdf)

Related Articles

コメント

Copied title and URL