/syncfusion-winforms:syncfusion-winforms-ai-assistviewfrom Syncfusion WinForms Controls
Guide for implementing Syncfusion Windows Forms AI AssistView (SfAIAssistView) for building conversational AI interfaces in desktop applications. Use this when creating chat interfaces, AI assistants, or chatbots with Windows Forms. Supports OpenAI and Azure OpenAI integration, typing indicators, chat suggestions, message bubbles, custom views, input toolbar with attachments, response toolbar actions, and stop responding for interactive messaging experiences.
Ships in Syncfusion WinForms Controls. 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 Syncfusion Windows Forms AI AssistView (SfAIAssistView) is a sophisticated conversational interface control for building AI-powered chat applications with support for suggestions, typing indicators, custom views, input and response toolbars, stop responding, and seamless OpenAI/ChatGPT integration.
Use this skill when the user needs to:
Key Features:
📄 Read: references/getting-started.md
📄 Read: references/suggestions.md
📄 Read: references/typing-indicator.md
📄 Read: references/customization.md
📄 Read: references/events.md
📄 Read: references/input-toolbar.md
📄 Read: references/response-toolbar.md
📄 Read: references/stop-responding.md
📄 Read: references/openai-integration.md
using Syncfusion.WinForms.AIAssistView;
using System.ComponentModel;
using System.Collections.ObjectModel;
namespace AIAssistViewDemo
{
public partial class Form1 : Form
{
ViewModel viewModel;
public Form1()
{
InitializeComponent();
viewModel = new ViewModel();
// Create AI AssistView
SfAIAssistView sfAIAssistView1 = new SfAIAssistView();
sfAIAssistView1.Dock = DockStyle.Fill;
this.Controls.Add(sfAIAssistView1);
// Bind messages
sfAIAssistView1.DataBindings.Add("Messages", viewModel, "Chats",
true, DataSourceUpdateMode.OnPropertyChanged);
}
}
// ViewModel
public class ViewModel : INotifyPropertyChanged
{
private ObservableCollection<object> chats;
private Author currentUser;
public ViewModel()
{
this.Chats = new ObservableCollection<object>();
this.CurrentUser = new Author { Name = "John" };
this.GenerateMessages();
}
private async void GenerateMessages()
{
// User message
this.Chats.Add(new TextMessage
{
Author = CurrentUser,
Text = "What is Windows Forms?"
});
await Task.Delay(1000);
// Bot response
this.Chats.Add(new TextMessage
{
Author = new Author { Name = "Bot" },
Text = "Windows Forms is a GUI framework for building Windows desktop applications."
});
}
public ObservableCollection<object> Chats
{
get => this.chats;
set
{
this.chats = value;
RaisePropertyChanged("Chats");
}
}
public Author CurrentUser
{
get => this.currentUser;
set
{
this.currentUser = value;
RaisePropertyChanged("CurrentUser");
}
}
public event PropertyChangedEventHandler PropertyChanged;
public void RaisePropertyChanged(string propName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
}
}
}
// In ViewModel
private IEnumerable<string> suggestion;
public IEnumerable<string> Suggestion
{
get => this.suggestion;
set
{
this.suggestion = value;
RaisePropertyChanged("Suggestion");
}
}
// Set suggestions after bot response
Suggestion = new ObservableCollection<string>
{
"Tell me more",
"What are alternatives?"
};
// In Form
sfAIAssistView1.DataBindings.Add("Suggestions", viewModel, "Suggestion",
true, DataSourceUpdateMode.OnPropertyChanged);
// In ViewModel
private bool showTypingIndicator;
public bool ShowTypingIndicator
{
get => this.showTypingIndicator;
set
{
this.showTypingIndicator = value;
RaisePropertyChanged("ShowTypingIndicator");
}
}
// Usage
ShowTypingIndicator = true;
var response = await GetAIResponse(userMessage);
Chats.Add(new TextMessage { Author = botAuthor, Text = response });
ShowTypingIndicator = false;
// In Form
sfAIAssistView1.DataBindings.Add("ShowTypingIndicator", viewModel,
"ShowTypingIndicator", true, DataSourceUpdateMode.OnPropertyChanged);
sfAIAssistView1.TypingIndicator.Author = new Author
{
Name = "Bot",
AvatarImage = Image.FromFile(@"Assets\bot.png")
};
sfAIAssistView1.TypingIndicator.DisplayText = "Typing";
BannerStyle customStyle = new BannerStyle
{
TitleFont = new Font("Segoe UI", 14F, FontStyle.Bold),
SubTitleFont = new Font("Segoe UI", 12F, FontStyle.Italic),
ImageSize = AvatarSize.Medium,
SubTitleColor = Color.Gray,
TitleColor = Color.DarkBlue
};
string title = "AI Assistant";
string subTitle = "Powered by OpenAI";
sfAIAssistView1.SetBannerView(title, subTitle,
Image.FromFile(@"Assets\ai-icon.png"), customStyle);
sfAIAssistView1.PromptRequest += (sender, e) =>
{
var message = e.Message as TextMessage;
if (message == null) return;
// Validate input
if (string.IsNullOrWhiteSpace(message.Text))
{
e.Handled = true; // Prevent adding to messages
MessageBox.Show("Please enter a message.");
return;
}
// Custom processing
LogUserInput(message.Text);
};
// Enable the input toolbar
sfAIAssistView1.IsInputToolbarVisible = true;
// Configure toolbar items
sfAIAssistView1.InputToolbarItems = new ObservableCollection<InputToolbarItem>
{
new InputToolbarItem
{
Name = "Attach",
ToolTip = "Attach File",
Text = "\U0001F4CE",
IsVisible = true
}
};
// Handle toolbar clicks
sfAIAssistView1.InputToolbarItemClicked += (sender, args) =>
{
if (args.ToolbarItem.Name == "Attach")
{
// Open file dialog and add attachment
var dialog = new OpenFileDialog();
if (dialog.ShowDialog() == DialogResult.OK)
{
var fileInfo = new FileInfo(dialog.FileName);
sfAIAssistView1.Attachments.Add(new AttachmentItem
{
FileName = fileInfo.Name,
FileSize = $"{fileInfo.Length / 1024.0:F2} KB",
FilePath = dialog.FileName,
FileExtension = fileInfo.Extension
});
}
}
};
// Enable the response toolbar
sfAIAssistView1.IsResponseToolBarVisible = true;
// Configure toolbar items
sfAIAssistView1.ResponseToolBarItems = new ObservableCollection<ResponseToolBarItem>
{
new ResponseToolBarItem { ItemType = ResponseToolBarItemType.Copy, Name = "Copy" },
new ResponseToolBarItem { ItemType = ResponseToolBarItemType.Regenerate, Name = "Regenerate" },
new ResponseToolBarItem { ItemType = ResponseToolBarItemType.Like, Name = "Like" },
new ResponseToolBarItem { ItemType = ResponseToolBarItemType.Dislike, Name = "Dislike" }
};
// Handle toolbar item clicks
sfAIAssistView1.ResponseToolBarItemClicked += (sender, e) =>
{
if (e.ToolBarItem?.ItemType == ResponseToolBarItemType.Copy)
{
Clipboard.SetText(e.ChatItem?.Text);
}
else if (e.ToolBarItem?.ItemType == ResponseToolBarItemType.Regenerate)
{
// Handle regeneration logic
}
};
// Enable the stop button
sfAIAssistView1.EnableStopResponding = true;
private CancellationTokenSource cts;
sfAIAssistView1.StopRespondingButtonClicked += (sender, e) =>
{
if (cts != null && !cts.IsCancellationRequested)
{
cts.Cancel();
cts.Dispose();
cts = null;
}
};
// In AI request handler
cts = new CancellationTokenSource();
string response = await aiService.NonStreamingChatAsync(message, cts.Token);
| Property/Method | Type | Description |
|---|---|---|
Messages | ObservableCollection | Chat message collection |
Suggestions | IEnumerable | Response suggestion items |
ShowTypingIndicator | bool | Shows/hides typing indicator |
TypingIndicator | TypingIndicator | Typing indicator configuration |
User | Author | Current user information |
IsInputToolbarVisible | bool | Shows/hides the input toolbar |
InputToolbarItems | ObservableCollection | Input toolbar buttons |
ActionButtons | ObservableCollection | Popup action buttons on input area |
Attachments | ObservableCollection | File attachments for the current prompt |
IsResponseToolBarVisible | bool | Shows/hides the response toolbar |
ResponseToolBarItems | ObservableCollection | Response toolbar action buttons |
EnableStopResponding | bool | Enables the stop responding button |
SetBannerView() | Method | Customize banner appearance |
SetBotView() | Method | Set custom bot message view |
SetUserView() | Method | Set custom user message view |
SetToolBarVisibility() | Method | Control response toolbar visibility per message |
SetToolBarItemVisibility() | Method | Control individual toolbar item visibility per message |
GetToolBarItem() | Method | Retrieve a specific toolbar item from a message |
PromptRequest | Event | Fires when user submits prompt |
ResponseToolBarItemClicked | Event | Fires when a response toolbar action is clicked |
StopRespondingButtonClicked | Event | Fires when stop responding button is clicked |
InputToolbarItemClicked | Event | Fires when an input toolbar button is clicked |
ActionButtonClicked | Event | Fires when an action button from the popup is clicked |
Build an AI-powered customer support interface with suggestion chips for common questions and typing indicators during response generation.
Implement a help desk application where users can attach files, receive AI-generated responses, and provide feedback through like/dislike buttons.
Create a full-featured desktop AI assistant with banner branding, file attachment support, response actions, and the ability to cancel long-running AI requests.
Build guided conversational flows with suggestion chips that lead users through multi-step data entry processes, with custom views for complex response rendering.
references/customization.md (opens in a new tab)references/events.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/input-toolbar.md (opens in a new tab)references/openai-integration.md (opens in a new tab)references/response-toolbar.md (opens in a new tab)references/stop-responding.md (opens in a new tab)references/suggestions.md (opens in a new tab)references/typing-indicator.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms113 skills in this plugin
/syncfusion-winforms-autocompleteGuides implementation of the Syncfusion WinForms AutoComplete control for text input with auto-suggestion functionality. Use when users want to add autocomplete textboxes, implement auto-suggestion features, create search boxes with suggestions, enable URL/email autocomplete, or build type-ahead search functionality in Windows desktop applications. Covers data binding, customization, filtering, multi-column dropdowns, events, and all AutoComplete-specific features./syncfusion-winforms-autolabelGuides implementation of the Syncfusion WinForms AutoLabel control for automatic label positioning with form controls. Use when users want to add labels that automatically reposition when controls move, create form layouts with paired label-control units, implement complex form designs with FlowLayout, or ensure labels stay synchronized with their associated controls. Covers labeling controls, positioning, spacing, size settings, theming, and events./syncfusion-winforms-banner-text-providerGuide for implementing Syncfusion WinForms BannerTextProvider (watermark text provider) control. Use this when working with watermark text, placeholder text, or hint text in editor controls. Covers setup, text modes (FocusMode/EditMode), color/font customization, and supported control types in Windows Forms applications./syncfusion-winforms-border-layoutImplement Syncfusion Windows Forms BorderLayout to arrange child controls along borders (North, South, East, West) and center. Use this when working with BorderLayout, positioning controls in border regions, using docking alternatives, or configuring container layout and control spacing in Windows Forms applications./syncfusion-winforms-bullet-graphImplementation guide for Syncfusion Windows Forms Bullet Graph control for compact data visualization. Use this when working with bullet graphs, performance indicators, KPI visualization, comparative measures, or qualitative ranges in WinForms. This skill covers dashboard gauges, target vs actual comparisons, and performance range visualization in Windows Forms desktop applications./syncfusion-winforms-buttonGuide developers to implement and customize the Syncfusion Windows Forms SfButton control for desktop applications. Use this when creating interactive buttons with text, images, styling, and theming in Windows Forms applications. Covers implementation, customization, and interaction handling.