---
title: Use Databricks data in Microsoft Copilot Studio
description: Learn how to build agents in Microsoft Copilot Studio using Databricks data as a knowledge source or by connecting Genie Agents as tools.
canonical_url: https://docs.databricks.com/aws/en/integrations/msft-power-platform/copilot-studio
---

# Use Databricks data in Microsoft Copilot Studio

This page explains how to use your Databricks data in Microsoft Copilot Studio after creating a connection. You can connect Genie Agents as tools or use your Databricks data as a knowledge source to build custom agents.

To compare the Genie integrations for Microsoft and choose a setup, see [Microsoft Genie integrations overview](https://docs.databricks.com/aws/en/integrations/msft-genie.md).

## Prerequisites

Before you use Databricks data in Copilot Studio, you must create a connection to Databricks on Microsoft Power Platform. See [Create a Databricks connection on Microsoft Power Platform](https://docs.databricks.com/aws/en/integrations/msft-power-platform/setup.md).

## <a id="use-genie-copilot" />Connect to Genie Agents in Copilot Studio

> [!IMPORTANT]
>
> Enable the **Managed MCP Servers** preview in your workspace. See [Manage Databricks previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).

Genie Agents are a Databricks feature that allows business teams to interact with their data using natural language. For more information about setting up Genie Agents on Databricks, see [Genie Agents](https://docs.databricks.com/aws/en/genie-agents/index.md). Make sure to provide your Databricks Genie Agent a clear name and description.

To add a Genie Agent as a tool in a Copilot Studio agent, do the following:

1. From the Copilot Studio sidebar, click **Agent**.

2. Select an existing agent or create a new agent by clicking **+ Create blank agent**.

3. Select your agent's model. Databricks recommends selecting Sonnet 4.5 as your agent's model.

4. Under **Instructions**, describe your agent's capabilities and how it should behave.
   * Databricks recommends including the following in the instructions: “Always continue polling the Genie Agent until you receive a response. Do not stop after a few seconds.” This prevents the integration from repeatedly sending a "still processing" message while the agent is polling the Genie Agent.

5. Under **Tools**, click **+ Add a Tool**.

6. Search for "Databricks" or select **Model Context Protocol**.

7. Select **Databricks Genie**, choose your connection to Databricks next to **Connection**, and click **Add and configure**.

8. Configure the Databricks Genie tool:
   1. Name the tool. A more descriptive tool name helps the Copilot Studio agent orchestrate requests.
   2. Under **Inputs**, enter the Genie Agent ID or select the Genie Agent from the dropdown menu.
   3. Save the tool.
   4. (Optional) Refresh the tools section in the configuration screen to confirm that the Genie Agent is connected.

9. In the upper-right, click **Settings**. Under the **Orchestration** section, click **Yes** to use AI orchestration for your agent's responses.

10. To publish your agent, click **Publish** in the upper-right side.

11. (Optional) Publish the Genie-enabled Copilot Studio agent to Microsoft Teams or Microsoft 365 to distribute Genie's insights to other users. To learn how to publish your agent, see [Microsoft's documentation](https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-add-bot-to-microsoft-teams).

You can add your agent to a Power App. To set up a Power App, see [Use your Databricks data to build Power canvas apps](https://docs.databricks.com/aws/en/integrations/msft-power-platform/usage.md#use-powerapps). To add your Copilot Studio agent to a Power App, see [Microsoft's documentation](https://learn.microsoft.com/power-apps/maker/canvas-apps/add-custom-copilot#connect-copilot-to-your-app).

To use the agent in your published app, open the published application, click the **Copilot** icon in the upper-right corner, and ask a question.

## <a id="use-copilot" />Use Databricks as a knowledge source in Copilot Studio

To add your Databricks data as a knowledge source to a Copilot Studio agent, do the following:

1. From the Copilot Studio sidebar, click **Agent**.

2. Select an existing agent or create a new agent by clicking **+ New agent**.
   * Describe the agent by inputting a message and then click **Create**.
   * Or, click **Skip** to manually specify the agent’s information.

3. On the **Knowledge** tab, click **+ Knowledge**.

4. Click **Advanced**.

5. Click **Databricks** as the knowledge source.

6. Enter the catalog name your data is in.

7. Click **Connect**.

8. Select the tables you want your agent to use as a knowledge source and click **Add**.
