# AIPrompt Button

The AIPrompt component can also be displayed as a button that will show a `RadAIPrompt` when interacted with it. To display the component as a button, create a new `RadAIPromptButton` instance.

The RadAIPromptButton provides the following properties:

* `AIPrompt`—Allows you to set an RadAIPrompt instance that will be displayed when the RadAIPromptButton is open.
* `PopupWidth`—Provides the ability to specify the width of the popup of RadAIPromptButton.
* `PopupHeight`—Provides the ability to specify the height of the popup of RadAIPromptButton.
* `IsPopupOpen`—Allows you to open/close the popup holding the RadAIPrompt.

**Creating a RadAIPromptButton**

```XAML
<telerik:RadAIPromptButton x:Name="aiPromptButton">
    <telerik:RadAIPromptButton.AIPrompt>
        <telerik:RadAIPrompt x:Name="aiPrompt" 
                                 Commands="{Binding MyCommands}"
                                 Suggestions="{Binding MySuggestions}">
            <telerik:RadAIPromptInputItem />
            <telerik:RadAIPromptOutputItem />
            <telerik:RadAIPromptCommandsItem />
        </telerik:RadAIPrompt>
    </telerik:RadAIPromptButton.AIPrompt>
</telerik:RadAIPromptButton>
```

> caption RadAIPromptButton

![WPF RadAIPromptButton](https://www.telerik.com/products/wpf/documentation/assets/e8e7d69d68caffe6e5d60087a65e70ef/radaiprompt-prompt-button-0.png)

## See Also

* [Suggestions](https://www.telerik.com/products/wpf/documentation/controls/radaiprompt/suggestions)
* [Commands](https://www.telerik.com/products/wpf/documentation/controls/radaiprompt/commands)
* [Paging](https://www.telerik.com/products/wpf/documentation/controls/radaiprompt/paging)
* [Events](https://www.telerik.com/products/wpf/documentation/controls/radaiprompt/events)
