Back to all updates

about 6 years ago

Three weeks to go + bonus tech tip

There are three weeks remaining in the Facebook Hackathon: Messaging! Submissions are due March 16 before 5pm EDT. (Find out what time that is in your city)

Bonus Tech Tip: Built-in NLP

At this point, you may be well on your way with your project for the Facebook Hackathon: Messaging, however,it’s never too late for some tips to help you succeed!

Natural Language Processing (NLP) allows you to understand and extract meaningful information (called entities) out of the messages people send. You can then use these entities to identify intent, automate some of your replies, route the conversation to a human via live chat, and collect audience data.

If you are currently leveraging an NLP API, you have to make an extra call when you receive the user message, which adds latency and complexity (example: async, troubleshooting, etc.). With built-in NLP, entities are automatically detected in every text message that someone sends.

To enable built-in NLP, do the following:

  1. Go to your Facebook app's 'Messenger Settings' page.
  2. Toggle the "on off" switch to enable/disable built-in NLP for your app.

Enabling Built-in NLP with the Graph API

You can also use the graph API to enable built-in NLP programmatically:

curl -i -X POST \

  -d "access_token=$PAGE_APP_ACCESS_TOKEN" \

  "https://graph.facebook.com/v2.8/me/nlp_configs?nlp_enabled=$NLP_ENABLED"

You must append the nlp_enabled parameter which will either enable or disable NLP for that Page.

To learn more about built-in NLP, check out the full documentation!

Questions?

If you have any questions about the hackathon, please post on the discussion forum.