Skip to content

Commit 656d8b8

Browse files
committed
initial commit of readme
1 parent 479e2c2 commit 656d8b8

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

  • examples/java/com/ibm/watson/developer_cloud/conversation_tone_analyzer_integration
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Conversation and Tone Analyzer Integration Example
2+
3+
This example provides sample code for integrating [Tone Analyzer][tone_analyzer] and [Conversation][conversation].
4+
5+
* [ToneDetection.java][tone_conversation_integration_example_tone_detection] - sample code to initialize a user object in the conversation 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 conversation payload's context (updateUserTone).
6+
7+
* [ToneConversationIntegrationV1.java][tone_conversation_integration_example] - sample code to use ToneDetection.java to add tone to the payload and send a request to the Conversation Service's message endpoint in an asynchronous manner.
8+
9+
10+
Requirements to run the sample code
11+
12+
* [Tone Analyzer Service credentials][bluemix_tone_analyzer_service]
13+
* [Conversation Service credentials][bluemix_conversation_service]
14+
* [Conversation Workspace ID][conversation_simple_workspace]
15+
16+
Credentials & the Workspace ID can be set in a properties, tone_conversation_integration.properties, or directly in the code.
17+
18+
Dependencies provided in
19+
`build.gradle`
20+
21+
## To run the example
22+
23+
To run the code, use the provided [gradle](http://gradle.org/) build file and wrapper configuration.
24+
25+
On Mac or Linux:
26+
27+
./gradlew run
28+
29+
30+
[conversation]: https://www.ibm.com/watson/developercloud/conversation.html
31+
[tone_analyzer]: http://www.ibm.com/watson/developercloud/tone-analyzer.html
32+
[bluemix_conversation_service]: https://console.ng.bluemix.net/catalog/services/conversation/
33+
[bluemix_tone_analyzer_service]: https://console.ng.bluemix.net/catalog/services/tone-analyzer/
34+
[conversation_simple_workspace]: https://github.com/watson-developer-cloud/conversation-simple#workspace
35+
[tone_conversation_integration_example]: TBA
36+
[tone_conversation_integration_example_tone_detection]: TBA

0 commit comments

Comments
 (0)