-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsms-chat-config.yaml
More file actions
45 lines (42 loc) · 1.04 KB
/
sms-chat-config.yaml
File metadata and controls
45 lines (42 loc) · 1.04 KB
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
requires:
plugins:
- name: messaging
- name: workflow-plugin-http
modules:
- name: sms-http-server
type: http.server
config:
address: ":8081"
- name: sms-router
type: http.router
- name: sms-webhook-handler
type: http.handler
- name: message-broker
type: messaging.broker
- name: triage-survey-handler
type: messaging.handler
- name: agent-assignment-handler
type: messaging.handler
- name: chat-response-handler
type: messaging.handler
- name: notification-handler
type: messaging.handler
workflows:
http:
routes:
- method: POST
path: /sms/webhook
handler: sms-webhook-handler
- method: GET
path: /sms/status
handler: sms-webhook-handler
messaging:
subscriptions:
- topic: incoming-sms
handler: triage-survey-handler
- topic: triage-complete
handler: agent-assignment-handler
- topic: agent-response
handler: chat-response-handler
- topic: outgoing-sms
handler: notification-handler