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.
Basic Usage
The following example demonstrates the Chat in action.
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
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
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 { }
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.
For Angular 9.x and later, install the
@angular/localize
package:- Run
npm install --save @angular/localize
. - Add
import '@angular/localize/init';
to yoursrc/polyfills.ts
file.
- Run
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
- Integration with Chat Bot services
- Component usage