axa-group / nlp.js

An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Connector

altieres opened this issue · comments

I need to made my nlp bot available on telegram.

I will try to create a telegram-connector based on fb-connector.

It is possible to use nlp to process messages received from telegram, and send back the processed response. But the connector seems to be the right way.

Any advice? Thanks.

commented

Hi @altieres, yes, a Telegram connector can be done, no problem. You can take a look also to rest connector.

@ericzon thanks for your suggestion!

I implemented using just the simple nlp processing: https://github.com/altieres/nlp.js
I think this is enough to my bot for now. Should I PR or create a repository/library apart?

Now I need to understand how the use of Bot class (Msbf) can improve the bot. And make the improvements necessary to work with it. Any directions are welcome!

Hi @altieres , your connector is not taking the bot instrumentation into account, so we'd better keep it apart. If you check the rest connector, if there is a "bot" registered, the processing of the request is delegated to it, so I guess that's what your missing. You can also check the addActivity method in DirectlineController.