Messenger Built-In NLP

07 Nov 2017 messenger, built-in-nlp

We are excited to announce 3 updates to Built-In NLP. A few months ago, we released Built-in NLP with the Messenger Platform 2.1 to make it easier for developers to leverage the Wit NLP API when building for Messenger. Built-In NLP allows developers to get default entities (thanks, bye, dates and times, etc.) and custom entities by connecting their Wit app to their FB page without any additional call to Wit.ai!

Default Built-In NLP now in 11 languages

In addition to English, we are opening the default Built-in NLP to 10 new languages: Chinese, French, German, Dutch, Italian, Polish, Portuguese, Romanian, Spanish and Vietnamese. As a reminder, some of these entities are powered by Duckling, our open-source linguistic parser. Don’t hesitate if you want to contribute/help here!

Adding Timezone/Locale support

Following our recent support for locales in the API, we are also adding support for timezones and locales within Built-in NLP. This is very important if you rely on our date/time entity detection, powered by Duckling. If a user sends “I want to schedule an appointment in 3 hours” to your page, Built-In NLP will now be able to detect and resolve “in 3 hours” into the user timezone/locale.

Adding Advanced Settings

When you want to get custom entities, you can link your Wit app with the page via your Wit Access token. We received some feedback that you would like to also access some advanced features from the Wit.ai API. As a result, we are adding an Advanced Settings option (accessible via the API and the Facebook App UI) to allow you to:

  • Enable the Verbose option, which allows you to get extra information like the position of the detected entity in the query.
  • Enable N-best, which allows Wit to return the n-best trait entities as opposed to only the top one, by default.

More info on this new version here.

As always, please reach out if you have any questions, comments, or suggestions.

Team Wit