Error in authorizing token {"error":"Unauthorized","status":401,"message":"Client ID and OAuth token do not match"}

There is a nodeJS example for user authentication here

That may help you out.

It should be run as a separate “process” to your ChatBot