Top

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

Beantwortet

Kommentare

4 Kommentare

  • Vincent BAILLEAU

    Hi,

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

    Regards

     

     

    0
    Aktionen für Kommentare 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
    Aktionen für Kommentare 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
    Aktionen für Kommentare 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
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten