Angular Eliza Chatbot Module

This library was generated with Nx.

Description

The Angular chatbot service based on an early natural language processing program called Eliza.

ELIZA is an early natural language processing computer program created from 1964 to 1966 at the MIT Artificial Intelligence Laboratory by Joseph Weizenbaum. Created to demonstrate the superficiality of communication between humans and machines, Eliza simulated conversation by using a "pattern matching" and substitution methodology that gave users an illusion of understanding on the part of the program, but had no built in framework for contextualizing events.

Source and more information about the Elisa program: https://en.wikipedia.org/wiki/ELIZA

Development commands reference

Run nx test client-util-eliza to execute the unit tests.

Run nx lint client-util-eliza to lint the library.

Run nx build client-util-eliza to build the library.

Usage

Within the development workspace

Import the charts module

import { AppClientUtilElizaModule } from '@app/client-util-eliza';

Example client.module.ts

As an external package

Install the package

yarn add @rfprodz/client-util-eliza

With the default configuration

Import in your application root module

import { AppClientUtilElizaModule } from '@rfprodz/client-util-eliza';

@NgModule({
...
  imports: [
    ...
    AppClientUtilElizaModule.forRoot(),
    ...
  ],
...
})
export class AppModule {
  ...
}

With a custom configuration

Import in your application root module

import { AppClientUtilElizaModule, IElizaData } from '@rfprodz/client-util-eliza';

const customElizaData: IElizaData = {
  ...
};

@NgModule({
...
  imports: [
    ...
    AppClientUtilElizaModule.forRoot(customElizaData),
    ...
  ],
...
})
export class AppModule {
  ...
}

Chatbot component

Example chatbot-root.component.ts

Last updated