# ASP.NET Core SmartPasteButton Overview

The Telerik UI SmartPasteButton TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI SmartPasteButton widget.

The SmartPasteButton enables users to copy unstructured text (for example, a message or an email signature) and paste it into a form. The component sends the clipboard content to an AI service, receives structured data, and populates the available form fields.

* [Demo page for the SmartPasteButton](https://demos.telerik.com/aspnet-core/smartpastebutton)

## Initializing the SmartPasteButton

The following example demonstrates how to define a SmartPasteButton.

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

## Using the SmartPasteButton with Editors

In the SmartPasteButton demo, the component is used next to editors that represent the target form fields.

```Razor HtmlHelper
<form id="form1">
    @(Html.Kendo().TextBox()
        .Name("fullName")
        .Label(l => l.Content("Full Name"))
        .Placeholder("Full Name")
    )

    @(Html.Kendo().TextBox()
        .Name("city")
        .Label(l => l.Content("City"))
        .Placeholder("City")
    )

    @(Html.Kendo().MaskedTextBox()
        .Name("phone_number")
        .Label(l => l.Content("Phone Number"))
        .HtmlAttributes(new { placeholder = "e.g. XXXXXXXX" })
        .Mask("(000) 000-00-00")
    )

    <div class="form-actions">
        @(Html.Kendo().SmartPasteButton()
            .Name("smartPaste")
            .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
            .Text("Smart Paste")
            .Events(e => e.RequestStart("onRequestStart").RequestEnd("onRequestEnd"))
        )
    </div>
</form>
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<form id="form1">
    <kendo-textbox name="fullName" placeholder="Full Name">
        <textbox-label content="Full Name" />
    </kendo-textbox>

    <kendo-textbox name="city" placeholder="City">
        <textbox-label content="City" />
    </kendo-textbox>

    <kendo-maskedtextbox name="phone_number"
                         mask="(000) 000-00-00"
                         placeholder="e.g. XXXXXXXX">
        <maskedtextbox-label content="Phone Number" />
    </kendo-maskedtextbox>

    <div class="form-actions">
        <kendo-smartpastebutton name="smartPaste"
                                text="Smart Paste"
                                on-request-start="onRequestStart"
                                on-request-end="onRequestEnd">
            <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
        </kendo-smartpastebutton>
    </div>
</form>
```

## Functionality and Features

* [Getting Started](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/getting-started)—Step-by-step guide to create and initialize the SmartPasteButton.
* [AI service integration](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/ai-service-integration)—Configure the AI service endpoint that processes clipboard content and returns structured data.
* [Events](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/events)—Handle the request lifecycle and customize the component behavior.
* [Appearance](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance)—Customize size, theme color, border radius, fill mode, and icon.
* [Error Handling](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/error-handling)—Reset and clear validation error states in form scenarios.
* [Keyboard Navigation](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/keyboard-navigation)—Navigate and interact with the SmartPasteButton through keyboard shortcuts.

## Supported Kendo UI Components

The SmartPasteButton can be used next to common editors and with the Telerik UI Form.

| Component           | Documentation                                                                                                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| AutoComplete        | [AutoComplete Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/autocomplete/overview)               |
| ComboBox            | [ComboBox Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/combobox/overview)                       |
| DateInput           | [DateInput Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/dateinput/overview)                     |
| DatePicker          | [DatePicker Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/datepicker/overview)                   |
| DateRangePicker     | [DateRangePicker Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/daterangepicker/overview)         |
| DateTimePicker      | [DateTimePicker Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/datetimepicker/overview)           |
| DropDownList        | [DropDownList Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/dropdownlist/overview)               |
| DropDownTree        | [DropDownTree Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/dropdowntree/overview)               |
| Form                | [Form Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/layout/form/overview)                                |
| MaskedTextBox       | [MaskedTextBox Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/maskedtextbox/overview)             |
| MultiColumnComboBox | [MultiColumnComboBox Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/multicolumncombobox/overview) |
| MultiSelect         | [MultiSelect Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/multiselect/overview)                 |
| NumericTextBox      | [NumericTextBox Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/numerictextbox/overview)           |
| RadioGroup          | [RadioGroup Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/radiogroup/overview)                   |
| Rating              | [Rating Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/overview)                           |
| Switch              | [Switch Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/switch/overview)                           |
| TextArea            | [TextArea Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/textarea/overview)                       |
| TextBox             | [TextBox Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/textbox/overview)                         |
| TimeDurationPicker  | [TimeDurationPicker Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/overview)   |
| TimePicker          | [TimePicker Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timepicker/overview)                   |

## Next Steps

* [Getting Started with the SmartPasteButton](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/getting-started)
* [Basic Usage of the SmartPasteButton (Demo)](https://demos.telerik.com/aspnet-core/smartpastebutton)
* [SmartPasteButton Events (Demo)](https://demos.telerik.com/aspnet-core/smartpastebutton/events)
* [SmartPasteButton Appearance (Demo)](https://demos.telerik.com/aspnet-core/smartpastebutton/appearance)
* [JavaScript API Reference of the SmartPasteButton](https://docs.telerik.com/kendo-ui/api/ui/smartpastebutton)

## See Also

* [Getting Started with the SmartPasteButton](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/getting-started)

* [Appearance of the SmartPasteButton](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance)

* [Events of the SmartPasteButton](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/events)

* [AI Service Integration](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/ai-service-integration)

* [Server-Side API of the SmartPasteButton ](https://www.telerik.com/aspnet-core-ui/documentation/api/smartpastebutton)

* [Server-Side API of the SmartPasteButton TagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/taghelpers/smartpastebutton)

*

* [Knowledge Base Section](https://www.telerik.com/aspnet-core-ui/documentation/knowledge-base)
