Knowledge Sources

Connect and Configure Knowledge Sources for Your Agent

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.

Updated Mar 2026
12 Min Read

Add Dataverse Tables

Configure tables, synonyms, and glossary definitions to ground your agent in structured business data.

Why Use Dataverse Tables as a Knowledge Source?

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:

Customer Data

Access records from contacts, accounts, and customer relationship tables.

Sales Opportunities

Use opportunity tables and revenue data for intelligent sales responses.

Tasks & Activities

Track tasks, activities, and schedules stored in Dataverse.

Custom Tables

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.

Important Requirement

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.

How to Add Dataverse Tables to Your Agent

Follow these steps to connect Dataverse tables to your Copilot Studio agent:

  • Step 1: Open your agent in Copilot Studio.
  • Step 2: Go to either the Overview page or the Knowledge page.
  • Step 3: Select Add Knowledge.
  • Step 4: Choose Dataverse as the knowledge source.
  • Step 5: Search and select the tables you want to add.
  • Step 6: Review the knowledge name and description.
  • Step 7: Optionally add synonyms and glossary definitions.
  • Step 8: Select Add to Agent to complete the setup.

Note: You can add up to 15 Dataverse tables per knowledge source. Table recommendations are often based on the name of your agent.

Best Practice Tips
  • Provide a detailed description: Clearly summarize the purpose of the tables, columns, and data included. This helps the agent understand the context and ensures accurate responses.
  • Enable generative AI context: When generative AI is active, rich descriptions help the system interpret user queries and generate context-aware answers.
  • Add synonyms and glossary terms: For complex column names, acronyms, or domain-specific terminology, this step improves the AI's ability to match queries with the correct data.
  • Keep it concise yet comprehensive: Avoid overly vague descriptions but focus on key points that a new user or agent would need to understand the data.

Following these tips increases response accuracy and helps reduce misunderstandings by the AI when referencing your Dataverse tables.

Why Synonyms and Glossary Terms Matter

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.

Example Scenario

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."

Sample Glossary Definitions

Acronym

VP refers to the Vice President value in the JobTitle column of the Contact table.

Custom Ownership

Activity Owner refers to the PartyId column in the ActivityParty table that identifies the owner of an activity.

Custom Field

Opportunity Revenue refers to the Custom Revenue column stored in the Opportunity table.

Complex Rule

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.

Enable Search for Multiline Text and File Columns (Preview)

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.

Prerequisites
  • Dataverse search must be enabled.
  • You must have maker or admin access in the Power Apps maker portal.
  • Search indexing may incur additional Dataverse capacity costs.

Configure the Dataverse Table in Power Apps

To enable search for multiline text and file columns, you must configure the table settings in the Power Apps maker portal.

  • Sign in to Power Apps and select your environment.
  • Navigate to Dataverse → Tables.
  • Select the table used by your Copilot Studio agent.
  • Enable the Searchable option for the columns you want indexed.
  • Open Data Experiences → Views.
  • Select the Quick Find View.
  • Add the searchable columns to the view.
  • Use Edit Find Table Columns to configure searchable fields.
  • Click Save and Publish.

Once published, these fields become searchable and your Copilot agent can retrieve information from them.

Known Limitations

  • If you add a Dataverse knowledge source before configuring Multiline Text or File columns, the system may take up to two days to backfill indexing.
  • To speed up the process, remove and re-add the Dataverse knowledge source after configuring search fields.
  • Tables, images, and text stored in non-organization languages are not supported in file attachments.

Upload Files as a Knowledge Source

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.

Important Note About Document Uploads

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.

How Uploaded Documents Work

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.

System Requirement

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.

Steps to Upload Files as a Knowledge Source

Adding documents to your Copilot Studio agent is straightforward. Follow these steps to upload files and connect them as a knowledge source:

  • Step 1: Open your agent in Copilot Studio.
  • Step 2: Select Add Knowledge from the Overview or Knowledge page.
  • Step 3: Upload your document by dragging and dropping the file or browsing your computer.
  • Step 4: Provide a name for the document. By default, the file name is used.
  • Step 5: Add a detailed description of the document.
  • Step 6: Select Add to Agent to finish adding the 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.

Best Practice Tips
  • Use descriptive file names: Ensure each document clearly reflects its content, e.g., "Employee_Leave_Policy_2026.pdf". This helps the agent identify the purpose at a glance.
  • Provide detailed summaries: Add a clear description for each document, summarizing the key topics or sections. This improves the AI’s understanding and response quality.
  • Organize documents logically: If possible, group similar documents together (e.g., training guides, policies, manuals) to make searches more accurate.
  • Keep file size in mind: Ensure files are under the 512 MB limit and avoid encrypted or password-protected files, so the agent can process them correctly.
  • Leverage annotated images: For PDFs with embedded images, include alt-text or detailed annotations to help the AI understand visual content.

Following these tips ensures the AI can effectively read and interpret your uploaded documents, producing accurate and context-aware answers.

Supported Document Types

Microsoft Office

Word (doc, docx), Excel (xls, xlsx), and PowerPoint (ppt, pptx) documents are supported.

Common Documents

PDF files, Text files (.txt), Markdown (.md), and log files (.log).

Structured Data

CSV, XML, JSON, YAML, and HTML document formats.

Other Formats

OpenDocument (odt, ods, odp), EPUB, RTF, Apple iWork files, and LaTeX (.tex).

Annotated Image Support in PDF Files

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.

Example Scenario

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.

Important Limitations

  • Image, video, executable, and audio files cannot be uploaded as knowledge documents.
  • Images are only supported when they are embedded inside PDF files.
  • Embedded images are supported in all languages.
  • Icons are not supported for knowledge extraction.
  • Files larger than 512 MB are not supported.
  • Files with encryption, sensitivity labels, or password protection cannot be uploaded.
  • An agent can include a maximum of 500 uploaded files as knowledge sources.

Create File Groups

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.

Requirements

  • Only locally uploaded files are supported; OneDrive and SharePoint files are not allowed.
  • Copilot Studio agents require Dataverse search to use file groups. Ask your administrator to enable it if unavailable.

File Group Components

  • Name and Description: Helps the agent understand what the knowledge is about.
  • Instructions: Guides the agent on how to search through the file group for relevant answers.
  • Knowledge: The actual files that contain the information for the agent.

File Groups vs Individual Files

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.

Create a File Group

To create a file group using new files:

  • Select Add knowledge from Overview, Knowledge pages, or a generative answers node.
  • Upload one or more files via drag-and-drop or browse your device.
  • From the Add to agent dropdown, select Upload as a group.
  • Update the file group’s name and description, then select Create.

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.

Notes & Important

  • Note: Every change to a file group must be saved using the Save button.
  • Important: Deleting a file group permanently removes all files, instructions, name, description, and indexed data. To restore, you must re-upload the files.
  • File groups can contain up to 500 files, each up to 512 MB.
  • Up to 25 file groups can be created per agent.

Using Instructions in File Groups

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.

Add Azure AI Search

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.

Configuration Prerequisites

  • You need an Azure account. Create one at Microsoft Azure if you don’t have one.
  • Set up and configure Azure AI Search using the following guides:
    • Create an Azure AI Search service in the portal
    • Connect using keys
    • Create a vector index
    • Quickstart: Vectorize text and images using Azure portal
    • Use integrated data chunking and embedding
  • Use key-based authentication to connect to Azure AI Search.

Note: Copilot Studio does not support Azure AI Search indexes configured for virtual networks.

Vector Index and Semantic Ranker

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.

Create the Connection in Copilot Studio

  1. Open your agent.
  2. Select Add knowledge from Overview, Knowledge pages, or a generative answers node.
  3. From the Add Knowledge dialog, select Featured → Azure AI Search.
  4. Select Create new connection.
  5. Choose the authentication type:
    • Access Key
    • Client Certificate Auth
    • Service Principal (Microsoft Entra ID)
    • Microsoft Entra ID Integrated
  6. Enter the required details (e.g., Azure AI Search Endpoint URL and Admin Key for key-based authentication).
  7. Select Create to complete the connection. A green check mark confirms success.
  8. Select Next and specify the Azure AI Search vector index to use (one vector index per agent).
  9. Select Add to agent to finish.

After adding the connection, it appears in the knowledge sources table. Status shows In Progress while indexing, then changes to Ready once indexing completes.

Returning Citations

  • Include a URL field with the link to the document in your Azure AI Search index. Copilot Studio interprets this as a citation.
  • If 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.