Advertisement
Guest User

Untitled

a guest
Jul 18th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import json
  2. from watson_developer_cloud import ConversationV1
  3.  
  4.  
  5. conversation = ConversationV1(
  6. username='YOUR SERVICE USERNAME',
  7. password='YOUR SERVICE PASSWORD',
  8. version='2016-07-11')
  9.  
  10. # replace with your own workspace_id
  11. workspace_id = '293b58fc-3c5b-4ac5-a8f4-8d52c393d875'
  12.  
  13. response = conversation.message(workspace_id=workspace_id, message_input={'text': 'What\'s the weather like?'})
  14. print(json.dumps(response, indent=2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement