This is a migrated thread and some comments may be shown as answers.

code sample to check how user can participate in chat sessions with other users (not bot)

3 Answers 204 Views
Conversational UI
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 23 Jun 2020, 04:34 PM

Hi Team,We are planing to use Kendo Conversation UI to provide messaging feature to the user. 

 

We have an existing application which is built in angular 8 and uses Web API for any CRUD operation which is written in C#. 

Here, I am looking for some code sample / snippet / example which can explain how a user can participate in chat sessions with other users (not with any bot etc.) 

and would like to see how the message will be send to another user in a chat session or how the message will broadcast to multiple users.

Any help in this regard will be very much appreciated.

Regards,

Mahesh

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 25 Jun 2020, 10:16 AM

Hi Mahesh,

The idea of the Conversational UI is to show message collection, that is bound to the [messages] property, one by one, and it is designed to represent communication between two users. It seems that the required functionality is not supported out of the box, and the developer would need some custom logic in order to achieve the desired behavior. 

In order to show messages to multiple users, they need to utilize the same instance of the component as this will ensure that the messages stored in the back end service will be visible to several profiles. 

On theory, the developer will need all user's profiles and with kendoChatMessageTemplate to customize each message content, adding the required information. Indeed there is no straight forward solution to implement such functionality. Thus there is no available demo that I could suggest as a reference as this is considered a developer effort.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mahesh
Top achievements
Rank 1
answered on 26 Jun 2020, 08:08 AM

Hi Martin, Thanks for the information.

I am reach out to you to get some sample example for the chat communication between two (2) users (human to human) using Conversational UI in angular. 

and to see how the message will be send/transmitted to another user in a chat session 

 

Regards,

Mahesh

0
Dimiter Topalov
Telerik team
answered on 30 Jun 2020, 08:13 AM

Hello Mahesh,

Like my colleague Martin mentioned in the initial response, the Conversational UI is not a complete instant messaging solution, and the desired functionality is not supported out-of-the-box. It is possible in theory, as previously described, if the data is coming from some SignalR or other push-notification service, and the data is updated across all instances of the component when one of the users sends a message, similar to the following Grid demo:

https://www.telerik.com/kendo-angular-ui/components/grid/how-to/consume-signalr-in-grid/

This way all users will see the update when the data is changed by one of them.

As the scenario is not supported out-of-the-box, and additional custom implementations are required, providing a full-blown runnable example falls outside of the scope of our support service. If you believe that such an example will be of use to many developers, please submit a feature request to our Feedback portal asking for a runnable application demonstrating how to use the Conversational UI as a chat-like client:

https://feedback.telerik.com/kendo-angular-ui

We will track the demand there, and will consider enhancing our documentation section with a how-to or similar article and a sample project, based on the interest. Thank you in advance.

Regards,
Dimiter Topalov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
n/a
Top achievements
Rank 1
commented on 30 Apr 2021, 07:05 AM

I too think this would be a valuable feature to allow for multiple users to chat together, with or without the bot.
Dimiter Madjarov
Telerik team
commented on 03 May 2021, 08:09 AM

Hi Gregory,

As described by my colleagues we track the demand for feature requests in our feedback portal. If you consider that this example will be a useful addition to our documentation, please submit an item there or cast your vote if such already exists.

Regards,

Dimiter

Tags
Conversational UI
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Martin
Telerik team
Mahesh
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Share this question
or