forked from watson-developer-cloud/node-red-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflow.json
135 lines (135 loc) · 3.22 KB
/
flow.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[{
"id": "46d84fce.e4245",
"type": "http request",
"z": "8b3fa2d0.13a76",
"name": "Get Buffer => Binary",
"method": "GET",
"ret": "bin",
"url": "https://raw.githubusercontent.com/watson-developer-cloud/tone-analyzer-nodejs/master/public/data/corporate-announcement.txt",
"tls": "",
"x": 364,
"y": 373,
"wires": [
["56609e2b.63e12"]
]
}, {
"id": "e9249ac4.2d7c08",
"type": "inject",
"z": "8b3fa2d0.13a76",
"name": "String",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 121,
"y": 245,
"wires": [
["968f5cd3.4db84"]
]
}, {
"id": "f91ab2b5.f0edd",
"type": "debug",
"z": "8b3fa2d0.13a76",
"name": "",
"active": true,
"console": "false",
"complete": "response",
"x": 806.5000610351562,
"y": 300.93333435058594,
"wires": []
}, {
"id": "968f5cd3.4db84",
"type": "function",
"z": "8b3fa2d0.13a76",
"name": "Prepare Request",
"func": "var data = \"Hi Team, I know the times are difficult! Our sales have been disappointing for the past three quarters for our data analytics product suite. We have a competitive data analytics product suite in the industry. But we need to do our job selling it!\";\nmsg.payload=data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 355.5,
"y": 244.933349609375,
"wires": [
["56609e2b.63e12"]
]
}, {
"id": "def9a47d.d2b028",
"type": "dropbox",
"z": "8b3fa2d0.13a76",
"dropbox": "",
"filename": "aDialogTemplateFile.txt",
"name": "",
"x": 372.5,
"y": 311,
"wires": [
["56609e2b.63e12"]
]
}, {
"id": "159549e6.9c4936",
"type": "inject",
"z": "8b3fa2d0.13a76",
"name": "From Dropbox",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 141.5,
"y": 311,
"wires": [
["def9a47d.d2b028"]
]
}, {
"id": "2e0ae1fb.2c1d8e",
"type": "inject",
"z": "8b3fa2d0.13a76",
"name": "Buffer Test",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 134,
"y": 373,
"wires": [
["46d84fce.e4245"]
]
}, {
"id": "248651fc.07dd1e",
"type": "comment",
"z": "8b3fa2d0.13a76",
"name": "Link to the Lab instructions",
"info": "See corresponding Lab instructions in the link below :\n\n- [Watson Tone Analyser Lab](https://github.com/watson-developer-cloud/node-red-labs/tree/master/basic_examples/tone_analyser)\n",
"x": 145,
"y": 197,
"wires": []
}, {
"id": "72e34504.18114c",
"type": "comment",
"z": "8b3fa2d0.13a76",
"name": "Make sure you bind Tone Analyser Service to Node-RED App !",
"info": "When running in IBM Cloud, the credentials for the service will be filled-in from IBM Cloud credentials management.\nFor this to work, the Tone Analyser Service has to be bound to the Node-RED application.\n",
"x": 682,
"y": 197,
"wires": []
}, {
"id": "56609e2b.63e12",
"type": "watson-tone-analyzer-v3",
"z": "8b3fa2d0.13a76",
"name": "",
"tones": "all",
"sentences": "true",
"contentType": "false",
"tone-method": "generalTone",
"interface-version": "2016-05-19",
"inputlang": "en",
"default-endpoint": false,
"service-endpoint": "",
"x": 601.5,
"y": 300,
"wires": [
["f91ab2b5.f0edd"]
]
}]