Introduction to Copilot Agent Integration to Canvas App PowerApps
In this hands-on tutorial blog, I walk you through the entire process of integrating a Copilot Agent into a Canvas App using PowerApps and Copilot Studio. This guide is for makers, developers, and enthusiasts who want to bring conversational AI into their apps—without writing complex code.
What Is a Copilot Agent?
A Copilot Agent is an AI-powered assistant built using Copilot Studio (formerly Power Virtual Agents). It can:
Answer user queries
Guide users through workflows
Connect to Dataverse or external data sources
Be embedded directly into Canvas Apps
Integrate Copilot Agent into Your Canvas App PowerApps
Step-by-Step Integration Guide
- Go to PowerApps Studio
- Open your Canvas App or create a new one.
- Navigate to Settings > Upcoming Features > Experimental.
- Enable Copilot Control.
- Save and refresh your app.
💡 Tip from the video: If you don’t see the Copilot control, ensure your environment is updated and experimental features are allowed.Step 2: Add Copilot Control to Your Canvas App
- In the app editor, go to Insert > Copilot.
- Drag and drop the Copilot control onto your screen.
- Resize and position it as needed.
AgentIdWelcomeMessageTheme
AgentId blank for now—we’ll generate it next.
Step 3: Create a Copilot Agent in Copilot Studio
- Go to PowerApps Studio
- Click + New Agent.
- Name your agent (e.g., “Sales Assistant”).
- Define its purpose and welcome message.
- Add instructions, knowledge, topics and trigger phrases.
- Use PowerFx or Dataverse connectors to fetch data dynamically.
💬 Vinay’s tip: Keep your topics modular and test each one individually.Step 4: Publish and Get the Agent Schema Name
- Click Publish in Copilot Studio.
- Go to Settings > Advanced > Metadata > Schema Name
- Copy the Schema Name.
- Paste the Schema Name into the BotSchemaName property of the Copilot control.
- Run the app in preview mode.
- Ask your agent a question (e.g., “Show me sales data for July”).
- Watch it respond using your defined topics and data sources.
✅ Vinay’s validation: “It’s working perfectly—no code, just configuration!”
Final Thoughts
This integration empowers your users with intelligent assistance, streamlines workflows, and enhances the user experience. Whether you’re building internal tools or customer-facing apps, Copilot Agents bring the power of AI to your fingertips.
Join the Community
If you found this tutorial helpful:
Subscribe to Last Minute Coders
Drop your questions in the comments
Stay tuned for more Power Platform tutorials