google / chatbase-node

Quickly integrate your Node.js chatbot with Chatbase Analytics
Apache License 2.0
77 stars 24 forks source link

Sending a message twice with the same messageId converage into one? #5

Closed amitbend closed 6 years ago

amitbend commented 6 years ago

On my bot, I'm sending a new message received through a middleware once it's being routed. Later sometimes, i want to tag it as a feedback message, or not_handled. If i'm sending the message once again, with the same messageId, will Chatbase know to converge them into one message?

cristiancavalli commented 6 years ago

@amitbend Sorry for the latency here -- absolutely but make sure to use the /api/message/update endpoint to update your message at a later point with the message_id value returned by the API. The node library also offers a local interface to achieve this interaction which may be viewed on the README.

Please reopen this issue if you encounter trouble with the described policies.

Cheers, Cris