# Page.PromptMode([PromptMode]) Method
> Version: _Available or changed with runtime version 12.1._
The mode of a PromptDialog page that prompts the user for input and shows the output of a copilot interaction.
## Syntax
```al
[PromptMode := ]  Page.PromptMode([NewPromptMode: PromptMode])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
Page
Type: page-data-type
An instance of the page-data-type data type.
*[Optional] NewPromptMode*
Type: ../promptmode/promptmode-option
The new prompt mode.
## Return Value
*[Optional] PromptMode*
Type: ../promptmode/promptmode-option
The prompt mode used for the page.
## Remarks
This method is used when creating a generative AI dialog in Business Central. See ../../devenv-page-type-promptdialog.
## Related information
page-data-type
Getting Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/page/page-promptmode-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/page/page-promptmode-method/
