Learn how to add and manage different knowledge sources in Copilot Studio—including Dataverse tables, uploaded files, and Azure AI Search. This guide covers setup steps, configuration tips, best practices, and key considerations to ensure your agent delivers accurate, context-aware responses.
Configure tables, synonyms, and glossary definitions to ground your agent in structured business data.
When building AI agents in Microsoft Copilot Studio, connecting your agent to real business data greatly improves the accuracy and usefulness of responses. One powerful way to achieve this is by integrating Microsoft Dataverse tables as a knowledge source.
By doing this, your agent can reference structured business data stored in your environment instead of relying only on documents or static knowledge sources. This helps the AI provide more contextual and relevant answers to users.
Dataverse tables commonly contain valuable business information such as:
Access records from contacts, accounts, and customer relationship tables.
Use opportunity tables and revenue data for intelligent sales responses.
Track tasks, activities, and schedules stored in Dataverse.
Use organization-specific tables that store internal operational data.
You can also enhance the AI’s understanding by adding synonyms for table columns and defining glossary terms. These additions help the AI interpret business terminology correctly.
Copilot Studio agents require Dataverse search to use this knowledge source. If you cannot add a Dataverse table to your agent, ask your administrator to enable Dataverse search in your environment.
Dataverse search must be configured first so the agent can discover and retrieve information stored inside the tables. Without this capability enabled, the tables cannot be used as a knowledge source.
Follow these steps to connect Dataverse tables to your Copilot Studio agent:
Note: You can add up to 15 Dataverse tables per knowledge source. Table recommendations are often based on the name of your agent.
Following these tips increases response accuracy and helps reduce misunderstandings by the AI when referencing your Dataverse tables.
Synonyms and glossary definitions provide additional context that helps the AI understand your data structure. These elements act as grounding information for the AI orchestration process.
By providing extra descriptions for columns and terminology, the AI becomes better at interpreting user questions and mapping them to the correct data fields.
This increases the likelihood that the agent will correctly recognize user requests and generate responses based on the actual data contained in your tables.
Suppose your travel assistant agent uses a Dataverse table containing a column called cr_123_abc.
Because this name is not meaningful to the AI, you should provide a description such as:
"cr_123_abc represents the departure city for each flight represented by the flight code."
VP refers to the Vice President value in the JobTitle column of the Contact table.
Activity Owner refers to the PartyId column in the ActivityParty table that identifies the owner of an activity.
Opportunity Revenue refers to the Custom Revenue column stored in the Opportunity table.
Overdue Task refers to tasks where the state code is open and the scheduled end date is earlier than today.
Note: Glossary descriptions are examples. You should test different descriptions to determine which ones produce the best results. Updated glossary terms may take up to 15 minutes to become available.
Dataverse knowledge sources can also support Multiline Text (MemoType) and File (FileType) columns. This allows the agent to use unstructured reasoning to analyze longer text content or file attachments stored inside Dataverse.
This capability enables higher-quality responses because the agent can search through larger content fields rather than relying only on structured columns.
Important: This feature is currently in preview. Preview features are not meant for production use and may have restricted functionality.
To enable search for multiline text and file columns, you must configure the table settings in the Power Apps maker portal.
Once published, these fields become searchable and your Copilot agent can retrieve information from them.
In Microsoft Copilot Studio, you can upload documents directly to your agent and use them as a knowledge source. These files allow the agent to generate responses using generative AI based on the content contained within your documents.
Instead of manually building complex topics or flows for every possible question, the agent can read the uploaded documents and answer user questions in a natural conversational format. This approach is especially useful when you want the agent to reference manuals, policies, documentation, or internal knowledge bases.
When a user asks a question and there isn't a defined topic to answer it, the agent automatically analyzes the uploaded documents and generates a response using the information it finds.
When you upload documents at the agent level, those documents become available to the agent across all topics and conversations. However, documents can also be uploaded inside Generative Answers nodes if you want more control over which parts of your agent can use them.
This flexibility allows makers to decide whether documents should be globally accessible to the entire agent or restricted to specific conversational scenarios.
When documents are uploaded as knowledge sources, they are securely stored in Microsoft Dataverse. The agent then indexes and analyzes the document content so it can reference the information when responding to user questions.
If a user asks a question and the agent does not have a predefined topic to answer it, the generative AI system automatically searches through the uploaded documents and produces a relevant response.
The number of documents you can upload depends on the available Dataverse file storage capacity in your environment.
Note: You can also upload groups of files using the File Groups feature when managing larger sets of documentation.
Copilot Studio agents require Dataverse search to use uploaded files as a knowledge source. If you cannot add documents to your agent, ask your administrator to enable Dataverse search in your environment.
Adding documents to your Copilot Studio agent is straightforward. Follow these steps to upload files and connect them as a knowledge source:
Note: Providing a clear and detailed description improves how generative AI interprets the document and helps the orchestration system produce more accurate responses.
Following these tips ensures the AI can effectively read and interpret your uploaded documents, producing accurate and context-aware answers.
Word (doc, docx), Excel (xls, xlsx), and PowerPoint (ppt, pptx) documents are supported.
PDF files, Text files (.txt), Markdown (.md), and log files (.log).
CSV, XML, JSON, YAML, and HTML document formats.
OpenDocument (odt, ods, odp), EPUB, RTF, Apple iWork files, and LaTeX (.tex).
Copilot Studio can also extract knowledge from annotated images embedded inside PDF files. These annotations are usually referred to as alt-text, which provides a textual description of the image.
If an image inside a PDF contains a meaningful description in its alt-text, the AI can analyze that text and use it to answer user questions.
Imagine a PDF document that contains a diagram explaining a sales funnel. If the image includes descriptive alt-text describing each stage of the funnel, users could ask questions like "What are the stages in a sales funnel?" and the agent would generate an answer based on the information contained in the annotated image.
For best results, always include clear and detailed alt-text descriptions for embedded images in PDF documents.
File groups let you combine up to 500 files into a single knowledge source, making it easier for your agent to narrow its search and find the most relevant content. Grouping files helps your agent answer user queries more accurately and efficiently.
File groups are particularly useful when information varies based on specific factors such as location, role, or other attributes. Instead of searching all individual files at once, the agent first uses instructions to identify the right file and then extracts the relevant information.
Individual files act as separate knowledge sources, while a file group combines multiple files into one. Using instructions, the agent can first locate the correct file within the group and then retrieve relevant information, resulting in more accurate and context-aware answers.
Example: An airline's bot has multiple PDFs for baggage policies depending on travel type, class, and customer tier. Using a file group with instructions, the agent finds the correct document based on these variables before answering.
To create a file group using new files:
Once added, the file group icon appears on the Overview or Knowledge pages. You can always review, add, or remove files and update instructions, name, or description.
Instructions help the agent filter through files based on variables like location, date, or other user-specific criteria. Without instructions, the agent searches all files in the group equally.
Example: A travel bot with baggage policies per customer tier can use instructions to first select the correct file for economy, business, or first-class travelers, ensuring accurate responses.
Azure AI Search is a powerful search engine that can search through large collections of documents. In Copilot Studio, you can add Azure AI Search as a knowledge source to provide your agent with fast, intelligent, and vectorized search capabilities.
This is ideal for scenarios where your data is stored in large document repositories, and you want your agent to retrieve the most relevant content efficiently.
Note: Copilot Studio does not support Azure AI Search indexes configured for virtual networks.
Copilot Studio supports vectorized indexes using integrated vectorization. Prepare your data and choose an embedded model to vectorize both the stored data and incoming prompts at runtime. This reduces the need to write custom functions for vectorization.
Copilot Studio also supports the semantic ranker feature. Ensure it is configured in Azure AI Search before adding the connection in Copilot Studio.
After adding the connection, it appears in the knowledge sources table. Status shows In Progress while indexing, then changes to Ready once indexing completes.
metadata_storage_path is included, it is used as the citation field. Otherwise, Copilot Studio uses any field containing a complete URL link.Note: Ensure users of your agent have permission to access the sources the citations point to. Restricted links cannot be accessed by users, and citations may not display.