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

    Specifies what happens when you click a search suggestion: instantly send it to chat or place it in the prompt box.

    Namespace: DevExpress.AIIntegration.Blazor.Chat

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

    NuGet Package: DevExpress.AIIntegration.Blazor.Chat

    Declaration

    [DefaultValue(false)]
    [Parameter]
    public bool SendOnClick { get; set; }

    Property Value

    Type Default Description
    Boolean false

    Specifies what happens when you click a search suggestion: instantly send it to chat or place it in the prompt box.

    Remarks

    Enable the SendOnClick property of the DxAIChatPromptSuggestion to instantly send the message from the corresponding suggestion bubble to the chat upon click.

    Disable the property to insert the message to the chat prompt box. It allows the user to edit text and send it manually.

    @using DevExpress.AIIntegration.Blazor.Chat
    
    <DxAIChat>
        <PromptSuggestions>
            <DxAIChatPromptSuggestion Title="Tell me a joke"
                                      Text="Take a break and enjoy a quick laugh"
                                      PromptMessage="Tell me a joke about AI."
                                      SendOnClick="true" />
            <DxAIChatPromptSuggestion Title="Summarize text"
                                      Text="Extract a quick summary (main ideas)"
                                      PromptMessage="Summarize the following text:"
                                      SendOnClick="false" />
        </PromptSuggestions>
    </DxAIChat>
    

    Send Prompt Suggestion to Chat

    Implements

    See Also