Domain 2 β€” Module 5 of 9 56%
12 of 29 overall
Domain 2: Design AI-Powered Business Solutions Free ⏱ ~14 min read

Power Apps, WAF & Data Processing

Design AI-powered business processes in Power Apps canvas apps, apply the Power Platform Well-Architected Framework to intelligent workloads, and design data processing pipelines for AI grounding.

AI in Power Apps: beyond buttons and forms

Simple explanation

A canvas app without AI is like a toolbox β€” useful, but the worker does all the thinking.

Adding AI to a Power App is like giving the worker an experienced colleague who watches over their shoulder and whispers advice. β€œThat part looks defective β€” flag it.” β€œBased on the last 500 orders, this customer usually orders 200 units.” β€œThis form entry doesn’t match the standard format β€” did you mean…?”

The Well-Architected Framework is a checklist to make sure your AI-powered app is reliable, secure, fast, easy to run, and pleasant to use β€” because AI adds new failure modes that regular apps don’t have.

AI components in canvas apps

Three ways to bring AI into a Power Apps canvas app, each suited to different scenarios:

Three approaches to embedding AI in Power Apps canvas apps
FeatureHow It WorksBest ForSkill Level
AI BuilderPrebuilt and custom AI models accessible directly in Power Apps via the AI Builder controlDocument processing, object detection, text classification, sentiment analysis β€” where prebuilt models fit the use caseLow β€” no code, drag-and-drop in the app designer
Custom Foundry modelsCustom connectors that call deployed Foundry models via REST APIsComplex, domain-specific AI tasks where prebuilt models are insufficient β€” custom classification, specialised generation, multi-step reasoningHigh β€” requires Foundry deployment, custom connector setup, and API design
Copilot controlEmbedded Copilot chat experience inside the canvas app β€” users ask questions in natural languageConversational interfaces where users explore data or get recommendations through chatLow β€” add the control and configure its knowledge sources

Design pattern for AI in a business process:

  1. Capture β€” user enters data or uploads a document
  2. Analyse β€” AI model processes the input (image analysis, text extraction, classification)
  3. Present β€” show the AI result with a confidence indicator
  4. Confirm β€” user reviews and approves or corrects the AI output
  5. Act β€” proceed with the business process using the confirmed result

The confirm step is essential. Never design a process where AI output bypasses human review in safety-critical or high-value scenarios.

Well-Architected Framework for AI workloads

The Power Platform WAF has five pillars. Each applies differently when AI is involved:

PillarStandard ConcernAI-Specific Concern
ReliabilityApp uptime, data availabilityModel availability, fallback when AI service is down, graceful degradation
SecurityData access, authenticationData in prompts (PII leakage), prompt injection defence, output filtering for harmful content
Operational ExcellenceDeployment, monitoringModel drift detection, response quality monitoring, feedback loops for continuous improvement
Performance EfficiencyLoad times, query speedAI call latency budgets (models can take 2-10 seconds), caching strategies for repeated queries, token consumption management
Experience OptimisationUsability, accessibilityUser trust (confidence scores, citations), explainability (why did AI recommend this?), managing expectations when AI is uncertain
Exam tip: WAF pillars applied to AI

The exam tests whether you can apply WAF pillars to AI scenarios:

  • β€œThe AI model is occasionally unavailable” β†’ Reliability β€” design fallback behaviour (queue the request, show cached result, or allow manual process)
  • β€œUsers don’t trust the AI recommendations” β†’ Experience β€” show confidence scores, provide citations, let users give feedback
  • β€œThe AI costs are higher than expected” β†’ Performance Efficiency β€” implement caching, reduce token usage, use smaller models for simple tasks
  • β€œThe AI occasionally returns inappropriate content” β†’ Security β€” implement content safety filters on inputs and outputs

A good AI architecture addresses all five pillars. The exam rewards holistic thinking.

Data processing for AI grounding

Grounding is only as good as the data behind it. A data processing pipeline ensures your AI models have clean, current, relevant data to reason over.

The five-stage pipeline:

StageWhat HappensExample
CollectionGather data from source systems β€” D365, SharePoint, databases, APIsPull product specifications from D365 SCM, safety manuals from SharePoint
CleaningRemove duplicates, fix formatting, handle missing values, strip irrelevant contentRemove boilerplate headers/footers, deduplicate versioned documents
TransformationConvert data into a format the AI model can consume β€” chunking, structuring, embeddingSplit long documents into semantic chunks of 500-1000 tokens
IndexingStore processed data in a searchable index β€” vector indexes for semantic search, keyword indexes for exact matchCreate vector embeddings in Foundry and index in AI Search
ServingDeliver relevant data to the model at inference time β€” retrieval pipeline with rankingRAG retrieves top-5 chunks, re-ranks by relevance, passes to the model as context
Scenario: Kai builds a quality inspection app for Apex's shop floor

Kai Mercer designs a canvas app for shop floor workers at Apex Industries. Workers photograph manufactured parts, and AI analyses each image for defects.

AI component: AI Builder custom model trained on 5,000 images of good and defective parts.

Business process:

  1. Worker opens the app and photographs the part
  2. AI Builder model analyses the image β†’ returns β€œPass” or β€œDefect detected” with confidence score
  3. If confidence is above 95%, result auto-populates the quality record in D365 SCM
  4. If confidence is 80-95%, the result is shown with a yellow indicator β€” worker confirms or overrides
  5. If confidence is below 80%, the app flags it for a quality engineer to review manually

WAF applied:

  • Reliability: If the AI model is unavailable (network issue on the shop floor), the app falls back to manual inspection mode with a checklist
  • Performance: Images are compressed before upload. Results are cached for duplicate scans of the same batch
  • Experience: Confidence score is shown as a colour indicator (green/yellow/red) β€” workers trust it more because they can see how confident the AI is
  • Security: Images are processed in Apex’s own Foundry instance β€” no factory images leave the tenant

Priya Sharma (data engineer) builds the continuous retraining pipeline β€” new defect images from the shop floor are labelled by quality engineers and added to the training dataset monthly.

Flashcards

Question

What are the three ways to embed AI in a Power Apps canvas app?

Click or press Enter to reveal answer

Answer

1) AI Builder β€” prebuilt and custom models accessible via the AI Builder control. 2) Custom Foundry models β€” called via custom connectors and REST APIs. 3) Copilot control β€” embedded conversational AI for natural language interaction. Choose based on complexity and whether prebuilt models meet the requirement.

Click to flip back

Question

Why is data processing for AI grounding NOT a one-time activity?

Click or press Enter to reveal answer

Answer

Enterprise data changes constantly β€” new documents, updated policies, revised pricing, evolving products. A grounding pipeline must include continuous refresh (scheduled or event-triggered) to keep the AI's knowledge current. Stale grounding data causes the AI to give outdated or incorrect answers.

Click to flip back

Question

Name the five stages of a data processing pipeline for AI grounding.

Click or press Enter to reveal answer

Answer

Collection (gather from sources), Cleaning (deduplicate, fix formatting), Transformation (chunk, structure, embed), Indexing (store in searchable indexes), and Serving (retrieve relevant data at inference time). Each stage adds quality β€” skip one and the AI output degrades.

Click to flip back

Knowledge check

Knowledge Check

Kai's quality inspection app uses an AI Builder model to detect defects. The shop floor has unreliable Wi-Fi, and workers report that the app sometimes freezes when the AI service is unavailable. Which WAF pillar should Kai address, and what's the recommended design?

Knowledge Check

A data engineer sets up a grounding pipeline for a customer service agent. The pipeline processes 10,000 support documents, creates vector embeddings, and indexes them. Six months later, users report that the agent gives outdated answers about product features that have been updated. What went wrong?

Next up: Extensibility: Custom Models, M365 Agents & Copilot Studio β€” extending AI solutions with custom Foundry models, M365 Copilot declarative agents, and Copilot Studio extensibility.