$npx -y skills add syncfusion/maui-ui-components-skills --skill syncfusion-maui-ai-assistviewImplements Syncfusion .NET MAUI AI AssistView (SfAIAssistView) for AI-powered interactive chat interfaces. Use when working with AI chat interfaces, AI AssistView, SfAIAssistView, conversational UI, or chat with AI responses. Covers integrating AI services, creating chat UIs, imp
| 1 | # Implementing AI AssistView in .NET MAUI |
| 2 | |
| 3 | The Syncfusion .NET MAUI AI AssistView (SfAIAssistView) is a comprehensive control for integrating AI services into .NET MAUI applications. It provides a user-friendly conversational interface with built-in support for requests, responses, suggestions, conversation history, and extensive customization options. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when you need to: |
| 8 | |
| 9 | - **Integrate AI chat interfaces** in .NET MAUI applications |
| 10 | - **Display conversational UI** with user requests and AI responses |
| 11 | - **Implement AI-powered assistants** with suggestion prompts |
| 12 | - **Create chat-based interactions** with conversation history |
| 13 | - **Build intelligent applications** that interact with AI services |
| 14 | - **Customize chat appearance** with templates, themes, and styling |
| 15 | - **Handle user interactions** through events, commands, and data binding |
| 16 | - **Manage conversation flows** with headers, toolbars, and empty states |
| 17 | - **Implement localization** for multi-language AI chat applications |
| 18 | - **Design responsive AI interfaces** with .NET MAUI cross-platform support |
| 19 | |
| 20 | **Common Scenarios:** |
| 21 | - Customer support chatbots, AI assistants, help desk interfaces |
| 22 | - Conversational AI applications, virtual agents, interactive assistants |
| 23 | - Chat-based content generation, Q&A applications, knowledge bases |
| 24 | - Personal productivity assistants, note-taking with AI, writing helpers |
| 25 | - Educational platforms with AI tutors, interactive learning interfaces |
| 26 | - Any real-time conversational UI with AI-powered responses |
| 27 | |
| 28 | ## Component Overview |
| 29 | |
| 30 | **SfAIAssistView** is a comprehensive, feature-rich conversational control that: |
| 31 | - Displays AI-powered chat interfaces with user requests and AI responses |
| 32 | - Supports multiple content types (text, images, hyperlinks, cards, attachments) |
| 33 | - Provides flexible data binding with observable collections and MVVM patterns |
| 34 | - Enables customizable request/response display with templates and selectors |
| 35 | - Includes smart suggestion system (header, response-specific, footer prompts) |
| 36 | - Offers toolbar and chat mode management with temporary sessions |
| 37 | - Maintains conversation history with timestamps and interaction tracking |
| 38 | - Handles rich user interactions (tapping, long-press, context menus) |
| 39 | - Provides customizable message input editor with file attachments and actions |
| 40 | - Features auto-scrolling, scroll-to-bottom button, and loading indicators |
| 41 | - Supports comprehensive styling, theming, and platform-specific effects |
| 42 | |
| 43 | --- |
| 44 | |
| 45 | ## Documentation and Navigation Guide |
| 46 | |
| 47 | ### Getting Started |
| 48 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 49 | - NuGet package installation and setup |
| 50 | - Handler registration in MauiProgram.cs |
| 51 | - XAML namespace import and control initialization |
| 52 | - ViewModel setup with observable collections |
| 53 | - First request/response cycle implementation |
| 54 | - Common setup issues and troubleshooting |
| 55 | |
| 56 | ### Items and Data Binding |
| 57 | 📄 **Read:** [references/items-and-data-binding.md](references/items-and-data-binding.md) |
| 58 | - Item properties (text, profile, timestamp, error messages) |
| 59 | - Item types (text, hyperlinks, images, cards, attachments) |
| 60 | - Item interaction events and commands |
| 61 | - Error response display and handling |
| 62 | - Custom item view templates |
| 63 | - Custom model binding and converters |
| 64 | - Context menus for requests and responses |
| 65 | |
| 66 | ### Suggestions |
| 67 | 📄 **Read:** [references/suggestions.md](references/suggestions.md) |
| 68 | - Header-level suggestion prompts |
| 69 | - Response-specific suggestions |
| 70 | - Footer suggestions above the editor |
| 71 | - Suggestion selection events and commands |
| 72 | - Cancellation and submission behaviors |
| 73 | |
| 74 | ### Header |
| 75 | 📄 **Read:** [references/header.md](references/header.md) |
| 76 | - Header visibility and customization |
| 77 | - Header text and template configuration |
| 78 | - Displaying suggestions in headers |
| 79 | |
| 80 | ### Toolbar |
| 81 | 📄 **Read:** [references/toolbar.md](references/toolbar.md) |
| 82 | - Toolbar visibility and title customization |
| 83 | - New Chat button implementation |
| 84 | - Temporary chat mode support |
| 85 | - Chat mode switching events |
| 86 | |
| 87 | ### History |
| 88 | 📄 **Read:** [references/history.md](references/history.md) |
| 89 | - Enabling conversation history |
| 90 | - Conversation item structure (title, timestamp, messages) |
| 91 | - History view customization |
| 92 | - History interaction handling |
| 93 | |
| 94 | ### Events and Commands |
| 95 | 📄 **Read:** [references/events.md](references/events.md) |
| 96 | - Item tapped and long-pressed events |
| 97 | - Request events and command handling |
| 98 | - Footer action commands (copy, retry, rating) |
| 99 | |
| 100 | ### Editor and Attachments |
| 101 | 📄 **Read:** [references/editor-and-attachments.md](references/editor-and-attachments.md) |