Top

nodejsSDK - BOT : get an event when a user opn a chat window with the BOT

Répondu

Commentaires

4 commentaires

  • Vincent BAILLEAU

    Hi,

    Emily is not a traditional user, and you are not able to add it into your contact list.

    Regards

     

     

    0
    Actions pour les commentaires Permalien
  • Patrice COHAUT

    No link with Emily,

    MY BOT just wants to welcome user automatically.

    To do that I need an event each time someone open a chat window with MY BOT. 

    0
    Actions pour les commentaires Permalien
  • Vincent BAILLEAU

    Patrice,

    The last NodeJS version bring for you this new event:

    https://hub.openrainbow.com/#/documentation/doc/sdk/node/api/events#Events+event_rainbow_onchatstate

    Enjoy !

    Regards

    0
    Actions pour les commentaires Permalien
  • Patrice COHAUT

    Superb and thanks  .

    Events are well received but unfortunately no event when the chat window is openned.

    I receive an event when closing (=inactive) or when user type something (=composing ) but no event when window is put to front which is what I need to welcome the user before he types anything. 

    Looks like a bug to me (on the desktop client)  as, by default focus is done on "message form" which should trigger an ACTIVE state . When clicking on another zone,  this triggers and INACTIVE then ACTIVE state 

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message