Credit: This application was originally created by Sergio Gama https://github.com/sergiogama/Conversation-Basico.
Requirements:
- Bluemix user account http://www.bluemix.net
- Git user account https://github.com/
Main steps:
- Do a "Fork" of this code: https://github.com/lccmachado/Basic-Conversation
- Create a Jazz Hub project (Bluemix DevOps Services) pointing to the Fork created in the last step
- Create and instance of Watson Conversation Service.
- Create a workspace
- Configure the Intents
- Configure the Dialog
- Take note of Watson Conversation Serice's Credentials and workspace_id
- Edit the file app.js and fill the fields: username, and <workspace_id> with the data collected in the last step.
var conversation = watson.conversation({
username:"<username>",//replace with the username from service credential
password:"<password>",//replace with the password from service credential
version: 'v1',
version_date: '2016-07-11'
});var workspace = "<workspace_id>"; //replace with the workspace_id from service credential- Deploy the application
