# AIPrompt Commands View

The Commands View displays a set of predefined commands, which the user can browse and execute. The commands are passed to the component through the `Commands` parameter, which expects a collection of type `List<AIPromptCommandDescriptor>`. You can also organize commands in a hierarchy, through parent-child relationships.

> note Parent commands cannot be directly executed, and only one level of nesting is supported.

## AIPromptCommandDescriptor Parameters

The following properties enable you to customize each command:

<style>
    .article table {
        table-layout: auto;
        word-break: normal;
    }
</style>

| Parameter  | Type                              | Description                                                                                                                                              |
| ---------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Id`       | `string`                          | The `Id` of the command.                                                                                                                                 |
| `Title`    | `string`                          | The title of the command. Rendered as text within the Command view.                                                                                      |
| `Icon`     | `object`                          | The [Telerik Font or SVG icon](https://www.telerik.com/blazor-ui/documentation/common-features/icons) rendered before the title within the Command view. |
| `Prompt`   | `string`                          | The text to send as the prompt when this command is executed by the AIPrompt.                                                                            |
| `Children` | `List<AIPromptCommandDescriptor>` | The nested commands (if any) of the command.                                                                                                             |

> caption Using the `Commands` parameter to pass a collection of predefined commands to the AIPrompt for Blazor

<demo metaUrl="client/aiprompt/views/commands/commands-1/" height="420"></demo>

## See Also

* [Live Demo: AIPrompt](https://demos.telerik.com/blazor-ui/aiprompt/overview)
* [Views Overview](https://www.telerik.com/blazor-ui/documentation/components/aiprompt/views/overview)
* [Prompt View](https://www.telerik.com/blazor-ui/documentation/components/aiprompt/views/prompt)
* [Output View](https://www.telerik.com/blazor-ui/documentation/components/aiprompt/views/output)
* [Views Templates](https://www.telerik.com/blazor-ui/documentation/components/aiprompt/views/templates)
