Level 400About 45 minutesAdapted November 2026

AB-410T00 Lab 10: Query Contoso service history with AI Builder grounded prompts

Ground an AI Builder prompt directly on the Dataverse Work Order table using a customer input variable, then configure an AI-powered Row Summary inside the Contoso Service Management model-driven app.

IGOE AI learning resource · Independent educational content, not official Microsoft courseware. About our content

Adapted from Microsoft Learning

Original Microsoft Learning lab page

Adapted from Lab 10: Query Contoso Service History with AI Builder Grounded Prompts in the MicrosoftLearning/AB-410T00-Build-intelligent-applications repository, made available by Microsoft Learning under the MIT License.

Copyright (c) 2024 Microsoft. See the repository LICENSE file.

View full MIT License text
MIT License

Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Changes made by IGOE AI: converted into a UK English follow-along checklist with browser progress tracking, prerequisites and a recap. This is not an official Microsoft page and is not endorsed by Microsoft.

0 of 32 steps complete

What you will build

A tested 'Contoso Service History Assistant' AI Builder prompt grounded on five Work Order columns, plus a live Row Summary configured on the model-driven app Work Order table.

Prerequisites

  • Completed Lab 03 (Work Order table with sample data) and Lab 06 (model-driven app).
  • AI Builder credits active in Dev One (verified in Lab 00).

Scenario

Before replying to a customer, Contoso agents need fast answers about past work orders, common failures and open priorities without manually querying multiple views. Grounding prompts on Dataverse data keeps answers accurate.

Learning outcomes

By the end of this lab, you will be able to:

  • Create an AI Builder prompt in AI hub and ground it on selected Dataverse columns.
  • Add a dynamic input variable to filter or focus responses per customer.
  • Enable and review Row Summary cards inside a Power Apps model-driven app.

Lab instructions

Phase 1: Open AI Builder & Create a New Prompt

Area: Power Apps / AI Hub

Phase 2: Write the Prompt Instruction

Area: AI Builder Prompt

Phase 3: Add the Work Order Table as a Data Source

Area: Dataverse Grounding

Phase 4: Add an Input Variable

Area: Dynamic Input

Phase 5: Test the Grounded Prompt

Area: Prompt Testing

Phase 6: Configure a Row Summary for the Work Order Table

Area: Dataverse Table

Phase 7: View the Row Summary in the Model-Driven App

Area: Model-Driven App

Quick reference

Component Setting / Name Grounded Fields / Value Pattern Purpose
Grounded Prompt Contoso Service History Assistant Work Order table: 5 columns (Customer Name, Issue Description, Priority, Request Status, Resolved Date) + {CustomerName} On-demand natural-language history queries across all Work Order records.
Test Sample Values Fabrikam Industries & Northwind Traders Input variable CustomerName Verify Dataverse grounding accuracy without fabricating answers.
Table Row Summary Row summary on Work Order Summarize Work Order with + 5 columns (Customer Name, Issue Description, Priority, Request Status, Resolved Date) Automatic on-demand Copilot summary displayed on model-driven main forms.

What you built

You built and tested the Contoso Service History Assistant grounded prompt in AI Builder and configured an AI Row Summary directly on the Work Order table in the model-driven app.

Open the original Microsoft Learning lab page or view the source GitHub repository.