-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanifest.yaml
80 lines (80 loc) · 2.11 KB
/
manifest.yaml
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
packages:
WatsonWorkspace: #this is a package name
actions:
Webhook: # this is a action name
inputs:
WatsonWorkspace:
type: json
value: {
"AppId": "${WW_APP_ID}",
"AppSecret": "${WW_APP_SECRET}",
"WebhookSecret": "${WW_WEBHOOK_SECRET}"
}
function: Webhook.js
runtime: nodejs:8
web-export: raw
Token:
inputs:
WatsonWorkspace:
type: json
value: {
"AppId": "${WW_APP_ID}",
"AppSecret": "${WW_APP_SECRET}",
"WebhookSecret": "${WW_WEBHOOK_SECRET}"
}
function: Token.js
runtime: nodejs:8
GraphQL:
inputs:
WatsonWorkspace:
type: json
value: {
"AppId": "${WW_APP_ID}",
"AppSecret": "${WW_APP_SECRET}",
"WebhookSecret": "${WW_WEBHOOK_SECRET}"
}
function: GraphQL.js
runtime: nodejs:8
SendMessage:
inputs:
WatsonWorkspace:
type: json
value: {
"AppId": "${WW_APP_ID}",
"AppSecret": "${WW_APP_SECRET}",
"WebhookSecret": "${WW_WEBHOOK_SECRET}"
}
function: SendMessage.js
runtime: nodejs:8
TargetedMessage:
function: TargetedMessage.js
runtime: nodejs:8
IsMessage:
function: IsMessage.js
runtime: nodejs:8
IsAnnotation:
function: IsAnnotation.js
runtime: nodejs:8
IsFocus:
function: IsFocus.js
runtime: nodejs:8
IsMoment:
function: IsMoment.js
runtime: nodejs:8
triggers:
WWApplicationEvents:
WWWebhookEvents:
WWActionSelected:
WWButtonSelected:
WWEchoApp:
actions:
Echo:
function: Echo.js
runtime: nodejs:8
sequences:
EchoAppSequence:
actions: WatsonWorkspace/IsMessage, Echo, WatsonWorkspace/SendMessage
rules:
EchoAppRule:
trigger: WWWebhookEvents
action: EchoAppSequence