Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 03: Build a Microsoft Foundry agent grounded with Fabric data

Introduction

In this task, you help Reta create a Microsoft Foundry agent that uses the Fabric Data Agent you created. This agent will be able to answer questions about Zava’s customer and sales data by using natural language.

Key steps

01: Create the agent

  1. At the top left of the page, select Microsoft Foundry to return to the Foundry home page.

    sepakesn.jpg

  2. In the list of projects, select first project.

    xop388jj.jpg

  3. In the left pane, in the Build and customize section, select Agents.

    yd1ze9qm.jpg

  4. In the Deploy a model dialog, select gpt-4.1 and then select Confirm.

    76wxtq8o.jpg

  5. In the Deploy gpt-4.1 dialog, select Deploy.

  6. Select the newly created agent and then select Try in playground.

    23yufei6.jpg

  7. Configure the fields in the Setup pane by using the following information:

    Field Value
    Agent name ZavaInsightsAgent@lab.LabInstance.Id
    Instructions You are an AI assistant that helps Zava to gain insights from customer churn and sales data. Use the Fabric Data Agent to answer questions about customer behavior and sales trends. Provide clear and concise answers with relevant details.
    Deployment gpt-4o

    zvy32s80.jpg


02: Ground the agent with data from Fabric

  1. On the Setup pane, in the Knowledge (0) section, select + Add.

    s0mmcmlj.jpg

  2. In the Add knowledge dialog, in the list of knowledge types, select Microsoft Fabric .

    8a5ccxcm.jpg

  3. Select the ZavaDataAgent@lab.LabInstance.Id connection and then select Connect.

    qdfttkyy.jpg


03: Configure tools

  1. On the Setup pane, move down to the Actions (0) section and then select + Add.

    87hkowqe.jpg

  2. In the Add action dialog, select Code Interpreter.

    usnk4p56.jpg

  3. In the Add code interpreter action dialog, select Save.

    7whexjpc.jpg

  4. Submit the following prompt. The agent will use the Fabric Data Agent to fetch the relevant data and provide an answer to your question.

     What are the top 5 selling products by total revenue?
    

    5pwda8hj.jpg

    It may take the agent a few moments to respond as it fetches data from the Fabric data agent.

  5. Submit the following prompt. The agent will use the Code Interpreter tool to generate a bar chart of the top five selling products by total revenue.

     Can you show me a bar chart of the top 5 selling products by total revenue?
    

    h5tkf2kr.jpg