Conversational AI
  • Introduction
  • Getting started
    • Getting started
    • Adding content to your bot
    • Capture information with entities
    • Capture information with input validation
    • Reusing intents with context
    • Flow navigation with variables
    • Adding new users to your account
  • Understanding users
    • Natural Language Processing (NLP)
      • NLP threshold
      • NLP Import & Export
      • Train your bot with actual user messages
      • NLP Dashboard & NLP Improve
      • Synonym entities
      • System entities
      • Supported languages
      • Intent templates
    • Expression generator
    • Context
    • Multi-language bots
  • Bot answers
    • Bot dialogs
      • Message components
      • Go To
      • Input Validation
      • Action
      • Translations
    • Conversations
    • Analytics
      • User flow
    • Publishing your bot
    • Events
    • Reuse flows
    • Settings
      • Variables
  • Integrations
    • API integration
      • Advanced API integrations
    • Chat message structure for API's
    • Retrieving data from Airtable (GET)
    • Sending data to Airtable (POST)
    • Human handover & live chat
      • #Interact
      • RingCentral Engage Digital
      • Genesys Cloud
      • Help Scout
      • Zendesk Chat
      • Intercom
      • Sparkcentral (beta)
      • Offloading Webhook
  • Channels
    • Channels
    • Facebook Messenger
      • Facebook Admin Removal
      • Facebook Webview Whitelisting
    • WhatsApp Business API
    • Google Assistant
    • Webhook Channel API
    • Chat widget
    • Phone & voice
    • Workplace from Facebook
    • Sinch Conversation API (beta)
  • Tips & Best practices
    • How to NLP
    • Creating diverse expressions
    • Why is my bot not responding the way I want it to?
    • What makes a good chatbot?
    • How to recognize a returning bot user
    • Gathering user feedback
    • Using time in your chatbot
Powered by GitBook
On this page

Was this helpful?

  1. Understanding users
  2. Natural Language Processing (NLP)

Train your bot with actual user messages

PreviousNLP Import & ExportNextNLP Dashboard & NLP Improve

Last updated 4 years ago

Was this helpful?

Once you have a bot configured you want to train your NLP models with actual user messages so that your bot becomes smarter over time and support different kinds of expressions. For this you can use the NLP Train section.

  • Let us first create some actual training data by talking to our bot on Facebook Messenger. If you haven't activated your bot on Facebook Messenger yet, follow the steps in the Channel wizard in the platform.

All conversations from your channels will be loaded into the Train module. Conversations from the emulator are ignored.

  • Look at the train NLP section. As you can see the user messages has been labelled by the NLP model so that we can evaluate this message. It seems that our model has detected the correct intent and entity values.

  • Click on '+' to add this candidate expression as validated expression.

  • Let's do a second test by sending a new user message on Facebook Messenger.

  • It seems that the entities are not recognised correctly.

  • Adjust the expression by adding those entities, train and publish your model and test in the NLP test section. If needed add similar expressions to this intent.

To summarise this, we recommend using the following flow to analyse expressions coming directly from users in the Train tab:

There are a couple of things you should keep in mind when using the Train tab:

  1. Expressions from the "Test your bot" window will not be included in the train tab

  2. If two users write the exact same expression, it will only show up once in the train tab

  3. If an expression from a user is an exact match with what is already included in your model as an expression, it is not included in the train tab.

  4. In the "Score" column you will see the score of the NLP model at the time the expression was said. This might differ from the score that the current NLP model gives this expression.