# Input Box Settings

The input box is represented by the `RadPromptInput` control which allows you to write text, speak and to attach files.

![A picture showing the input box element](https://www.telerik.com/products/wpf/documentation/assets/f7d23620df37772ff97b060642521d48/chat-input-box-settings-0.png)

## Setting Text Programmatically

To set the text of the input box, use the `InputBoxText` property of `RadChat`.

```XAML
<telerik:RadChat InputBoxText="Hello there!" />
```

## Speech to Text Button

By default the input box displays a `RadSpeechToTextButton` which allows the user to speak instead of typing.

> important The default speech recognizer requires you to explicitly install the `Microsoft.Web.WebView2` NuGet package in your application project. Without the package, the recognizer throws an exception when the button initializes. Follow the [RadChat WebView2 setup instructions](https://www.telerik.com/products/wpf/documentation/controls/radchat/getting-started#installing-the-webview2-dependency) before you run the application.

For more information about the default recognizer, see the [speech-to-text button documentation](https://www.telerik.com/products/wpf/documentation/controls/radbuttons/features/speech-to-text-button).

To **hide the button** set the `IsSpeechToTextButtonVisible` property of `RadChat` to `False`.

```XAML
<telerik:RadChat IsSpeechToTextButtonVisible="False" />
```

## Setting Watermark Text

The empty text placeholder can be set via the `InputBoxWatermarkContent` property of `RadChat`.

![A picture showing a custom watermark](https://www.telerik.com/products/wpf/documentation/assets/8112e6ee0ef0c757acb15790b1f25e7e/chat-input-box-settings-1.png)

## More-Options Button

The more options drop-down button is located under the text area of the input box and by default it displays options for [attaching files and photos](https://www.telerik.com/products/wpf/documentation/controls/radchat/attachments).

The button is hidden but default. To **show it**, set the `IsMoreButtonVisible` property of `RadChat` to `True`.

```XAML
<telerik:RadChat IsMoreButtonVisible="True" />
```

![Telerik UI for WPF RadChat input box showing the More Options button for attachments](https://www.telerik.com/products/wpf/documentation/assets/10ad2ab5b4b4bc626aaff5c66e2b844d/chat-input-box-settings-2.png)

To **add more options** in the drop down, use the `MoreButtonActions` collection of the input box visual (`RadPromptInput`).

```C#
 private void RadChat_Loaded(object sender, RoutedEventArgs e)
 {
     var chat = (RadChat)sender;
     var promptInput = chat.FindChildByType<RadPromptInput>();
     promptInput.MoreButtonActions.Add(new PromptInputButtonAction() { Text = "PDF", Icon = "&#xe90e;", Command = myAttachPdfCommand });
 }
```

![A picture showing a custom attach PDF file option in the more-options button](https://www.telerik.com/products/wpf/documentation/assets/d1b3ae42b6c408b0ec85debd88576a51/chat-input-box-settings-3.png)

## Suggested Prompts List

The input box allows you to define and display a list of suggested prompt which can be used when implementing AI-based chat applications.

To show the button that opens the suggested prompts, set the `IsPromptSuggestionsButtonVisible` property of the input box visual (`RadPromptInput`) to `true`.

To add suggestions, use the `SuggestedPrompts` collection of the input box visual (`RadPromptInput`).

```C#
private void RadChat_Loaded(object sender, RoutedEventArgs e)
{
    var chat = (RadChat)sender;
    var promptInput = chat.FindChildByType<RadPromptInput>();
	promptInput.IsPromptSuggestionsButtonVisible = true;
    promptInput.SuggestedPrompts.Add("Summarize the attached document and highlight the key action items.");
    promptInput.SuggestedPrompts.Add("Help me write an email replying to a client request.");
    promptInput.SuggestedPrompts.Add("Explain the pasted code snippet and suggest possible improvements.");
}
```

![A picture showing the suggested prompts list](https://www.telerik.com/products/wpf/documentation/assets/9b8f8eb5370b69d37a0a6a73c49b677d/chat-input-box-settings-4.png)

## See Also

* [Getting Started with RadChat](https://www.telerik.com/products/wpf/documentation/controls/radchat/getting-started)
* [Speech-to-Text Button](https://www.telerik.com/products/wpf/documentation/controls/radbuttons/features/speech-to-text-button)
* [Attaching Files in RadChat](https://www.telerik.com/products/wpf/documentation/controls/radchat/attachments)
