MSBA-310 · Lesson 4 of 12 · 19 min
Data architecture for AI solutions
▶ Video coming soon A video version of this lesson is on the way.
"Show me where the facts come from." Wendell said it in the first studio session, and Bram wrote it at the top of the data page of his design. An agent's answers are only as reliable as the information it grounds on, and its actions are only as safe as the data access it is given. This lesson covers how an architect designs the data side of an AI solution: which sources ground the agent, how their quality is assessed, where new records live, how access is enforced, and how residency, retention and lineage are handled.
Three kinds of data an agent touches
It helps to separate the data in an AI solution into three kinds, because each is designed differently.
Knowledge is content the agent reads to answer questions: procedures, policy wordings, website pages, guides, FAQs, product information. In Copilot Studio knowledge sources include SharePoint sites and files, public websites, uploaded files, Dataverse tables, Copilot connectors and enterprise search services. In Microsoft 365 Copilot, knowledge comes from the Microsoft Graph and connectors. In Foundry, knowledge typically comes through Foundry IQ or Azure AI Search indexes.
Records are structured business data the agent reads or writes through tools: a policy in BrokerDesk, a claim notice, a contact, a case. Records have owners, schemas, validation rules and audit requirements.
Conversation and telemetry data is what the solution itself creates: transcripts, analytics, tool call logs, flow run history, evaluation results. It is often overlooked, and it can contain personal information.
For each kind the architect answers the same questions: what is the source, who owns it, how good is it, who may see it, where does it live, and how long is it kept?
Assessing grounding data quality
The AB-100 study guide asks architects to review grounding data for accuracy, relevance, timeliness, cleanliness and availability. Bram turned these five into a short scorecard and applied it to every candidate source.
Accuracy. Is the content correct? Who would know if it were wrong? The claims procedures in SharePoint were mostly correct, but two pages described a carrier portal that had been replaced.
Relevance. Does the content answer the questions the agent will be asked? A 60-page carrier claims manual is accurate and largely irrelevant to a client at midnight. Shorter, purpose-written content often beats a large library.
Timeliness. How quickly does the content go out of date, and how quickly does the source reflect changes? The carrier contact spreadsheet was updated whenever someone remembered; Bram found three carriers with changed claim email addresses.
Cleanliness. Is the content well structured, without duplicates, contradictions or noise? Quillfield had four versions of the "after a loss" guide in different folders.
Availability. Can the agent reach the content reliably, with the right permissions, in the channels it serves? Content in a SharePoint site that requires a signed-in employee is not available to an anonymous client conversation.
| Source | Accuracy | Relevance | Timeliness | Cleanliness | Availability | Decision |
|---|---|---|---|---|---|---|
| Public website "After a loss" pages | Good | High for clients | Reviewed yearly | One version | Public | Use for client agent after a content refresh |
| Claims procedures SharePoint site | Two outdated pages | High for staff | Ad hoc | Four duplicate guides | Employees only | Fix, then use for staff agent only |
| Carrier contact spreadsheet | Three wrong addresses | Essential | Ad hoc | Inconsistent columns | Employees only | Move to a Dataverse table with an owner |
| Carrier claims manuals (PDF) | Good | Low for clients | Annual | Long and mixed | Employees only | Exclude from client agent |
| BrokerDesk policy records | Good | Essential for identification | Real time | Structured | API with OAuth | Access through tools only |
The scorecard produced work before it produced design. Bram asked the claims manager to retire three of the four duplicate guides, Tobias to correct the outdated portal pages, and Pascal to agree an owner for the carrier contact data. In his experience the content work is often the largest single task in an AI project, and it is the work most often skipped.
Knowledge for the client agent versus the staff agent
The data design split cleanly along the channel line drawn in lesson 3.
The client intake agent would serve people who are not employees, initially without signing in. It therefore grounds only on public content: Quillfield's refreshed "After a loss" pages, a short purpose-written FAQ on what information carriers need, and general safety guidance (turn off water at the main, photograph damage before cleanup, keep receipts for emergency repairs). It holds no internal knowledge at all. Anything client-specific, such as identifying the policy, happens through tools with explicit checks.
The Claims Desk agent for advocates grounds on the cleaned claims procedures site and, through the Microsoft Graph, on the advocate's own mail and files, with Microsoft 365 permissions applied. Because Microsoft 365 Copilot respects the user's existing permissions, an oversharing problem in the source becomes an oversharing problem in the agent. Quillfield's earlier readiness work had fixed 15 of 17 overshared sites and excluded the remaining two from Copilot until fixed. The claims site was checked again during the studio.
Designing the record: where does a claim notice live?
The most debated data decision in the studio was where a new claim notice should be stored. Three options were on the table.
Write directly to BrokerDesk. BrokerDesk is the system of record for policies and claims at Quillfield. Writing there keeps one source of truth. But BrokerDesk's API v3 had no claim notice endpoint; Pascal estimated six to eight weeks to add one, and BrokerDesk would reject a notice that could not be matched to a policy.
Store in Dataverse first, then sync to BrokerDesk. A Dataverse table, "Claim Notice", holds the intake as it is collected, including incomplete or unmatched notices. An agent flow creates the BrokerDesk claim once the notice is matched and reviewed. Dataverse offers security roles, auditing, a familiar model for Yusra, and solution-aware deployment with the rest of the Policy Service solution.
Store in a SharePoint list. Simple and cheap, but weaker for security, auditing and structured integration.
Bram recommended the second option. It allowed the agent to accept a notice even when the policy could not be matched immediately (a client who does not know the policy number, a new business partner, a misspelled company name), kept BrokerDesk clean, and gave advocates a single queue. It also meant the proof of concept did not depend on Pascal's new endpoint. The trade-off was a second store to govern and a synchronization process to monitor, which Bram recorded in ADR-05.
Photographs and other files
Clients often send photographs, and hail triage depends on them. Photographs raise practical data questions: size, format, storage location, who can see them, how long they are kept, and whether they contain information the agent should not process (faces, license plates, documents in the background).
The design stored photos in a dedicated, access-controlled file store linked to the Claim Notice record, not in the conversation transcript. Only the claims team and the triage process could read them. The hail triage model received the photo and returned a damage category and confidence score; it did not store the image. Retention followed Quillfield's claims file retention rules, not the agent's transcript retention.
Access enforcement: whose permissions apply?
Data access in AI solutions comes down to identity, which lesson 7 covers in detail. At the data design stage the architect records, for each source and tool, which identity is used and what that identity can reach.
For knowledge in Microsoft 365, user authentication means the agent sees what the user can see. For knowledge on public websites, there is nothing to protect. For tools that call systems of record, the choice is between the end user's credentials and a credential configured by the maker or a dedicated service identity. Quillfield's rule from the earlier review applies: read tools use end-user credentials; maker or service credentials need a written justification and a narrowly scoped identity.
The client intake agent is the hard case, because clients do not have Quillfield identities. Bram designed policy matching as a narrow tool running under a dedicated service identity with read access to only three fields (policy number, insured name and ZIP code), and only to confirm a match, never to reveal policy details to the client. If the client supplies a policy number and ZIP code that match, the notice is linked; otherwise it is flagged for an advocate. The agent never tells the client anything about the policy beyond "we have found your policy" or "an advocate will confirm your policy".
Residency, sovereignty and retention
Quillfield's clients and regulators care where data is stored and processed. The architect records, for each component, where data is stored at rest, where it is processed, and how long it is kept.
Microsoft 365 and Power Platform environments are created in a geography. Quillfield's tenant and environments are in the United States. Copilot Studio agents process data in the environment's geography, with some features, such as certain generative AI capabilities, depending on data movement settings that administrators control. Foundry resources are deployed to a chosen Azure region, and the region determines which models are available. The architect checks model availability in the intended region early, because a model that is not offered there changes the design.
Retention needs its own entry for each data kind: claim notice records follow claims file retention; conversation transcripts follow a shorter period agreed with Wendell; analytics follow platform defaults; photos follow claims file retention. Microsoft Purview retention policies and Dataverse settings implement the decisions, but the decisions belong in the design.
Worked problem
Writing a data entry for the design
Write the data design entry for the carrier contact information used to notify carriers.
Show solution
- Source: the carrier contact spreadsheet, to be replaced by a Dataverse table "Carrier Claim Contact" with columns for carrier, line of business, notification method (API, portal, email, phone), address and hours.
- Owner: the claims manager, who approves changes; Pascal's team maintains the table structure.
- Quality: three wrong addresses found; all 31 carriers verified once before the proof of concept; review quarterly and whenever a carrier announces a change.
- Access: read by the notification flow under a service identity; edited only by the claims team through a model-driven app.
- Residency and retention: stored in the production environment in Quillfield's geography; history kept through Dataverse auditing.
Answer: The entry names the source, owner, quality controls, access identity, residency and retention, so that every notification can be traced to a maintained fact.
Lineage and traceability
When an agent produces an answer or creates a record, someone may later ask where a fact came from. Design for that question. Copilot Studio shows citations for knowledge answers; Dataverse auditing records who changed what; flow run history shows each step; Foundry tracing records model calls. Bram added a requirement that every Claim Notice record store the conversation identifier and the version of the agent that created it. When a notice later looked wrong, an advocate could open the transcript, see the agent version, and tell Yusra exactly which release to examine.
Data ownership after launch
A data design also says who looks after each source once the solution is live. Bram added an ownership table to the design: the claims manager owns the public "After a loss" pages and the Carrier Claim Contact table; Tobias reviews the claims procedures quarterly; Pascal owns the BrokerDesk operations; Saoirse's team owns the file store and its access controls. Each owner received a short note explaining that their content now feeds an agent, so a change they make will change what clients or advocates are told.
Common mistakes
MistakePointing an agent at a whole SharePoint library because it contains the right answer somewhere.
InsteadCurate purpose-written, current, de-duplicated content for each audience.
MistakeAssuming permissions are fine because nobody has complained.
InsteadReview oversharing before Copilot or agents can surface the content.
MistakeWriting directly to the system of record when matching is uncertain.
InsteadStage uncertain records and promote them after matching and review.
MistakeStoring photographs in conversation transcripts.
InsteadStore files in an access-controlled store linked to the record, with their own retention.
MistakeLeaving residency and retention for the build team to decide.
InsteadRecord location and retention for each data kind in the design.
Summary and key terms
- Separate knowledge, records and conversation or telemetry data; each needs a source, owner, quality check, access rule, location and retention period.
- Review grounding data for accuracy, relevance, timeliness, cleanliness and availability before committing to it.
- Content clean-up is often the largest task in an AI project and should be planned and owned.
- Stage uncertain records in a governed store such as Dataverse before writing to the system of record.
- Decide whose identity each knowledge source and tool uses, and limit service identities to the narrowest access.
- Record residency, model availability by region, retention and lineage in the design.
- Grounding
- Supplying an agent or model with relevant source information so its responses are based on that information.
- System of record
- The authoritative system for a type of business data.
- Staging table
- A table that holds records temporarily until they are validated and promoted to the system of record.
- Data residency
- The geographic location where data is stored and processed.
- Lineage
- The ability to trace a record or answer back to its sources and the process that produced it.
- Oversharing
- Content accessible to more people than intended, which AI tools can surface more easily.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why does the client intake agent ground only on public content?
Show answer
Clients are not employees and are not signed in, so internal knowledge would be unavailable or unsafe; client-specific actions use tools with checks instead.
What were the three options for storing a claim notice, and which was chosen?
Show answer
BrokerDesk directly, Dataverse then BrokerDesk, or a SharePoint list; Dataverse first was chosen.
How does the policy matching tool limit exposure?
Show answer
It runs under a narrow service identity reading three fields only to confirm a match and never reveals policy details to the client.
Why store the agent version on each Claim Notice record?
Show answer
So that a problem can be traced to the transcript and the specific release that created the record.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.