# Angular InlineAIPrompt Events

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

* [`close`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent#close)—Fires when the component closes by clicking outside the popup or by clicking the `discard` output action.
* [`commandExecute`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent#commandexecute)—Fires when you click a command from the menu.
* [`outputActionClick`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent#outputactionclick)—Fires when you click an output action button (`copy`, `retry`, `discard`, etc.).
* [`promptRequest`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent#promptrequest)—Fires when you click the send button or press **Enter** to submit a prompt.
* [`promptRequestCancel`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent#promptrequestcancel)—Fires when you cancel the prompt request by clicking the stop button.
* [`promptValueChange`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent#promptvaluechange)—Fires when the value of the TextArea changes.

The following example demonstrates all events that the InlineAIPrompt features.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/conversational-ui/inlineaiprompt/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 `InlineAIPromptComponent`](https://www.telerik.com/kendo-angular-ui-develop/components/conversational-ui/api/inlineaipromptcomponent)
