# Angular Chat Predefined Suggestions

The predefined suggestions appear as selectable options above the message input area. Use them to provide quick access to frequently used phrases or responses.

The following example demonstrates how to predefine suggestions in the Chat.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/conversational-ui/chat/predefined-suggestions/overview/source.txt)

To add predefined suggestions to the Chat, set the [`suggestions`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatcomponent#suggestions) input property with an array of [`ChatSuggestion`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatsuggestion) objects. Each suggestion includes an identifier, display text, an optional description for context, and a disabled state for conditional availability.

```HTML
<kendo-chat [suggestions]="suggestions"></kendo-chat>
```

```TS
suggestions: ChatSuggestion[] = [
  {
    id: 'greeting',
    text: 'Hello! How can I help you today?',
    description: 'Standard greeting for new conversations',
    disabled: false
  },
  {
    id: 'order-status',
    text: 'I need to check my order status',
    description: 'Quick access to order tracking',
    disabled: false
  },
  {
    id: 'technical-support',
    text: 'I need technical support',
    description: 'Connect with technical assistance',
    disabled: this.isOutsideBusinessHours // Dynamic availability
  }
];
```

When a user selects a suggestion, the component fires the [`suggestionExecute`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatcomponent#suggestionexecute) event. The event returns a [`ChatSuggestion`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatsuggestion) object as an argument. Handle the event to respond to each suggestion as needed.

## Disappearing Suggestions

The disappearing suggestions improve user experience by removing options that the user already selected. This keeps the interface clean and relevant.

To make suggestions disappear after selection, handle the [`suggestionExecute`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatcomponent#suggestionexecute) event and remove the selected suggestion from the array.

The following example demonstrates how to remove a suggestion after selection:

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/conversational-ui/chat/predefined-suggestions/disappearing-messages/source.txt)

## Suggestions Layout

By default suggestions are displayed in a horizontal layout above the message input area. If the number of suggestions exceeds the available width, you can scroll them using touchpad or `Shift` with Mouse Wheel.

You can change the suggestions layout behavior using the [`suggestionsLayout`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatcomponent#suggestionslayout) input property and choose between `scrollbuttons` and `wrap` options.

The following example demonstrates the available layout options for the suggestions.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/conversational-ui/chat/predefined-suggestions/layout/source.txt)

## Suggested Links

* [Suggested Actions](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/quick-actions/suggested-actions)
* [Attachments](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/attachments)
* [Message Templates](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/message-templates)
* [Keyboard Navigation](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/keyboard-navigation)
* [API Reference of the Chat](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api)
