Chat with TJBot!
This recipe uses the Watson Conversation and Watson Text to Speech services to turn TJ into a chatting robot.
This recipe requires a TJBot with a microphone and a speaker.
First, make sure you have configured your Raspberry Pi for TJBot.
$ cd tjbot/bootstrap && sudo sh bootstrap.sh
Go to the recipes/conversation
folder and install the dependencies.
$ cd ../recipes/conversation
$ npm install
Create instances of the Watson Conversation and Watson Text to Speech services and note the authentication credentials.
Import the workspace-sample.json
file into the Watson Conversation service and note the workspace ID.
Make a copy the default configuration file and update it with the Watson service credentials and the conversation workspace ID.
$ cp config.default.js config.js
$ nano config.js
<enter your credentials and the conversation workspace ID in the specified places>
Run!
sudo node conversation.js
Note the
sudo
command. Root user access is required to run TJBot recipes.
This project is licensed under Apache 2.0. Full license text is available in LICENSE.
See CONTRIBUTING.md.