/syncfusion-blazor:syncfusion-blazor-inline-ai-assistfrom Syncfusion Blazor Components
Implement Blazor Inline AI Assist component for seamless AI-powered text editing and content generation. Covers setup in WebAssembly and Web App projects, event handling, AI provider integration (Azure OpenAI, OpenAI, Ollama, Gemini), customization, accessibility, and enterprise deployment patterns.
Ships in Syncfusion Blazor Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Inline AI Assist component enables developers to build AI-powered text editing experiences in Blazor applications. It provides a flexible UI for prompt entry, configurable AI provider integration, and comprehensive customization options for enterprise applications.
The SfInlineAIAssist component enables users to prompt AI services and receive intelligent responses directly within their interface, with flexible display modes and extensive customization options such as:
InlineAIAssistSpeechToText child tag.📄 Read: references/getting-started.md
📄 Read: references/events-and-methods.md
📄 Read: references/commands-and-toolbar.md
📄 Read: references/ai-integration.md
📄 Read: references/customization-and-response.md
📄 Read: references/speech-to-text.md
InlineAIAssistSpeechToText child tagRecognitionStart, RecognitionStop, TranscriptChanged, RecognitionErrorInlineToolbar📄 Read: references/accessibility-and-globalization.md
Here's a minimal working example to verify your setup:
@using Syncfusion.Blazor.InteractiveChat
@using Syncfusion.Blazor.Buttons
<div style="height: 350px; width: 650px;">
<SfButton id="aiButton" IsPrimary="true" @onclick="OnButtonClick">
Ask AI
</SfButton>
<div id="editableText" contenteditable="true" style="border: 1px solid #ddd; padding: 10px; margin-top: 10px;">
<p>Enter your text here for AI processing...</p>
</div>
<SfInlineAIAssist @ref="inlineAssist"
RelateTo="#aiButton"
PromptRequested="OnPromptRequested">
<ResponseActions ItemSelect="OnResponseItemSelect"></ResponseActions>
</SfInlineAIAssist>
</div>
@code {
private SfInlineAIAssist inlineAssist = new();
private async Task OnButtonClick()
{
await inlineAssist.ShowPopupAsync();
}
private async Task OnPromptRequested(PromptRequestedEventArgs args)
{
// Connect to your AI provider here (Azure OpenAI, OpenAI, etc.)
// For this example, return a simple response
string response = $"Processing your request: {args.Prompt}";
await inlineAssist.UpdateResponseAsync(response, true);
}
private async Task OnResponseItemSelect(ResponseItemSelectEventArgs args)
{
if (args.Item.Label == "Accept")
{
await inlineAssist.HidePopupAsync();
}
else if (args.Item.Label == "Discard")
{
await inlineAssist.HidePopupAsync();
}
}
}
<SfButton id="summarizeButton" @onclick="OnSummarizeClick">
Summarize
</SfButton>
<SfInlineAIAssist @ref="inlineAssist"
RelateTo="#summarizeButton"
PromptRequested="OnSummarizeRequest">
</SfInlineAIAssist>
@code {
private async Task OnSummarizeClick()
{
await inlineAssist.ShowPopupAsync();
}
private async Task OnSummarizeRequest(PromptRequestedEventArgs args)
{
// Send to AI provider with system prompt:
// "Summarize the following text in 2-3 sentences: " + selectedText
await inlineAssist.UpdateResponseAsync(summaryResult, true);
}
}
<SfInlineAIAssist @ref="inlineAssist" PromptRequested="OnPromptRequested">
<CommandMenu Commands="commandItems"></CommandMenu>
</SfInlineAIAssist>
@code {
private List<CommandItem> commandItems = new List<CommandItem>
{
new CommandItem { Label = "Summarize", Prompt = "Summarize this text", IconCss = "e-icons e-collapse-2" },
new CommandItem { Label = "Translate", Prompt = "Translate to Spanish", IconCss = "e-icons e-translate" },
new CommandItem { Label = "Rewrite", Prompt = "Rewrite in professional tone", IconCss = "e-icons e-edit" }
};
}
<SfInlineAIAssist @ref="inlineAssist" PromptRequested="OnPromptRequested">
<ResponseActions Items="customResponseItems" ItemSelect="OnResponseAction">
</ResponseActions>
</SfInlineAIAssist>
@code {
private List<ResponseItem> customResponseItems = new()
{
new ResponseItem { Label = "Regenerate", IconCss = "e-icons e-refresh", Tooltip = "Generate new response" },
new ResponseItem { Label = "Copy", IconCss = "e-icons e-copy", Tooltip = "Copy to clipboard" },
new ResponseItem { Label = "Insert", IconCss = "e-icons e-insert", Tooltip = "Insert into document" }
};
}
| Property | Type | Purpose |
|---|---|---|
RelateTo | string | Anchor element selector for popup positioning (e.g., "#aiButton") |
Target | string | DOM selector where the component container is appended (e.g., "body", "#app") |
Placeholder | string | Input field placeholder text (default: "Enter prompt") |
ResponseMode | ResponseDisplayMode | Display mode: Inline (at cursor) or Popup (overlay) |
PopupWidth | string | Popup width when ResponseMode is Popup (e.g., "400px") |
PopupHeight | string | Popup height for response display area (e.g., "300px" or "auto") |
ZIndex | int | CSS z-index for popup layering |
EnableStreaming | bool | Enable word-by-word streaming responses (default: false) |
CssClass | string | Custom CSS class for styling |
PromptRequested | EventCallback<PromptRequestedEventArgs> | Triggered when user submits a prompt |
Created | EventCallback | Fires when component is created and ready |
Opened | EventCallback<OpenEventArgs> | Triggered when popup opens |
Closed | EventCallback | Triggered when popup closes |
Prompts | IEnumerable<PromptRecord> | Read-only collection of submitted prompts and their responses |
The Inline AI Assist component provides async methods for programmatic control:
Opens the AI Assist popup at the RelatedTo element position:
@ref="inlineAssist"
private SfInlineAIAssist inlineAssist;
private async Task OpenAIAssist()
{
await inlineAssist.ShowPopupAsync();
}
Closes the AI Assist popup:
private async Task CloseAIAssist()
{
await inlineAssist.HidePopupAsync();
}
Sets or streams the AI response content:
private async Task OnPromptRequested(PromptRequestedEventArgs args)
{
// Non-streaming response
await inlineAssist.UpdateResponseAsync("Generated response", true);
// Streaming response (call multiple times)
foreach (var chunk in streamedResponse)
{
await inlineAssist.UpdateResponseAsync(chunk, false);
}
// Final call with isFinal=true
await inlineAssist.UpdateResponseAsync(lastChunk, true);
}
Programmatically execute a prompt without user input:
private async Task ExecuteSamplePrompt()
{
await inlineAssist.ExecutePromptAsync("Summarize the selected text in 2 sentences");
}
Opens the command menu popup programmatically. The main popup should be open first.
private async Task OpenCommands()
{
await inlineAssist.ShowPopupAsync();
await inlineAssist.ShowCommandPopupAsync();
}
Closes the command menu popup programmatically.
private async Task CloseCommands()
{
await inlineAssist.HideCommandPopupAsync();
}
references/accessibility-and-globalization.md (opens in a new tab)references/ai-integration.md (opens in a new tab)references/commands-and-toolbar.md (opens in a new tab)references/customization-and-response.md (opens in a new tab)references/events-and-methods.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/speech-to-text.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
69 skills in this plugin
/syncfusion-blazor-3d-chartsProvides guidance for building and customizing Syncfusion Blazor 3D Charts. Trigger this skill whenever the user needs help with SfChart3D, 3D Column/Bar charts, axes, data binding, rotation, tilt, depth, legends, tooltips, or any configuration in Syncfusion.Blazor.Chart3D./syncfusion-blazor-accordionGuide for implementing the Syncfusion Blazor Accordion component for creating collapsible panels with expandable content. Use this skill when users need to build accordions, implement collapsible sections, create expandable panels, organize content in navigation components, implement FAQs, build collapsible menus, add nested accordions, configure expand modes (single or multiple), handle accordion events, customize accordion styling, implement accessible accordions with WCAG compliance, integrate data binding, or work with any vertically collapsible content containers in Blazor applications./syncfusion-blazor-accumulation-chartImplement Syncfusion Blazor Accumulation Chart (SfAccumulationChart) for proportional data visualization. Use this when creating pie charts, doughnut charts, funnel charts, or pyramid charts. This skill covers data labels, legends, tooltips, slice grouping, and part-to-whole visualizations in Blazor applications./syncfusion-blazor-ai-assistviewImplement the Syncfusion Blazor AI AssistView component for AI-powered chat interfaces in Blazor applications. Use this skill when implementing conversational AI, chatbots, AI assistants, or prompt-response interfaces. Covers AssistViewPrompt setup, PromptRequested events, markdown responses, prompt suggestions with avatar customization, and speech recognition/synthesis for voice-enabled chat interactions./syncfusion-blazor-appbarGuide for implementing Syncfusion Blazor AppBar component (SfAppBar) in Blazor applications. Use this when implementing navigation bars, app bars, or header toolbars with action controls. This skill covers AppBar configuration, size modes (regular, prominent, dense), color modes, positioning (top, bottom, sticky), menu integration, and responsive design patterns./syncfusion-blazor-barcodeBuild and troubleshoot barcode generation in Blazor using SfBarcodeGenerator, SfQRCodeGenerator, SfDataMatrixGenerator, and SfDotCodeGenerator. Trigger for 1D barcodes (Code39, Code128, Codabar), QR codes with logo and error correction, Data Matrix, DotCode, GS1-compliant symbologies (GS1 Code 128, ITF-14, GS1 DataBar family, GS1 QR Code, GS1 Data Matrix, GS1 DotCode) for retail/logistics/inventory traceability, checksum validation, and exporting barcodes to images in Syncfusion Blazor apps.npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-blazor