Skip to content

Commit c810de2

Browse files
committed
chore(conversation): remove conversation service and all associated code
BREAKING CHANGE: The Conversation service will no longer be available To migrate your code, use the Assistant v1 or v2 service.
1 parent 83d9232 commit c810de2

30 files changed

+114
-8349
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function (err, token) {
282282

283283
### Assistant v2
284284

285-
Use the [Assistant][conversation] service to determine the intent of a message.
285+
Use the [Assistant][assistant] service to determine the intent of a message.
286286

287287
Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details.
288288

@@ -314,7 +314,7 @@ assistant.message(
314314

315315
### Assistant v1
316316

317-
Use the [Assistant][conversation] service to determine the intent of a message.
317+
Use the [Assistant][assistant] service to determine the intent of a message.
318318

319319
Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details.
320320

@@ -343,11 +343,6 @@ assistant.message(
343343
);
344344
```
345345

346-
347-
### Conversation
348-
349-
This service has been renamed to Assistant.
350-
351346
### Discovery
352347

353348
Use the [Discovery Service][discovery] to search and analyze structured and unstructured data.
@@ -701,7 +696,6 @@ This library is licensed under Apache 2.0. Full license text is available in
701696
See [CONTRIBUTING](https://github.com/watson-developer-cloud/node-sdk/blob/master/.github/CONTRIBUTING.md).
702697
703698
[assistant]: https://www.ibm.com/watson/services/conversation/
704-
[conversation]: https://www.ibm.com/watson/services/conversation/
705699
[discovery]: https://www.ibm.com/watson/services/discovery/
706700
[personality_insights]: https://www.ibm.com/watson/services/personality-insights/
707701
[visual_recognition]: https://www.ibm.com/watson/services/visual-recognition/

conversation/v1-generated.ts

Lines changed: 0 additions & 4187 deletions
This file was deleted.

conversation/v1.ts

Lines changed: 0 additions & 295 deletions
This file was deleted.

examples/conversation_tone_analyzer_integration/.env.example renamed to examples/assistant_tone_analyzer_integration/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# see README.md for details
22

3-
CONVERSATION_USERNAME=<Conversation Username>
4-
CONVERSATION_PASSWORD=<Conversation Password>
3+
ASSISTANT_USERNAME=<Assistant Username>
4+
ASSISTANT_PASSWORD=<Assistant Password>
55
WORKSPACE_ID=<Workspace ID>
66

77
TONE_ANALYZER_USERNAME=<Tone Analyzer Username>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Assistant and Tone Analyzer Integration Example
2+
3+
This example provides sample code for integrating [Tone Analyzer][tone_analyzer] and [Assistant][assistant].
4+
5+
* [tone_detection.js][tone_assistant_integration_example_tone_detection] - sample code to initialize a user object in the assistant payload's context (initUser), to call Tone Analyzer to retrieve tone for a user's input (invokeToneAsync), and to update tone in the user object in the assistant payload's context (updateUserTone).
6+
7+
* [tone_assistant_integration.v1.js][tone_assistant_integration_example] - sample code to use tone_detection.js to get and add tone to the payload and send a request to the Assistant Service's message endpoint.
8+
9+
10+
Requirements to run the sample code
11+
12+
* [Tone Analyzer Service credentials][bluemix_tone_analyzer_service]
13+
* [Assistant Service credentials][bluemix_assistant_service]
14+
* [Assistant Workspace ID][assistant_simple_workspace]
15+
16+
Credentials & the Workspace ID can be set in environment properties, a .env file, or directly in the code.
17+
18+
19+
Command to run the sample code
20+
21+
`npm install # just once, to download dependencies`
22+
`node tone_assistant_integration.v1.js`
23+
24+
[assistant]: https://www.ibm.com/watson/services/conversation/
25+
[tone_analyzer]: https://www.ibm.com/watson/services/tone-analyzer/
26+
[bluemix_assistant_service]: https://console.bluemix.net/catalog/services/watson-assistant-formerly-conversation
27+
[bluemix_tone_analyzer_service]: https://console.ng.bluemix.net/catalog/services/tone-analyzer/
28+
[assistant_simple_workspace]: https://github.com/watson-developer-cloud/assistant-simple#workspace
29+
[tone_assistant_integration_example]: https://github.com/watson-developer-cloud/node-sdk/blob/master/examples/assistant_tone_analyzer_integration/tone_assistant_integration.v1.js
30+
[tone_assistant_integration_example_tone_detection]: https://github.com/watson-developer-cloud/node-sdk/blob/master/examples/assistant_tone_analyzer_integration/tone_detection.js
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "conversation_tone_analyzer_integration",
2+
"name": "assistant_tone_analyzer_integration",
33
"version": "1.0.0",
4-
"description": "Example combining the Watson Conversation and Tone Analyzer services",
5-
"main": "tone_conversation_integration.v1.js",
4+
"description": "Example combining the Watson Assistant and Tone Analyzer services",
5+
"main": "tone_assistant_integration.v1.js",
66
"author": "https://github.com/aprilwebster",
77
"license": "Apache-2.0",
88
"dependencies": {
@@ -11,6 +11,6 @@
1111
"watson-developer-cloud": "latest"
1212
},
1313
"engines": {
14-
"node": ">=4"
14+
"node": ">=6"
1515
}
1616
}

0 commit comments

Comments
 (0)