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

Closed
opened 2026-01-29 17:59:28 +00:00 by claunia · 1 comment
Owner

Originally created by @franklupo on GitHub (Sep 11, 2025).

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>
Originally created by @franklupo on GitHub (Sep 11, 2025). **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. ```razor <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> ```
Author
Owner

@enchev commented on GitHub (Oct 3, 2025):

I've just pushed MessageTemplate that can be used to declare whatever UI you need: 8eeda0e647

@enchev commented on GitHub (Oct 3, 2025): I've just pushed MessageTemplate that can be used to declare whatever UI you need: https://github.com/radzenhq/radzen-blazor/commit/8eeda0e64715ccc31487058aadf44e5f4bc91c6a
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1857