Smart Paste

Billing Information:
Source Text:

This demo incorporates an AI-powered Smart Paste extension into the DevExpress Blazor Form Layout component. The extension simplifies data entry scenarios when information is copied from external sources. It parses unstructured text (such as email content or free-form notes) and automatically populates matching form fields with extracted values.

To replicate Smart Paste functionality in your next great DevExpress-powered Blazor project, you must:

  1. Register the desired AI service in your application. Select the approach that best fits your needs:

  2. Register the following namespaces in the Components/Imports.razor file or in your Razor file:

  3. Use the Extensions property to add the AI-powered Smart Paste functionality to the Form Layout component.

  4. Write your own code to obtain source text (for example, from an editor, clipboard, file, or external system).

  5. Add a button that calls the FormLayout.SmartPasteAsync method. Pass the obtained text to this method.

Note: DevExpress AI-powered extensions follow the "bring your own key" principle. DevExpress does not offer a REST API and does not ship any built-in LLMs/SLMs. You need an active Azure/Open AI subscription to obtain the REST API endpoint, key, and model deployment name. These variables must be specified at application startup to register AI clients and enable DevExpress AI-powered extensions in your application.