AIPrompt

The AIPrompt component lets users interact with an AI service by writing prompts and executing predefined commands.

AIPrompt Overview

The Telerik and Kendo UI AIPrompt enables the users of your application to interact with a trained language model of your choice. It comprises an input field, a customizable menu with pre-defined commands, and user-selectable options for query management.

Live Demo

Modifiers
Variant

Appearance

The configuration of the AIPrompt component revolves around the concept of Views. Each View includes elements that are specific to the current stage of the user's interaction with the AI model:

  • Prompt View—Serves as a key area for the user input and includes a main input field for entering prompts, a list of suggestions, and a button to submit requests to the large language model (LLM).
  • Output View—Visualizes all previous interactions by showing prompts (or commands) and their results and provides options to retry, copy, or rate each response.
  • Command View—Lists custom commands that can be used in your specific context or as independent queries to the LLM.
  • Custom View—Enables you to customize the view content entirely.

Anatomy

The anatomy of the AIPrompt summarizes the elements of the component:

A Telerik and Kendo UI AIPrompt component
  1. Toolbar
  2. Prompt view
  3. Output view
  4. Prompt text area
  5. Generate button
  6. Response card
  7. Request command
  8. Request content
  9. Response content
  10. Copy button
  11. Retry button
  12. Vote buttons

Prompt Suggestions

The AIPrompt lets the user interact with the AI model in two ways—by typing their instructions and requests in the dedicated input field and by selecting from a list of predefined prompt suggestions.

A Telerik and Kendo UI AIPrompt with collapsed prompt suggestions.
  1. Collapsed view
  2. Expanded view

Command View

The Telerik and Kendo UI AIPrompt component lets you define custom prompt commands that users can select and apply.

Three custom command options for the Telerik and Kendo UI AIPrompt component.

Framework-Specific Documentation

For specific information about the component, refer to its official product documentation: