Skip to content

Commit 587fb8d

Browse files
Anwesha NaskarAnwesha Naskar
authored andcommitted
docs(README): readme updates removing conversation example
1 parent 63ff25d commit 587fb8d

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

README.md

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Node.js client library to use the Watson APIs.
2020
* [IBM Watson Services](#ibm-watson-services)
2121
* [Authorization](#authorization)
2222
* [Assistant] (#assistant)
23-
* [Conversation](#conversation)
2423
* [Discovery](#discovery)
2524
* [Language Translator](#language-translator)
2625
* [Natural Language Classifier](#natural-language-classifier)
@@ -172,34 +171,7 @@ assistant.message(
172171

173172
### Conversation
174173

175-
Use the [Conversation][conversation] service to determine the intent of a message.
176-
177-
Note: you must first create a workspace via Bluemix. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details.
178-
179-
```js
180-
var ConversationV1 = require('watson-developer-cloud/conversation/v1');
181-
182-
var conversation = new ConversationV1({
183-
username: '<username>',
184-
password: '<password>',
185-
url: 'https://gateway.watsonplatform.net/conversation/api/',
186-
version: '2017-05-26'
187-
});
188-
189-
conversation.message(
190-
{
191-
input: { text: "What's the weather?" },
192-
workspace_id: '<workspace id>'
193-
},
194-
function(err, response) {
195-
if (err) {
196-
console.error(err);
197-
} else {
198-
console.log(JSON.stringify(response, null, 2));
199-
}
200-
}
201-
);
202-
```
174+
This service has been renamed to Assistant.
203175

204176
### Discovery
205177

@@ -515,7 +487,7 @@ By default, the library tries to use Basic Auth and will ask for `api_key` or `u
515487
```javascript
516488
var watson = require('watson-developer-cloud');
517489

518-
var conversation = new watson.ConversationV1({
490+
var assistant = new watson.AssistantV1({
519491
use_unauthenticated: true
520492
});
521493
```

0 commit comments

Comments
 (0)