📒
nx-ng-starter
  • Contributor Covenant Code of Conduct
  • Contributing to this repository
  • Nx Ng Starter
  • Security
  • Support
  • Tools
    • diagrams
      • branching
      • pr-validation-pipeline
      • trunk-on-push-pipeline
    • tools/shell
    • tools/ts
      • Unit Coverage Stats
    • generators
      • client-feature
        • <%= name %>
      • client-store
        • <%= name %>
      • client-ui
        • <%= name %>
      • client-util
        • <%= name %>
  • .github
    • ISSUE_TEMPLATE
      • bug_report
    • ISSUE_TEMPLATE
      • feature_request
    • ISSUE_TEMPLATE
      • maintenance
  • Libraries
    • backend-auth
    • backend-diagnostics
    • backend-gql
    • backend-grpc
    • backend-interfaces
    • backend-logger
    • backend-websocket
    • client-chatbot
    • client-core-components
    • client-core
    • Angular D3 Chart Components Module
    • client-diagnostics
    • client-directives
    • client-gql
    • client-grpc
    • client-material
    • client-pwa-offline
    • client-services
    • client-sidebar
    • client-store-chatbot
    • client-store-http-api
    • client-store-http-progress
    • client-store-sidebar
    • client-store-theme
    • client-store-user
    • client-store-websocket
    • client-store
    • client-translate
    • client-unit-testing
    • Angular Eliza Chatbot Module
    • client-util-sentry
    • client-util
    • proto
Powered by GitBook
On this page
  • Description
  • Development commands reference
  • Usage
  • Within the development workspace
  • As an external package
  • Chatbot component

Was this helpful?

  1. Libraries

Angular Eliza Chatbot Module

Previousclient-unit-testingNextclient-util-sentry

Last updated 2 years ago

Was this helpful?

This library was generated with .

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:

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

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

Nx
https://en.wikipedia.org/wiki/ELIZA
client.module.ts
chatbot-root.component.ts