Botpress NLU ⚡
Botpress NLU is a Botpress module that adds NLU capatibilities to your bot by connecting to the NLU provider of your choice.
🚧 I'm looking for help to support more providers
We believe NLP/NLU is a commodity, so this package abstracts the provider by providing a standard, clean interface that allows you (and the non-technicals) to easily edit the NLU data within Botpress.
With Botpress NLU,
- You own your data
- You can seamlessly switch to another NLP provider
- (soon) You can continously train your bot on misunderstood phrases
- (soon) You can share and import open-source, community-curated intents & entities
⚠️ This module only works with the upcoming Botpress X.
- Install the module
yarn add @botpress/nlu
- Configure a provider (see below)
- You need to chose a Provider (currently
- Set the
- Configure the provider
Global Configuration (source)
'*': Provider is one of
Standard NLU Object (
Botpress NLU will instrument incoming events by providing a standardized object with the structure below.
||Best classified intent based on confidence (same structure as below)||Dialogflow, LUIS, Rasa, Recast|
||The name of the classified intent||LUIS, Rasa, Recast|
||Confidence of the classification, between
||LUIS, Rasa, Recast|
||The provider that provided the classification||*|
||The name of the extracted entitiy||Dialogflow|
||The type of entity that was extracted||LUIS, Rasa, Recast|
||The normalized value of the extracted entity||Dialogflow, LUIS, Rasa|
||The original (raw) value of the extracted entity||Rasa, Recast|
||Confidence of the extraction, between
||The provider that extracted the entity||*|
||The position where it was found in the input string (start position)||LUIS, Rasa|
Botpress NLU also provides two convenient methods to the NLU Object :
Providers – Features Matrix
|Provider||Synchronization||Intent Classification||Entity Extraction||Scopes (coming soon)|
NOTE: Dialogflow-provider is not fully implemented yet and isn't recommended to use at this point.
Botpress NLU use the V2 API of Dialogflow, checkout this link for more information.
Dialogflow Specific Configuration (source)
LUIS Specific Configuration (source)
||No (default is
There are some entities that LUIS doesn't support in some languages, make sure that the language you are using supports the entities you are using in Botpress (this module doesn't do this check for you).
LUIS FAQI get an error when syncing my model (click to see) Make sure that:
- You have enough labels (min 2) for the intent
- The entities you are using are supported by your app's language
Botpress NLU will create and train and maintain your projects and models automatically for you.
Note: By default, Botpress creates separate projects for development and production environment, e.g.
Rasa Specific Configuration (source)
||No (default is
||No (none by default)|
||No (default is
Recast Specific Configuration (source)
Note: Make sure to use developer token for Recast not request one.
The best way to help right now is by helping with the exising issues here on GitHub and by reporting new issues!
By default, any bot created with Botpress is licensed under AGPLv3, but you may change to the Botpress License from within your bot's web interface in a few clicks.
For more information about how the dual-license works and why it works that way please see the FAQS.