-
Notifications
You must be signed in to change notification settings - Fork 2.3k
controller.api.nlp.enable() causes error message #1086
Comments
It might be related to #943 |
Yo, To enable/disable FB built-in NLP for your app, you need to toggle the button on/off on your fb messenger settings' page, you can also do the same thing programmatically using the graph API by calling No, you don't need to create a middleware to make BotKit hearing entities, you juste need to use To fix your problem, i think that you customized the NLP by specifying a Wit server token in your fb messenger settings' page, if so, you need to call : However, you can reset wit token by clicking reset button in the built-In NLP after choosing the concerned page. Are you customized NLP via Wit.ai ? |
Hi, Yes, I have customized NLP via Wit.ai and I do have access to the entities via Thanks for explaining that the If you don't mind, I still don't know how to make BotKit to hear my Wit.ai entities/values. For example, I tried the following code:
where "greet" is one of the possible values of an entity named "intent" that I have configured in Wit.ai:
I also tried with "intent" as the the first parameter to the hears function, with no luck. Should I hear everything and "parse" the Thanks again for the support. |
Cool 😄 To do that you must change the default string matcher function and create handler functions for your specific intents, Natively Botkit use string matcher based on regular expressions. In short, you can : Create an individual handler functions :
Take a look at the default regex handler for inspiration. Change the default handler globally :
in this case you don't need to add you custom handler every time as a parameter to the hears function. Let me know if it helps ! |
It does help indeed. Thanks a lot. Cheers! |
Hi,
Using
controller.api.nlp.enable()
is causing the following "info"/ERROR message to be printed:Versions and OS:
I found this
controller.api.nlp.enable()
in the "Botkit and Facebook" documentation: https://github.com/howdyai/botkit/blob/master/docs/readme-facebook.mdI'm trying to figure out how to "hear" Wit.ai "intents" that my bot is already receiving directly from the messages from Facebook Messenger Built-in NLP that I've enabled using FB dev pages.
What exactly this phrase means?
Do I need to write a middleware to make bot kit to "hear" Wit.ai entities?
Thanks for any support.
The text was updated successfully, but these errors were encountered: