-
Notifications
You must be signed in to change notification settings - Fork 912
Open
Description
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
Labels
No labels