How to use NLU module as a standalone module in my project?

I want to use the NLU functionalities in my own project. I want to call the functions and get the result from it. So how to do it? I want to build the bot programmatically than using GUI.

You can find the API endpoint that is used by NLU. Are you looking to use the NLU for another project?

If you want to create intents you can do the following example.


To create 100 intents for a specific bot. The following query can do it.

for i in {1..100}; do curl 'http://localhost:3001/api/v1/bots/talk/nlu/intents' -H 'Authorization: Bearer {{token}}' --data-raw '{"name":"intents"'"$i"'","utterances":{"en":["a","b","c","d","e","f","g","h","i","j","k"]},"slots":[],"contexts":["global"]}'; done

Thanks for the reply.
Yes I am looking for using it in other project. Is there any pretrained entity extractor, slotfiller and intent classifier I can use?

Hi @mushahid,

The entity extractor we’re using is a CRF (conditional random field) and is trained on each bot (as the entities are different for each users). Slot filler you can have a look at duckling or Microsoft recognizers-text.

For intent classification, you can have a look at svms, fasttext, bert.

All of the tools above are in botpress.

Hope it helps,
Have a great day.