angular-chat-widget-rasa
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Angular Chat Widget Rasa

This library was generated with Angular CLI version 7.2.0.

Prerequesites

A Rasa bot exposed with the SocketIO protocol : See instructions in the Rasa Core Documentation.

Session persitence is not supported yet and should be set to false.

Installation

Install angular-chat-widget-rasa from npm

npm i angular-chat-widget-rasa --save

Add the package to your module

import { ChatbotRasaModule } from 'angular-chat-widget-rasa';

@NgModule({
  imports: [ChatbotRasaModule]
})

Usage

Add the component to your page

<chat-widget botName="MyBot" url="http://localhost:5002" ></chat-widget>

Inputs :

Name Type Default Description
theme blue, grey or red blue The theme of the widget
botName string Bot The name of the bot to display
botAvatar url or path The avatar of the bot
userAvatar url or path The avatar of the user
url url http://localhost:5002 The url to connect to the Rasa bot
startingMessage string Hi, how can we help you? The message to display when the chat is open
opened boolean true Set to true to open automaticaly when on the page or false to wait for a click

Package Sidebar

Install

npm i angular-chat-widget-rasa

Weekly Downloads

100

Version

1.1.2

License

MIT

Unpacked Size

253 kB

Total Files

39

Last publish

Collaborators

  • contributionjhipsteruga