Developing generative AI experiences overview
Extending Copilot in Business Central requires working with several different components. In this article, we'll walk you through the necessary tasks to extend Copilot for Business Central.
Essential components
A Copilot in a Business Central extension involves three essential components:
- The prompt dialog page for creating the UI for Copilot.
- The AI module of the system application that provides the programming interface between Business Central and Azure Open AI Service.
- An Azure OpenAI resource, which is a service offered by Microsoft Azure that enables developers to use the OpenAI natural language processing models to build intelligent applications.
To develop an effective Copilot extension, you'll need to work with each of these components.
Getting set up with Azure OpenAI Service
Before you can get started with extedning Copilot in Business Central, you must apply for access to Azure OpenAI Service. Once you're approved, you can create an Azure OpenAI resource in the Azure portal. From this resource, you get your API key and deployment name.
To learn more, go to Get set up with Azure OpenAI Service.
Building AI capability using the AI module of system application
The AI module of the Business Central system application provides the API for communicating with Azure OpenAI. In this task, you use the AI module to define the application logic in AL code to request and retrieve AI-generated content from the Azure OpenAI service.
To learn more, go to Build AI capability in app.
Designing the Copilot user interface
The Copilot user interface is an essential component of any Copilot experience. In this task, you design the Copilot user interface by using a PromptDialog type page. This page enables users to input their requirements, start the generation process, review the output, and save it. The PromptDialog page can be customized to suit the needs of your specific extension and can include fields for user input, buttons for initiating the generation process, and fields for displaying the generated content.
To learn more, go to Design the Copilot user experience.