Skip to main content
All docs
V25.1
  • DxAIChatPromptSuggestion.PromptMessage Property

    Specifies the text to be displayed in the input field after a user clicks the corresponding suggestion (hint bubble).

    Namespace: DevExpress.AIIntegration.Blazor.Chat

    Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.1.dll

    NuGet Package: DevExpress.AIIntegration.Blazor.Chat

    Declaration

    [Parameter]
    public string PromptMessage { get; set; }

    Property Value

    Type Description
    String

    The prompt message.

    Remarks

    Populate the component’s PromptSuggestions property with DxAIChatPromptSuggestion objects (hint bubbles). You can specify Title, Text, and PromptMessage properties for each suggestion.

    Run Demo: AI Chat – Prompt Suggestions

    @using DevExpress.AIIntegration.Blazor.Chat
    
    <DxAIChat Initialized="ChatInitialized">
        <PromptSuggestions>
            @foreach (var suggestion in PromptSuggestions) {
                <DxAIChatPromptSuggestion Title="@suggestion.Title"
                                          Text="@suggestion.Text"
                                          PromptMessage="@suggestion.PromptMessage" />
            }
        </PromptSuggestions>
    </DxAIChat>
    
    @code {
        List<PromptSuggestion> PromptSuggestions { get; set; }
        void ChatInitialized() {
            PromptSuggestions = GetData();
        }
    }
    

    Implements

    See Also