Once you've created your NLP models , it's really straightforward to apply them to your chatbot's conversations.
You can add NLP connections within a particular interaction or to the entire conversation via Global Connections.
Option 1. Select any interaction (except Await Response), open the Connections tab and click Add NLP connection:
Option 2. Open the Global connections page and click on Add NLP connection to add NLP for the entire conversation:
Let's take Global Connections as an example. Global Connections are connections that apply to every interaction, including Await Response. Click the Add NLP connection button in the 'Global Connections' section and the NLP connection settings will open up:
Fill these settings:
- Filter by type: choose whether you want to apply an Entity model or an Intent model;
- Filter by language: select language of the model;
- NLP Model: select the model that you want to use;
- Interaction: the system will redirect a user to this interaction if their response matches the settings of the selected model (if the model detects the Entity or Intent it is looking for).
In the Build section, there are icons that indicate that you are using NLP connections within interaction (in other words, the chatbot will use an NLP model to make a decision about the meaning of the user's response, rather than simply follow a script).
These icons are on the interactions list and within Conditional connections:
In the example below, the pre-trained Entity model 'positive words' is set to move the conversation to the interaction called 'NLP positive' upon getting a 'true' result from the user's input. In other words, if the user writes anything that triggers the NLP positive words Entity analysis (e.g. "I'm really great, thank you") the conversation will move directly to the 'NLP positive' interaction:
It is a good idea to create interactions that you want to go to before creating the connection. That way, it will appear among the options in the 'then go to' drop-down menu.
Let's take another example, this time applying NLP to individual interaction. In the Build section, click on the interaction that you want to analyze. Open Connections tab and click on the Add NLP connection button. Then it's exactly the same as for Global Connections. You should pick the type of the model (Entity/Intent), language, choose a model from the NLP models that you have trained and select a destination interaction:
In this case, an NLP model for Intent called USA News (designed to show latest news from the US using RSS feed) is applied to the user's answer and if True, the conversation moves to the 'USA News' interaction, overriding the other branches of the conversation.
However, if the model response is 'False', then the system will redirect a user to another interaction, according to the settings in the Connections tab. In our case it would be the Fallback interaction, which is set to "Do nothing".
Here is how it works in Webchat:
Note that this model is only applied to the user's input to this particular interaction, if you wanted to apply Intent 'USA News' to the whole conversation, you would create a Global Connection.
That's it. Now you know how to apply NLP models, you can do so as much as you need them. You can have as many NLP Connections per interaction as you like. With our platform it really is simple to add powerful NLP features to make your chatbot capable of sophisticated, freeform conversations.
NLP connections and Collaboration feature
If a bot administrator has no NLP access, then NLP connections will be unavailable for editing. Learn more about Collaboration feature.
Updated about a month ago
To check your NLP models are working correctly and to understand the points in your conversation structure at which they respond to the user, we have a feature that will present to you an information box each time the NLP model is triggered.
|Testing your NLP model|