• Material 3
  • Bootstrap 5
  • Fluent 2
  • Tailwind CSS
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Overview in ASP.NET Core Inline AI Assist Control

This sample demonstrates the overview functionalities of the Inline AI Assist component in an email draft assistant scenario. Users can access AI assistance in two ways: hover over any paragraph to see a sparkle button for inline editing, or click the AI Assistant button to enhance the entire email content.

DEMO
SOURCE

In this example, the Inline AI Assist component showcases the following key features:

  • commandSettings - Defines predefined AI commands (Summarize, Fix Grammar, Make Professional, Make Friendly)
  • relateTo - Positions the popup relative to the element provided in the relateTo property
  • promptRequest - Processes AI requests through the backend API service
  • responseSettings - Handles Accept and Reject actions for AI responses
  • showPopup - Programmatically opens the AI Assist popup
  • open and close - Events for tracking popup state

Processing of the Prompt:

  • When a prompt is executed, the promptRequest event is triggered, followed by a fetch request to the backend API service.
  • The response from the LLM is streamed back using the addResponse method.
  • When the Stop Responding button is clicked, the streaming process is cancelled using abortController.
Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab