Capabilities of Copilot Controls
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 9 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Building Canvas Apps: The Capabilities of Copilot Controls
Introduction: The New Era of App Development
In the landscape of low-code development, the introduction of Copilot within Microsoft Power Apps marks a significant shift in how we approach user interfaces and data interaction. Traditionally, building a Canvas App required a developer to manually construct every input field, write complex formulas for filtering data, and design the navigation flow from scratch. With Copilot controls, this paradigm changes from "manual assembly" to "conversational interaction."
Copilot controls in Power Apps are AI-powered components that allow your users to query data, summarize information, and perform actions through natural language. Instead of forcing a user to navigate through multiple screens, dropdown menus, and gallery filters to find a specific record, they can simply type or speak a request. For developers, this means building applications that are more intuitive, accessible, and responsive to the specific needs of end-users.
Understanding these controls is essential because they represent the bridge between static data and dynamic, intelligent user experiences. By incorporating these tools, you are not just making an app; you are creating a digital assistant that lives inside your business processes. This lesson will walk you through the architecture of these controls, how to configure them for your data, and the best practices for ensuring they provide accurate, secure, and helpful outputs.
Not read yet
Understanding the Core Copilot Components
The Power Apps ecosystem currently features two primary ways to interact with AI: the Copilot control (for end-users) and the Copilot pane (for developers). For this lesson, we are focusing on the Copilot control, which is a component you drag onto your Canvas App screen.
The Copilot control functions as a conversational interface that connects to your data sources, such as Dataverse tables, SharePoint lists, or SQL databases. When a user asks a question, the control uses a Large Language Model (LLM) to interpret the intent, query the underlying data, and generate a natural language response. It doesn't just display a table of results; it provides a context-aware summary.
Key Features of the Copilot Control
- Natural Language Querying: Users can ask questions like "Which projects are overdue?" or "Show me the top three sales representatives for Q3" without needing to know the technical database schema.
- Contextual Awareness: The control understands the state of the app. It can answer questions based on the data currently visible or connected to the app.
- Generative Summarization: Instead of raw data dumps, the Copilot provides descriptive answers that explain the "why" and "how" behind the numbers.
- Customizable Prompting: Developers can define "system prompts" to guide how the AI behaves, ensuring that it stays within the boundaries of your specific business domain.
Callout: AI vs. Traditional Search Traditional search bars require exact keyword matching or specific filters. If you search for "Sales," a traditional app might show you every record containing that word. A Copilot control, however, understands the intent. If you ask "What were the sales in New York last month?", the AI parses the location, the time frame, and the metric, returning a precise answer rather than a list of documents.
Not read yet
Step-by-Step: Adding Copilot to Your Canvas App
Integrating a Copilot control into your application is a straightforward process, but it requires careful preparation of your data sources to ensure the AI can "read" them correctly.
Step 1: Prepare Your Data Source
Before adding the control, ensure your Dataverse tables have meaningful names and descriptions. The AI relies on the metadata of your tables and columns to understand what the data represents. If you have a column named "C1," the AI will not know what that means. Rename it to "CustomerName" or "AnnualRevenue."
Step 2: Enable the Copilot Feature
Go to your Power Apps environment settings. Ensure that "Copilot" is enabled for your organization. Without these environment-level permissions, the control will remain grayed out in the component menu.
Step 3: Insert the Control
- Open your Canvas App in the Power Apps Studio.
- Navigate to the Insert tab on the top ribbon.
- Search for "Copilot" in the components list.
- Drag the Copilot control onto your screen.
- In the properties pane, connect the control to your Dataverse table by selecting the data source from the "Data source" dropdown.
Step 4: Configure the System Prompt
The system prompt is the "personality" and the "rules" of your bot. Click on the Copilot control and look for the "System prompt" field. Here, you can write instructions such as: "You are an assistant for the HR department. Only answer questions related to employee attendance and leave requests. If a user asks about payroll, politely decline."
Tip: Data Security Copilot respects the security roles defined in Dataverse. If a user does not have permission to view a specific record, the Copilot control will not include that record's information in its generated responses. You do not need to build extra security layers for the AI—it inherits what you have already configured.
Not read yet
Technical Deep Dive: Working with Formulas and Properties
While the Copilot control is designed to work "out of the box," you will eventually need to manipulate its behavior using Power Fx. The control exposes several properties that allow you to refine the user experience.
Common Properties
DataSource: Defines the primary table the Copilot will index.Visible: A boolean property to show or hide the control based on user permissions or app state.SystemPrompt: The core instruction set for the AI.PlaceholderText: The text that appears in the input box before the user types anything (e.g., "Ask me about project status...").
Using Power Fx to Trigger Actions
You can use the OnMessageReceived property to capture the user's input and perform actions in the app. For example, if a user asks for a specific client's contact information, you might want the app to navigate to a "Client Details" screen automatically.
// Example of logic in the OnMessageReceived property
If(
"contact" in Self.LastMessage,
Navigate(ClientDetailsScreen, ScreenTransition.Fade, {SelectedClient: LookUp(Clients, Name = "Acme Corp")})
)
In this snippet, the app listens to the message sent to the Copilot. If the word "contact" is detected, the app performs a lookup and navigates the user to a detailed view. This creates a hybrid experience where the AI acts as a search engine and a navigation tool simultaneously.
Not read yet
Best Practices for Copilot Implementation
To build effective AI-powered apps, you must balance the convenience of automation with the necessity of accuracy.
1. Optimize Data Metadata
The AI is only as good as the information it is given. Spend time in the Dataverse table designer. Add descriptions to your tables and columns. These descriptions act as the "knowledge base" for the AI. A column with the description "The total dollar value of the closed deal" is much more useful to the AI than a column with no description.
2. Guardrails and System Prompts
Always define a clear system prompt. Without it, the AI might hallucinate or answer questions outside the scope of your application. Use the prompt to define the tone, the boundaries, and the format of the output. For instance, instruct the AI to "Always provide answers in bullet points" or "Keep responses under 50 words."
3. User Feedback Loops
Include a way for users to provide feedback on the Copilot's answers. You can add a simple "Thumbs Up/Thumbs Down" icon set next to the Copilot control. While this doesn't automatically retrain the model, it allows you to track where the AI is failing so you can refine your prompts or data structure later.
4. Provide Contextual Hints
If your app has a complex data structure, the AI might get confused. Help it by using the Visible property to show the Copilot only on screens where the relevant data is present. This reduces the search space for the AI and improves response time.
Not read yet
Common Pitfalls and How to Avoid Them
Even with advanced AI, developers often run into common hurdles. Being aware of these will save you hours of debugging.
The "Hallucination" Problem
AI models can sometimes confidently state facts that aren't true. This is called hallucination.
- The Fix: Use the "Grounding" feature (if available in your specific environment) to force the AI to only use the data provided in the connected table. Avoid asking the AI to perform complex math that requires data outside of your connected sources.
Slow Response Times
Copilot controls need to process data, send it to the LLM, and generate a response. This can take several seconds.
- The Fix: Keep your data sources clean. Do not connect a table with 500,000 rows if you only need the last 1,000. Use views in Dataverse to filter the data before it reaches the Copilot control. This reduces the token load and speeds up the response time.
Ignoring Accessibility
AI is powerful, but it must be accessible.
- The Fix: Ensure that the Copilot control is compatible with screen readers. Use meaningful labels for your input fields and ensure that the keyboard focus order includes the Copilot chat box.
Warning: Sensitive Data Never use Copilot controls on tables containing highly sensitive information like PII (Personally Identifiable Information) or financial data without ensuring your tenant settings are configured to prevent data leakage. Microsoft provides settings to ensure that data used by AI is not used to train global models, but you should verify these settings with your IT department.
Not read yet
Comparison: Traditional Controls vs. Copilot Controls
| Feature | Traditional Controls (Gallery/Form) | Copilot Control |
|---|---|---|
| Interaction | Click/Select/Type | Natural Language |
| Efficiency | High for repetitive tasks | High for exploratory queries |
| Setup Time | High (Layout/Formulas) | Low (Connect Data/Prompt) |
| User Skill | Requires app training | Intuitive/Conversational |
| Flexibility | Static, pre-defined views | Dynamic, user-defined queries |
This table highlights why you shouldn't replace all controls with Copilot. Traditional galleries and forms are still the best choice for high-volume, transactional data entry where speed and precision are required. Copilot is best used for data discovery, summarization, and assisting users who aren't familiar with your app's navigation structure.
Advanced Strategies: Chaining AI and App Logic
Once you are comfortable with the basics, you can start "chaining" logic. This involves using the output of a Copilot query to trigger secondary actions in your app.
Scenario: The "Smart Approval" Workflow
Imagine you have an expense report app. Instead of a manager clicking through a list of 50 pending approvals, they can ask the Copilot: "Show me all expenses over $500 that were submitted this week."
- User Input: The manager types the query.
- Copilot Processing: The AI identifies the
Amount > 500andDate >= StartOfWeekfilters. - Action: The Copilot returns the list.
- Extension: You can place a "Bulk Approve" button near the Copilot control. When clicked, it uses the filtered results from the Copilot to update the status of those specific records in Dataverse.
This workflow transforms the Copilot from a passive chatbot into an active assistant that helps the manager complete their work faster. The key here is using the Self.LastMessage property to extract variables that you can then pass into a Patch() or UpdateIf() function.
Not read yet
Maintaining Your AI-Powered App
After deployment, your work is not done. AI-powered apps require a different kind of maintenance than standard apps.
- Monitor Query Logs: Use the Power Platform Admin Center to see what users are asking. If you see recurring questions that the AI cannot answer, it is a signal that you need to add more data or refine your system prompt.
- Periodic Prompt Updates: As your business logic changes, your system prompts must change too. If you add a new category of "urgent" requests, update the system prompt to recognize that new terminology.
- Data Quality Audits: Since the AI relies on column descriptions and table names, perform quarterly audits of your Dataverse schema. If a field is no longer used, remove it or rename it to keep the AI's search index clean.
Frequently Asked Questions (FAQ)
Can Copilot write to the database?
Currently, the Copilot control is primarily for reading and summarizing data. While you can use the output of a Copilot query to trigger a Patch function (as shown in the Smart Approval scenario), the AI itself is not directly performing the "write" action. It is the app logic that performs the write based on the AI's interpretation.
Is the Copilot control available in all environments?
No, it is currently limited to specific regions and requires the "AI Builder" feature to be enabled in your environment. Always check the Microsoft documentation for the latest regional availability.
How do I stop the AI from answering questions about non-work topics?
This is handled via the System Prompt. You can explicitly state: "If the user asks a question not related to [Your Business Domain], respond with: 'I am sorry, I can only assist with [Business Domain] questions.'"
Does the Copilot control support multiple languages?
Yes, the underlying models are multilingual. However, the accuracy is highest in English. If your business operates in multiple languages, test the prompts thoroughly in each language to ensure the AI interprets the data schema correctly.
Not read yet
Summary: Key Takeaways for Success
Building with Copilot controls is an exercise in guiding AI toward your specific business goals. By following these principles, you ensure your app is not just a novelty, but a productive tool for your users.
- Data Quality is Everything: The AI relies on the metadata of your tables. Invest time in naming your tables and columns clearly and adding descriptive text. This is the foundation of AI success.
- Start with a Clear System Prompt: The system prompt is your "rulebook." Be specific about what the AI should do and, more importantly, what it should not do.
- Use Copilot for Discovery, Not Just Data Entry: Reserve Copilot for tasks where users need to find information or summarize large datasets. For high-speed data entry, traditional forms are still more efficient.
- Respect Existing Security: Never worry about the AI showing unauthorized data; it inherits your existing Dataverse security roles. If a user can't see it in a gallery, they can't see it via Copilot.
- Build Feedback Loops: Give users a way to tell you when the AI provides a bad answer. Use this data to iteratively improve your system prompts.
- Monitor and Iterate: AI-powered apps are living things. Regularly review what your users are asking and adjust your prompts and data structure to meet evolving needs.
- Hybrid Development: Don't replace your entire UI with chat. The best apps use a mix of traditional navigation and conversational AI to provide the best of both worlds.
By mastering these capabilities, you position yourself as a developer who can build the next generation of business applications—apps that don't just display data, but understand it. As you continue to build, remember that the goal of Copilot is to remove the "friction" of interacting with software. Every query a user doesn't have to navigate through a menu to find is a win for productivity. Keep your prompts simple, your data clean, and your focus on the user's intent.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Introduction to Microsoft Power Platform
- Introduction to Microsoft Power Platform Quiz5q
- Value of Power Apps for Building Applications
- Value of Power Apps for Building Applications Quiz5q
- Value of Power Automate for Process Automation
- Value of Power Automate for Process Automation Quiz5q
- Value of Power Pages for Building Websites
- Value of Power Pages for Building Websites Quiz5q
- Value of Connectors for Integration
- Value of Connectors for Integration Quiz5q
- Value of Microsoft Dataverse for Business Data
- Value of Microsoft Dataverse for Business Data Quiz5q
- Dataverse vs Traditional Databases
- Dataverse vs Traditional Databases Quiz5q
- Tables Columns and Relationships in Dataverse
- Tables Columns and Relationships in Dataverse Quiz5q
- Business Logic Options in Dataverse
- Business Logic Options in Dataverse Quiz5q
- Creating Tables and Columns Through Conversations
- Creating Tables and Columns Through Conversations Quiz5q
- Importing and Exporting Data Options
- Importing and Exporting Data Options Quiz5q
- Dataverse Business Rules
- Dataverse Business Rules Quiz5q
- Dataverse Calculated and Rollup Columns
- Dataverse Calculated and Rollup Columns Quiz5q
- Dataverse Security Roles
- Dataverse Security Roles Quiz5q
- Dataverse Teams Integration
- Dataverse Teams Integration Quiz5q
- Dataverse File and Image Columns
- Dataverse File and Image Columns Quiz5q
- Connecting to Data Sources with Connectors
- Connecting to Data Sources with Connectors Quiz5q
- Common Controls in Canvas Apps
- Common Controls in Canvas Apps Quiz5q
- Building Responsive Pages with Containers
- Building Responsive Pages with Containers Quiz5q
- Capabilities of Copilot Controls
- Capabilities of Copilot Controls Quiz5q
- Sharing a Canvas App
- Sharing a Canvas App Quiz5q
- Cloud Flows and Desktop Flows
- Cloud Flows and Desktop Flows Quiz5q
- Cloud Flow Templates
- Cloud Flow Templates Quiz5q
- Connector Triggers and Actions
- Connector Triggers and Actions Quiz5q
- Power Automate Use Cases
- Power Automate Use Cases Quiz5q
- Power Automate Apps and Portals
- Power Automate Apps and Portals Quiz5q
- Desktop Flow Actions
- Desktop Flow Actions Quiz5q
- Process Mining Overview
- Process Mining Overview Quiz5q
- Loops and Branching in Cloud Flows
- Loops and Branching in Cloud Flows Quiz5q
- Creating Cloud Flows with Triggers
- Creating Cloud Flows with Triggers Quiz5q
- Creating Flows Through Conversations
- Creating Flows Through Conversations Quiz5q
- Running and Monitoring Cloud Flows
- Running and Monitoring Cloud Flows Quiz5q
- Testing a Cloud Flow
- Testing a Cloud Flow Quiz5q
- Sharing a Cloud Flow
- Sharing a Cloud Flow Quiz5q
- Creating Sites Using Copilot
- Creating Sites Using Copilot Quiz5q
- Design Studio Workspaces
- Design Studio Workspaces Quiz5q
- Creating and Modifying Pages
- Creating and Modifying Pages Quiz5q
- Configuring Power Pages Components
- Configuring Power Pages Components Quiz5q
- Modifying a Power Pages Theme
- Modifying a Power Pages Theme Quiz5q
- Power Pages Authentication Options
- Power Pages Authentication Options Quiz5q
- Power Pages Web Roles
- Power Pages Web Roles Quiz5q
- Power Pages Table Permissions
- Power Pages Table Permissions Quiz5q
- Power Pages List and Form Components
- Power Pages List and Form Components Quiz5q
- Power Pages Publishing and Deployment
- Power Pages Publishing and Deployment Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock PL-900 exam-style practice questions.
Practice for PL-900