Skip to content

Commit

Permalink
update readme add conversation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor committed Jan 19, 2017
1 parent d06c79c commit e894028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -121,7 +121,8 @@ There are a few things you can do .. and ways to take your robot forward!
```
sudo node wave_conversation.js
```
You will need to set up your watson conversation flow and set up a workspace. More on that [here](http://www.instructables.com/id/Build-a-Talking-Robot-With-Watson-and-Raspberry-Pi/#step6) .
- You will need to set up your watson conversation flow and set up a workspace. More on that [here](http://www.instructables.com/id/Build-a-Talking-Robot-With-Watson-and-Raspberry-Pi/#step6) .
- You import sample conversation flow in the folder (workspace.json) to get you started. This creates intents for actions like "hello" , "see" , "wave" , "introduce" etc
Finally, this sample used both the audio and LED. These two hardware devices are known to conflict - a workaround is to disable onboard audio and use USB audio on your Pi.

# Dependencies List
Expand Down
1 change: 1 addition & 0 deletions workspace.json
@@ -0,0 +1 @@
{"name":"TJ Bot","created":"2016-08-31T02:38:47.212Z","intents":[{"intent":"dance","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-05T20:04:52.546Z","examples":[{"text":"Can you dance?","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"can you place the music","created":"2017-01-05T20:04:52.546Z","updated":"2017-01-05T20:04:52.546Z"},{"text":"Can you play music?","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"can you play some good music","created":"2017-01-05T20:04:46.498Z","updated":"2017-01-05T20:04:46.498Z"},{"text":"Dance","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"Do you have a party trick?","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"Entertain me.","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"Let's boogie","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"Let's party","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"Play music","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"play the disco music","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"},{"text":"What's your party trick?","created":"2017-01-03T18:21:29.563Z","updated":"2017-01-03T18:21:29.563Z"}],"description":null},{"intent":"do","created":"2017-01-03T19:08:21.964Z","updated":"2017-01-03T19:09:55.568Z","examples":[{"text":"Can you do anything?","created":"2017-01-03T19:08:44.278Z","updated":"2017-01-03T19:08:44.278Z"},{"text":"Tell me what you can do?","created":"2017-01-03T19:09:30.594Z","updated":"2017-01-03T19:09:30.594Z"},{"text":"what are your capabilities?","created":"2017-01-03T19:09:40.637Z","updated":"2017-01-03T19:09:40.637Z"},{"text":"what can you do?","created":"2017-01-03T19:08:21.964Z","updated":"2017-01-03T19:08:21.964Z"},{"text":"what do you do?","created":"2017-01-03T19:08:21.964Z","updated":"2017-01-03T19:08:21.964Z"},{"text":"what sensors do you have?","created":"2017-01-03T19:09:55.568Z","updated":"2017-01-03T19:09:55.568Z"}],"description":null},{"intent":"goodbye","created":"2016-08-31T12:41:22.886Z","updated":"2017-01-03T19:05:25.159Z","examples":[{"text":"adieu","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"bye","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"bye bye","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"bye-bye","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"cheers","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"ciao","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"farewell","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"goodbye","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"good evening","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"good night","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"see you later","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"},{"text":"so long","created":"2016-08-31T12:41:22.886Z","updated":"2016-11-29T17:31:45.525Z"}],"description":null},{"intent":"Hello","created":"2016-08-31T02:57:27.430Z","updated":"2017-01-03T19:04:50.228Z","examples":[{"text":"Can you say hello?","created":"2017-01-03T19:04:32.709Z","updated":"2017-01-03T19:04:32.709Z"},{"text":"Can you tell me what you are called?","created":"2017-01-03T18:10:22.530Z","updated":"2017-01-03T18:10:22.530Z"},{"text":"Can you tell me what your name is?","created":"2017-01-03T18:11:11.884Z","updated":"2017-01-03T18:11:11.884Z"},{"text":"Can you tell me your name?","created":"2017-01-03T18:10:14.235Z","updated":"2017-01-03T18:10:14.235Z"},{"text":"Do you have a name?","created":"2017-01-03T18:11:03.487Z","updated":"2017-01-03T18:11:03.487Z"},{"text":"Good afternoon","created":"2016-08-31T02:57:58.370Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"Good morning","created":"2016-08-31T02:57:50.364Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"Greetings","created":"2016-08-31T02:58:17.325Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"Hello","created":"2016-08-31T02:58:12.208Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"Hi","created":"2016-08-31T02:57:40.490Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"Hi there","created":"2016-08-31T02:57:46.535Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"How are you?","created":"2016-09-12T15:30:11.921Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"Say hi","created":"2017-01-03T19:04:50.228Z","updated":"2017-01-03T19:04:50.228Z"},{"text":"What are you called?","created":"2017-01-03T18:10:04.744Z","updated":"2017-01-03T18:10:04.744Z"},{"text":"What do they call you?","created":"2017-01-03T18:10:45.110Z","updated":"2017-01-03T18:10:45.110Z"},{"text":"What's your name?","created":"2017-01-03T18:10:34.253Z","updated":"2017-01-03T18:10:34.253Z"},{"text":"Yo","created":"2016-08-31T02:57:52.563Z","updated":"2016-11-29T17:54:31.632Z"},{"text":"You're cute?","created":"2017-01-03T18:10:56.070Z","updated":"2017-01-03T18:10:56.070Z"}],"description":null},{"intent":"introduce","created":"2017-01-03T18:15:11.896Z","updated":"2017-01-05T19:10:39.158Z","examples":[{"text":"Can you introduce yourself?","created":"2017-01-03T18:15:11.896Z","updated":"2017-01-03T18:15:11.896Z"},{"text":"Tell me something about you.","created":"2017-01-03T18:15:11.896Z","updated":"2017-01-03T18:15:11.896Z"},{"text":"Walk me through your background","created":"2017-01-03T18:15:11.896Z","updated":"2017-01-03T18:15:11.896Z"},{"text":"what can you do ?","created":"2017-01-05T19:10:39.158Z","updated":"2017-01-05T19:10:39.158Z"},{"text":"Who are you?","created":"2017-01-03T18:15:11.896Z","updated":"2017-01-03T18:15:11.896Z"},{"text":"why are you here?","created":"2017-01-03T18:15:11.896Z","updated":"2017-01-03T18:15:11.896Z"}],"description":null},{"intent":"joke","created":"2017-01-05T21:44:52.268Z","updated":"2017-01-05T21:44:52.268Z","examples":[{"text":"can you tell a joke","created":"2017-01-05T21:44:52.268Z","updated":"2017-01-05T21:44:52.268Z"},{"text":"make me laugh","created":"2017-01-05T21:44:52.268Z","updated":"2017-01-05T21:44:52.268Z"},{"text":"tell me a joke","created":"2017-01-05T21:44:52.268Z","updated":"2017-01-05T21:44:52.268Z"},{"text":"tell me something funny","created":"2017-01-05T21:44:52.268Z","updated":"2017-01-05T21:44:52.268Z"},{"text":"what jokes do you know","created":"2017-01-05T21:44:52.268Z","updated":"2017-01-05T21:44:52.268Z"}],"description":null},{"intent":"off_topic","created":"2016-08-31T16:12:29.311Z","updated":"2017-01-06T14:51:26.686Z","examples":[{"text":"asas","created":"2016-08-31T17:00:46.581Z","updated":"2016-11-29T17:45:45.271Z"},{"text":"asasewrw","created":"2017-01-06T14:51:19.600Z","updated":"2017-01-06T14:51:19.600Z"},{"text":"fghfgfgh","created":"2017-01-06T14:51:26.686Z","updated":"2017-01-06T14:51:26.686Z"},{"text":"kajskj","created":"2016-08-31T17:00:36.271Z","updated":"2016-11-29T17:45:45.271Z"},{"text":"sfsdfhgjgh","created":"2017-01-06T14:51:23.383Z","updated":"2017-01-06T14:51:23.383Z"},{"text":"you are stupid","created":"2016-08-31T16:12:29.311Z","updated":"2016-11-29T17:45:45.271Z"}],"description":null},{"intent":"see","created":"2017-01-03T19:18:19.282Z","updated":"2017-01-05T20:07:34.459Z","examples":[{"text":"can you take a picture","created":"2017-01-05T18:50:57.829Z","updated":"2017-01-05T18:50:57.829Z"},{"text":"can you tell me what you see","created":"2017-01-05T20:07:34.459Z","updated":"2017-01-05T20:07:34.459Z"},{"text":"what are you looking at?","created":"2017-01-03T19:18:19.282Z","updated":"2017-01-03T19:18:19.282Z"},{"text":"what can you see?","created":"2017-01-03T19:18:19.282Z","updated":"2017-01-03T19:18:19.282Z"},{"text":"what do you see?","created":"2017-01-03T19:18:19.282Z","updated":"2017-01-03T19:18:19.282Z"},{"text":"what is around you?","created":"2017-01-03T19:18:19.282Z","updated":"2017-01-03T19:18:19.282Z"},{"text":"what is in front of you?","created":"2017-01-03T19:18:19.282Z","updated":"2017-01-03T19:18:19.282Z"}],"description":null},{"intent":"wave","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T19:04:49.837Z","examples":[{"text":"can you wave?","created":"2017-01-03T18:38:02.929Z","updated":"2017-01-03T18:38:02.929Z"},{"text":"Can you wave your arm?","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T18:16:28.421Z"},{"text":"Give me five","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T18:16:28.421Z"},{"text":"Hi five","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T18:16:28.421Z"},{"text":"Move your arm","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T18:16:28.421Z"},{"text":"Raise your arm","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T18:16:28.421Z"},{"text":"Wave","created":"2017-01-03T18:16:28.421Z","updated":"2017-01-03T18:16:28.421Z"}],"description":null}],"updated":"2017-01-06T20:47:26.502Z","entities":[],"language":"en","metadata":{"runtime_version":"2016-09-20"},"description":"This is a test for watsonkit","dialog_nodes":[{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-01-03T18:27:49.402Z","updated":"2017-01-03T19:15:04.801Z","metadata":null,"conditions":"#wave","description":null,"dialog_node":"node_1_1483468069253","previous_sibling":"node_3_1483468221702"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-01-03T18:30:22.004Z","updated":"2017-01-03T19:19:21.481Z","metadata":null,"conditions":"#dance","description":null,"dialog_node":"node_3_1483468221702","previous_sibling":"node_12_1483471161321"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-01-03T18:31:30.090Z","updated":"2017-01-03T18:31:50.028Z","metadata":null,"conditions":"#introduce","description":null,"dialog_node":"node_5_1483468289926","previous_sibling":"node_1_1483468069253"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-01-03T19:19:21.481Z","updated":"2017-01-03T19:19:26.085Z","metadata":null,"conditions":"#see","description":null,"dialog_node":"node_12_1483471161321","previous_sibling":"node_1_1472646824175"},{"go_to":null,"output":{"text":"Hi there. My name is TJ Bot."},"parent":null,"context":null,"created":"2016-08-31T12:33:45.553Z","updated":"2017-01-05T21:35:27.231Z","metadata":null,"conditions":"#Hello","description":null,"dialog_node":"node_1_1472646824175","previous_sibling":null},{"go_to":null,"output":{"text":{"values":["I am afraid I am still learning"],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-01-05T19:25:47.406Z","updated":"2017-01-05T19:58:05.839Z","metadata":null,"conditions":"#off_topic","description":null,"dialog_node":"node_2_1483644347056","previous_sibling":"node_1_1483646284514"},{"go_to":null,"output":{"text":{"values":["I'm an open source project designed to help you access Watson Services in a fun way. I can listen, speak, see, wave my arm, dance to music and shine!"],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-01-05T19:58:05.839Z","updated":"2017-01-06T20:47:26.502Z","metadata":null,"conditions":"#do","description":null,"dialog_node":"node_1_1483646284514","previous_sibling":"node_5_1483468289926"},{"go_to":null,"output":{"text":{"values":["Sure. Why did the chicken cross the road? Its because it wanted to get to the other side.","Sure. The past and present walked into a bar. It was really tense.","What was the little robot angry? Its because someone kept pushing his buttons"],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-01-05T21:38:11.855Z","updated":"2017-01-06T19:05:01.427Z","metadata":null,"conditions":"#joke","description":null,"dialog_node":"node_2_1483652291682","previous_sibling":"node_2_1483644347056"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I'm an open source project designed to help you access Watson Services in a fun way. I can listen, speak, wave my arm and shine!"],"selection_policy":"sequential"}},"parent":"node_5_1483468289926","context":null,"created":"2017-01-03T18:31:49.742Z","updated":"2017-01-05T20:11:25.448Z","metadata":null,"conditions":" #introduce","description":null,"dialog_node":"node_6_1483468309602","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Let me look around."],"selection_policy":"sequential"}},"parent":"node_12_1483471161321","context":null,"created":"2017-01-03T19:19:25.816Z","updated":"2017-01-03T19:19:32.507Z","metadata":null,"conditions":" #see","description":null,"dialog_node":"node_13_1483471165661","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Ok, I will wave my arm. Just for you"],"selection_policy":"sequential"}},"parent":"node_1_1483468069253","context":null,"created":"2017-01-03T18:28:12.096Z","updated":"2017-01-03T18:29:54.727Z","metadata":null,"conditions":" #wave","description":null,"dialog_node":"node_2_1483468091655","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Sure."],"selection_policy":"sequential"}},"parent":"node_3_1483468221702","context":null,"created":"2017-01-03T18:30:32.984Z","updated":"2017-01-03T18:47:51.577Z","metadata":null,"conditions":" #dance","description":null,"dialog_node":"node_4_1483468232785","previous_sibling":null}],"workspace_id":"e0061672-8371-4753-b322-fc76d4cb60c4","counterexamples":[]}

0 comments on commit e894028

Please sign in to comment.