Skip to content

Feature request: Support for custom elements (e.g., buttons) at the end of AI responses #2283

@franklupo

Description

@franklupo

Is your feature request related to a problem? Please describe.
I want to be able to add custom elements at the end of each AI response in RadzenAIChat. Currently, there is no way to define a footer template for responses.

Describe the solution you'd like

  • Introduce a ResponseFooterTemplate property or similar.
  • This template would allow appending custom Blazor components or buttons to each response.
  • Example: action buttons like 👍 / 👎, Download, or other developer-defined actions.
  • Elements should be fully interactive and trigger Blazor events or callbacks.

Describe alternatives you've considered

  • Wrapping the chat component and manually appending UI elements, which is cumbersome and not integrated.

Additional context

  • Goal: make each AI response interactive with custom UI elements without modifying the core chat component.
<RadzenAIChat @ref="chat"
              Messages="@messages">
    <ResponseFooterTemplate Context="message">
        <button class="btn btn-sm btn-primary" @onclick="() => OnThumbsUp(message)">👍</button>
        <button class="btn btn-sm btn-secondary ml-2" @onclick="() => OnDownload(message)">Download</button>
    </ResponseFooterTemplate>
</RadzenAIChat>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions