botpress / botpress-api.ai

☠ 301 – Moved here (user Botpress NLU) --->
https://github.com/botpress/modules
GNU General Public License v3.0
14 stars 10 forks source link

Support multi-language agents #12

Open ofelt opened 6 years ago

ofelt commented 6 years ago

The module now supports multiple agents and different languages for each one. It will now query an agent based on the locale of the user or the fallback language. The config has changed to handle multiple agents, as such API_TOKEN is now depreciated.

Calling getAvailableLang and getAgent for each query seems a bit redundant but I don't know if there is another way to do it with how things works currently, suggestions welcome ^^