
In today's blog we're going to look at a new type of page available from runtime version 12.1 in AL Language for Microsoft Dynamics 365 Business Central in Visual Studio Code, called PromptDialog, which allows us to integrate copilot capabilities into our custom scenarios. We use PromptDialog to create generative AI experiences with the copilot appearance, which includes exclusive images and built-in safety controls for customers. The PromptDialog page has a specific page syntax, which includes new areas and action controls.

The PromptDialog page type has three areas, which are Prompt, Content, and PromptOptions. The Prompt area is the input to the copilot and accepts any control, except repeater controls. The Content area is the copilot's output and accepts any control, except repeater controls. The PromptOptions area contains the input options and only accepts option fields.
Important
The Extensible = false; property is a mandatory setting to ensure that the page is not extended so that customers can trust the implemented AI experience.
We use the IsPreview property to indicate to our customers that they are using the feature in preview mode and that the feature might change in the future as we gather feedback. The IsPreview property adds a specific note in the user interface to indicate that the feature is in preview version. It is set to false by default.

If you want to see standard examples, you can find them at the following link: Marketing text suggestions (feature is generally available with Update 23.1).
A series of Copilot ToolKits have also been released, including a series of codeunits for access to Azure Open AI, but at this date it is not available. If you want to see the official documentation, you can see it here: https://learn.microsoft.com/es-es/dyn…
I hope you find it helpful.
Conchi Beltrán Reyes
Dynamics Programming –
ABD Consulting and IT Solutions