Developing generative AI experiences overview

Developing a copilot requires working with several different components. In this article, we'll walk you through the necessary tasks to build a 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 the 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.

Shows the tasks in the generative-AI development

To develop an effective copilot, you'll need to work with each of these components.

Getting set up with Azure OpenAI Service

Before you can get started with creating a 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.

See also

Integrating AI using developer tools for copilot