AIPrompt clear/remove items from output

1 Answer 21 Views
AIPrompt
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan asked on 19 Aug 2025, 03:10 PM
Hi Telerik Team,

We are currently prototyping with TelerikAIPrompt.
We want to implement a conversation context feature, so I’m wondering how we can clear the output in order to load new data bound to another conversationId.

I only see an AddOutput method, but there doesn’t seem to be a way to remove or clear existing outputs.

Does this mean I should manually rewrite the OutputItemsTemplate and Views, etc... and manage my own collection instead of relying on the @context available inside the OutputItemTemplate?

I believe many people must have run into this issue, but I haven’t been able to find any related forum posts, knowledge-base articles, or demos.

Thanks!
Bohdan  
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
commented on 21 Aug 2025, 09:15 AM | edited

I feel that combining prompt and output into a single standard view makes the most sense, and dialog context should really be the minimum feature – if not a base standard as well. Is this something Telerik is considering to change/add in the future?

Right now it creates an unnecessary challenge to implement a chat flow this way with more robust functionality with more complex UI/UX requirements. For example, when we build our own template to join Ask and Output, we lose the skeleton loading experience while the prompt is being processed, so we should create our own logic for that...

I am referencing to this forum post:
Joining AIPrompt views
Thanks!
Bohdan

1 Answer, 1 is accepted

Sort by
1
Accepted
Tsvetomir
Telerik team
answered on 22 Aug 2025, 10:10 AM

Hi Bohdan,

Current AIPrompt Limitations and Workarounds

  • The TelerikAIPrompt component does not currently offer built-in support for clearing or removing outputs, nor does it provide direct dialog context or a unified prompt/output view as a standard feature.
  • To achieve chat-like flows or maintain conversation context, you will need to manage your own output collection and templates. This includes handling view states and loading indicators manually, since the default skeleton loading is tied to the built-in views and not exposed for custom templates.

Future Plans and Considerations

  • There are no announced plans to add dialog context or a combined prompt/output view as a standard feature in the existing TelerikAIPrompt component.
  • However, a dedicated Chat component is scheduled for release on August 26th (or next week). This new component will provide an out-of-the-box chat UI, including conversation context and unified views, addressing the requirements you mentioned.You can preview the planned layout and features here: New Conversational (Chat) UI Component

    Summary

    • For advanced chat scenarios with AIPrompt, custom logic is needed at this time.
    • The upcoming Chat component is designed to deliver conversation context and a unified prompt/output experience out of the box.

    I hope the provided information serves you well.

      Regards,
      Tsvetomir
      Progress Telerik

      Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

      Bohdan
      Top achievements
      Rank 2
      Iron
      Iron
      Iron
      commented on 22 Aug 2025, 10:26 AM

      Hi Tsvetomir,

      That’s exactly what we need. We’ll wait for the new Chat component and give it a try once it’s out.

      Thanks for the heads-up!
      Regards,
      Bohdan

      Tags
      AIPrompt
      Asked by
      Bohdan
      Top achievements
      Rank 2
      Iron
      Iron
      Iron
      Answers by
      Tsvetomir
      Telerik team
      Share this question
      or