Blazor InlineAIPrompt Overview

Updated on Oct 1, 2026

The Telerik InlineAIPrompt for Blazor is a popup-based component that lets you interact with AI language models right inside your content.

ninja-iconThe InlineAIPrompt component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.Start Free Trial

The InlineAIPrompt provides a simple and focused way to send prompts and get responses from AI without interrupting the user’s flow. The InlineAIPrompt is great for adding contextual AI help exactly where users need it.

Creating Blazor InlineAIPrompt

  1. Add the <TelerikInlineAIPrompt> tag.
  2. Subscribe to the OnPromptRequest event that will fire whenever the user sends a prompt request. The handler expects an argument of type InlineAIPromptPromptRequestEventArgs.
  3. Set the Prompt parameter

Telerik Blazor InlineAIPrompt

Example
View Source
Loading ...

Streaming

The InlineAIPrompt component supports streaming responses, which lets users view AI-generated content in real time as it’s created. Read more about the Blazor InlineAIPrompt streaming...

Events

The InlineAIPrompt component offers several events that allow developers to handle user interactions effectively. Read more about the Blazor InlineAIPrompt events...

InlineAIPrompt API

Get familiar with all InlineAIPrompt parameters, methods, events, and nested tags in the InlineAIPrompt API Reference.

Settings and Commands

The InlineAIPrompt exposes settings for its popup and its embedded Speech to Text Button. To configure the options, declare a <InlineAIPromptPopupSettings> or <InlineAIPromptSpeechToTextButtonSettings> tag inside <InlineAIPromptSettings>.

The InlineAIPrompt component also exposes an option to set predefined commands, which is a predefined prompt that is processed immediately. To configure the actions, use the Commands parameter and subscribe to the OnCommandExecute event that will fire whenever the user executes a command. The handler expects an argument of type InlineAIPromptCommandExecuteEventArgs.

Example
View Source
Loading ...

InlineAIPrompt Reference

Use the component reference to execute the following methods.

MethodDescription
RefreshRe-renders the component.
ShowAsyncShows the inline prompt at defined coordinates. Accepts two parameters: X and Y coordinates to position the popup.
HideAsyncHides the Inline AI Prompt.

See Also