Extend Copilot in Business Central
Extending Copilot in Business Central with AL: building a Copilot capability with the System.AI module and Azure OpenAI, designing the user experience with the PromptDialog page type, and testing capabilities and agents. It answers how-to questions for AL developers.
- 15Learn pages
- 2subtopics
- 7videos
Path: Integration with AI > Integrate AI using developer tools for Copilot > Extend Copilot in Business Central · tier official · system copilot · narrative reviewed (checked by Opus)
Overview
This section is for AL developers who add generative AI to Business Central extensions. It starts with an introduction to the building blocks: a prompt dialog page, the AI module of the system application, and an Azure OpenAI resource.
The page “Build the Copilot capability in AL” covers the code side: registering the capability, storing authorization, configuring parameters, defining a metaprompt and generating responses. Two subtopics cover the rest. “Build Copilot user experience” explains the PromptDialog page type and its prompt, generate and content modes. “Test Copilot capability in AL” covers the Evaluation framework and how to write AI tests and agent tests.
Start with the introduction, then build the capability, then design the dialog, and finally set up tests.
Key points
- A Copilot experience needs three parts: a prompt dialog page, the AI module of the system application, and an Azure OpenAI resource.
- Building the capability covers capability registration, authorization storage in IsolatedStorage, parameter configuration, metaprompt definition and response generation.
- The capability page covers chat completion, text completion and embeddings through the System.AI module, plus the token limits to keep in mind. It references 2025 release wave 2.
- The PromptDialog page type has prompt, generate and content modes, and the pages cover error handling and launching Copilot features from prompt actions.
- Testing uses the Evaluation framework (formerly AI Test Toolkit) with JSONL and YAML datasets.
- Test pages cover AI tests and agent tests, plus best practices for non-determinism, safety, languages and model changes.
Subtopics
- Build Copilot user experience (7 pages)
- Test Copilot capability in AL (6 pages)
More Learn pages
- Build the Copilot capability in AL: Integrate with Azure OpenAI Service through the AI module of Business Central.
- Introduction to developing generative AI experiences for your extensions: Learn essential tasks for building Copilot extensions in Business Central. Discover key components like prompt dialog pages and Azure OpenAI integration.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #229 Knowledge: Community Copilot domain (System.AI features) and review skill (code change): “Community Copilot articles with good and bad samples: capability registration on install”
- Creating Data Driven Text with AI in Business Central (community post): “build a Copilot in Business Central that generates personalized reminder text for overdue customer balances”
- Using CoPilot to Upgrade Service Notes for Invoices in Business Central AL (community post): “implementing a Copilot prompt dialog that generates formatted HTML summaries”
- Quick Tip: What’s in Business Central Update 28.5? (community post): “Developers can now build Copilot extensions using Microsoft-managed Azure OpenAI resources”
- Business Central 2025 wave 2 (BC27): Understand how each Copilot and agent capability is billed (Billing Type) (community post): “Developers must manually set the billing type when registering capabilities”
- What’s New: Business Central AI Resources (2025 release wave 1) (video): “System prompts for AI safety; Model deprecation notifications via telemetry; Azure OpenAI Deployments”
- Business Central Under the Hood episode 1: Developing AI in Business Central (video): “Few-shot learning prompting technique; Chain of Thought prompting; Function calling”
- What’s New: Designing and Developing Generative AI Experiences for Your Apps (2023 Release Wave 2) (video): “Prompt Dialogue Page Type; Azure OpenAI Text Completion”
- What’s New: Prepare Your Copilot Extension - Practical Considerations (2025 release wave 1) (video): “Copilot Extension Cloud Deployment; Function Calling for Copilot”
- What’s New: Designing Generative AI Experiences (2024 Release Wave 1) (video): “Designing Generative AI Experiences copilot; prompt dialogue; unstructured input”
- Business Central Partner Learnings from the Red Carpet Copilot Program (video): “copilot development; prompt engineering; testing and validation”
- What’s New: Extending Copilot Using AL Code (2024 Release Wave 1) (video): “Extending Copilot Using AL Code (2024 Release Wave 1)”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 15 Learn pages
- learnBest Practices for Testing the Copilot Capability in AL2026-10-02
- learnBuild a Copilot user experience with the PromptDialog page2026-05-03
- learnBuild the Copilot capability in AL2026-10-02
- learnCreate prompt dialog page for Copilot feature2026-10-02
- learnCustomize generate mode caption in Copilot2026-10-02
- learnDatasets2026-10-02
- learnDesign content mode of prompt dialog page2026-10-02
- learnDesign the prompt mode of prompt dialog page2026-10-02
Show 7 more
- learnError handling in prompt dialogs2026-10-02
- learnEvaluation2026-10-02
- learnIntroduction to developing generative AI experiences for your extensions2025-07-25
- learnPrompting using a floating action bar2026-10-02
- learnTest the Copilot Capability in AL2026-10-02
- learnWrite agent tests2026-10-02
- learnWrite AI tests2026-10-02