Top

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

Answered

Comments

4 comments

  • Vincent BAILLEAU

    Hi,

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

    Regards

     

     

    0
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message