1.1.6 • Published 3 years ago

angular-chat-widget-zaid v1.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Angular Chat Widget Rasa

This library was generated with Angular CLI version 7.2.0.

npm.io

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-zaid from npm

npm i angular-chat-widget-zaid --save

Add the package to your module

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

@NgModule({
  imports: [ChatbotRasaModule]
})

Usage

Add the component to your page

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

Inputs :

NameTypeDefaultDescription
themeblue, grey or redblueThe theme of the widget
botNamestringBotThe name of the bot to display
botAvatarurl or pathnpm.ioThe avatar of the bot
userAvatarurl or pathnpm.ioThe avatar of the user
urlurlhttp://localhost:5002The url to connect to the Rasa bot
startingMessagestringHi, how can we help you?The message to display when the chat is open
openedbooleantrueSet to true to open automaticaly when on the page or false to wait for a click
1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago