Watson Workspace will no longer be available after February 28, 2019. Learn more.

Developers

Determining whether a message-annotation-added callback is relevant

Comments

2 comments

  • Avatar
    Miguel Estrada

    Hi Jared,

    If I understand you correctly, then yes, that is what I ended up having to do here in this example.  Not sure if you have already taking a look at it since you are using the sentiment analysis....

    https://github.com/watsonwork/watsonwork-sentiment

  • Avatar
    JARED WALLACE

    I did, but I stopped at this line:

    `if (body.userId === APP_ID)`

    and missed the:

    `if (memberId !== APP_ID)`

     

    I've been thinking about it, and I reckon that's not too terribly much extra to do, and I'm betting it'd be difficult to adjust the annotation payload to reflect the userId of the message creator.

     

    Thanks for the example btw, that's what I referenced for my first graphql call.

Please sign in to leave a comment.