0.25.0 • Published 1 month ago

@botonic/plugin-watson v0.25.0

Weekly downloads
61
License
MIT
Repository
-
Last release
1 month ago

Botonic Plugin Watson

What Does This Plugin Do?

This plugin allows you to integrate Watson Assistant v2 in your Botonic project.

Once installed within your project, this plugin will send the user input to a workspace and receive a response.

The plugin retrieves the call results to enhance the input object. You can then use this data in your routes and actions.

Example of an input object received from a user:

{
  type: "text",
  data: "I want to return this jacket."
}

Example of the same input object after being processed by this plugin:

{
  type: 'text',
  data: 'I want to return this jacket.',
  intent: 'return-product',
  confidence: 0.9556,
  intents: [{ intent: 'return-product', confidence: 0.9556 }]
  entities: [{ entity: 'product', location: [22, 28], value: 'jacket', confidence: 1 }],
}

Setup

  1. Install the plugin from npm (or yarn):
npm i --save @botonic/plugin-watson
  1. Add it to the src/plugins.js file by using the following options from Watson:
  • apikey
  • url
  • assistant_id
  • version (optional)
export const plugins = [
  {
    id: 'watson',
    resolve: require('@botonic/plugin-watson'),
    options: {
      apikey: 'apikey', <!-- pragma: allowlist secret-->
      url: 'url',
      assistant_id: 'assistant_id',
      version: 'version',
    },
  },
]

Use

You can use it in your routes like any other NLU plugins:

export const routes = [{ intent: 'return-product', action: ReturnProduct }]
0.25.0

1 month ago

0.25.0-beta.0

1 month ago

0.24.0

4 months ago

0.23.1

5 months ago

0.23.0

9 months ago

0.21.0

1 year ago

0.20.0

2 years ago

0.20.0-rc.0

2 years ago

0.19.0

3 years ago

0.18.0-rc.2

3 years ago

0.18.0

3 years ago

0.18.0-rc.0

3 years ago

0.17.0

3 years ago

0.17.0-rc.0

3 years ago

0.17.0-beta.0

3 years ago

0.17.0-beta.1

3 years ago

0.17.0-alpha.4

3 years ago

0.16.0-rc.0

3 years ago

0.16.0-alpha.3

3 years ago

0.16.0

3 years ago

0.16.0-alpha.4

3 years ago

0.16.0-alpha.1

3 years ago

0.16.0-alpha.0

3 years ago

0.15.0-rc.0

4 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.0

4 years ago

0.13.0-rc.0

4 years ago

0.12.0

4 years ago

0.12.0-rc.0

4 years ago

0.11.0

4 years ago

0.11.0-alpha.0

4 years ago