Skip to content

Instantly share code, notes, and snippets.

@ajb413
Created March 29, 2018 00:03
Show Gist options
  • Save ajb413/d276b2d840ea138fd50ac58cec3e5d50 to your computer and use it in GitHub Desktop.
Save ajb413/d276b2d840ea138fd50ac58cec3e5d50 to your computer and use it in GitHub Desktop.
Amazon Comprehend ChatEngine demo snippet
// Be sure to replace strings with your own App's Publish & Subscribe keys
// Also replace the REST endpoint with your own On Request handler
var userPubKey = '__PUBNUB_PUBLISH_KEY__';
var userSubKey = '__PUBNUB_SUBSCRIBE_KEY__';
var comprehendFunctionURI = 'https://pubsub.pubnub.com/v1/blocks/sub-key/__SUB_KEY__/__URI__';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment