Guest User

Untitled

a guest
Jul 17th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var watson = require('watson-developer-cloud');
  2.  
  3. var assistant = new watson.AssistantV1({
  4. username: '{username}',
  5. password: '{password}',
  6. version: '2018-07-10'
  7. });
  8.  
  9. assistant.message({
  10. workspace_id: '9978a49e-ea89-4493-b33d-82298d3db20d',
  11. input: {'text': 'Hello'}
  12. }, function(err, response) {
  13. if (err)
  14. console.log('error:', err);
  15. else
  16. console.log(JSON.stringify(response, null, 2));
  17. });
Add Comment
Please, Sign In to add comment