Getting Started with the Kendo UI for Angular Conversational UI

Conversational UI components bridge the gap between the Web and the next-generation natural language applications.

The Conversational UI package delivers the Kendo UI Chat component which allows the user to participate in chat sessions with other users or with chat bots.

The Conversational UI Package is part of Kendo UI for Angular, a professional grade UI library with 100+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Basic Usage

The following example demonstrates the Chat in action.

Example
View Source
Edit In Stackblitz  
Change Theme:

Installation

Either use the quick setup (Angular CLI) or manually add the package.

Quick Setup with Angular CLI

Angular CLI supports the addition of packages through the ng add command which executes in one step the set of otherwise individually needed commands.

    ng add @progress/kendo-angular-conversational-ui

Manual Setup

  1. Download and install the package and its peer dependencies.

       npm install --save @progress/kendo-angular-conversational-ui @progress/kendo-angular-common @progress/kendo-angular-buttons @progress/kendo-angular-popup @progress/kendo-licensing
  2. Once installed, import the ChatModule in your application root or feature module.

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { ChatModule } from '@progress/kendo-angular-conversational-ui';
    import { AppComponent } from './app.component';
    
    @NgModule({
        bootstrap:    [ AppComponent ],
        declarations: [ AppComponent ],
        imports:      [
            BrowserModule,
            BrowserAnimationsModule,
            ChatModule
        ]
    })
    export class AppModule {
    }
  3. You are required to install one of the Kendo UI themes to style the components. For more information on how to add the styles, refer to the section on styling.

  4. For Angular 9.x and later, install the @angular/localize package:

    1. Run npm install --save @angular/localize.
    2. Add import '@angular/localize/init'; to your src/polyfills.ts file.
  5. Follow the instructions on the Kendo UI for Angular My License page to activate your license. You can skip this step if your application already contains a Kendo UI license file.

Dependencies

The Conversational UI package requires the following peer dependencies that have to be installed by your application:

  • @angular/common
  • @angular/core
  • @progress/kendo-angular-buttons
  • @progress/kendo-angular-popup
  • @progress/kendo-licensing
  • rxjs 5.5+

Functionality and Features