Skip to content

Commit dbcfd3d

Browse files
committed
initial commit of readme
1 parent 18de8a4 commit dbcfd3d

File tree

1 file changed

+30
-0
lines changed
  • examples/conversation_tone_analyzer_integration

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
* [tone_detection.py][tone_conversation_integration_example_tone_detection] - sample code to initialize a user object in the conversation payload's context (initUser), and to update tone in the user object in the conversation payload's context (updateUserTone).
6+
7+
* [tone_conversation_integration.v1.py][tone_conversation_integration_example] - sample code to use tone_detection.py to get and add tone to the payload and send a request to the Conversation Service's message endpoint.
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 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+
`python tone_conversation_integration.v1.py`
23+
24+
[conversation]: https://www.ibm.com/watson/developercloud/conversation.html
25+
[tone_analyzer]: http://www.ibm.com/watson/developercloud/tone-analyzer.html
26+
[bluemix_conversation_service]: https://console.ng.bluemix.net/catalog/services/conversation/
27+
[bluemix_tone_analyzer_service]: https://console.ng.bluemix.net/catalog/services/tone-analyzer/
28+
[conversation_simple_workspace]: https://github.com/watson-developer-cloud/conversation-simple#workspace
29+
[tone_conversation_integration_example]: https://github.com/watson-developer-cloud/python-sdk/tree/master/examples/tone_conversation_integration.v1.py
30+
[tone_conversation_integration_example_tone_detection]: https://github.com/watson-developer-cloud/python-sdk/tree/master/examples/conversation_addons/tone_detection.py

0 commit comments

Comments
 (0)