1.5.5 • Published 2 years ago

@bottender/rasa v1.5.5

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

@bottender/rasa

Rasa NLU integration for Bottender.

Installation

You can install it with npm:

npm install @bottender/rasa

or Yarn:

yarn add @bottender/rasa

Usage

const { chain } = require('bottender');
const rasa = require('@bottender/rasa');

async function SayHello(context) {
  await context.sendText('Hello!');
}

async function Unknown(context) {
  await context.sendText('Sorry, I don’t know what you say.');
}

const Rasa = rasa({
  origin: 'http://localhost:5005',
  actions: {
    greeting: SayHello,
  },
  confidenceThreshold: 0.7,
});

module.exports = async function App() {
  return chain([
    Rasa, //
    Unknown,
  ]);
};

Reference

origin

The origin of the Rasa NLU server.

Type: string. Required.

actions

Actions to be executed when the event matches corresponding intent.

Type: Record<string, Action>. Required.

confidenceThreshold

Threshold of the answer confidence. The action only be executed when confidence is over this threshold.

Type: number. Required.

emulationMode,

The emulation mode to use in the request.

Type: 'WIT' | 'LUIS' | 'DIALOGFLOW'. Optional.

jwt

The JSON Web Token (JWT) to use in the request.

Type: string. Optional.

License

MIT © Yoctol

1.5.5

2 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.1-alpha.9

3 years ago

1.5.1-alpha.8

3 years ago

1.4.10

4 years ago

1.5.1-alpha.7

4 years ago

1.5.1-alpha.5

4 years ago

1.4.9

4 years ago

1.5.1-alpha.4

4 years ago

1.4.8

4 years ago

1.5.1-alpha.3

4 years ago

1.4.7

4 years ago

1.5.1-alpha.1

4 years ago

1.5.1-alpha.0

4 years ago

1.5.0-alpha.14

4 years ago

1.5.0-alpha.11

4 years ago

1.5.0-alpha.10

4 years ago

1.5.0-alpha.8

4 years ago

1.5.0-alpha.7

4 years ago

1.5.0-alpha.6

4 years ago

1.4.6

4 years ago

1.5.0-alpha.5

4 years ago

1.5.0-alpha.4

4 years ago

1.5.0-y.0

4 years ago

1.5.0-alpha.2

4 years ago

1.5.0-alpha.3

4 years ago

1.4.5

4 years ago

1.5.0-alpha.1

4 years ago

1.5.0-alpha.0

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.4.0-rc.1

4 years ago

1.4.0-rc.0

4 years ago

1.4.0-beta.5

4 years ago

1.4.0-beta.4

4 years ago

1.4.0-beta.3

4 years ago

1.4.0-beta.2

4 years ago

1.4.0-beta.1

4 years ago

1.4.0-beta.0

4 years ago

1.4.0-alpha.0

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.0

4 years ago

1.3.0-rc.0

4 years ago

1.2.3

4 years ago

1.3.0-alpha.3

4 years ago

1.2.2

4 years ago

1.3.0-alpha.1

4 years ago

1.2.1

4 years ago

1.3.0-alpha.0

4 years ago

1.2.0

4 years ago

1.2.0-alpha.8

4 years ago

1.2.0-alpha.7

4 years ago

1.2.0-alpha.6

4 years ago

1.2.0-alpha.5

4 years ago