# Angular AIPrompt Events

The Kendo UI for Angular AIPrompt emits a number of events which enable you to control its behavior upon user interaction:

* [`activeViewChange`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent#activeviewchange)—Fires when the `activeView` is updated.
* [`commandExecute`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent#commandexecute)—Fires each time the user clicks on an executable command in the **Command View**.
* [`outputCopy`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent#outputcopy)—Fires when the user clicks an output's `Copy` button.
* [`outputRatingChange`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent#outputratingchange)—Fires each time the user clicks an output's rating buttons.
* [`promptRequest`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent#promptrequest)—Fires when the user clicks the `Generate` button in the **Prompt View**.
* [`promptRequestCancel`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent#promptrequestcancel)—Fires when the user clicks on the `Stop Generation` button in the **Output view**.

The following example demonstrates all events the AIPrompt features.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/conversational-ui/aiprompt/events/source.txt)

## Suggested Links

* [API Reference of the Conversational UI](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api)
* [API Reference of the `AIPrompt`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/aipromptcomponent)
