-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHackingHateWorkflow.yaml
34 lines (34 loc) · 1.21 KB
/
HackingHateWorkflow.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
main:
params: [args]
steps:
- Pull messages from slack:
call: http.post
args:
url: https://extract-slack-messages-wsrkhuplpa-uc.a.run.app
body:
channel: ${args.slackChannelId}
auth:
type: OIDC
audience: https://extract-slack-messages-wsrkhuplpa-uc.a.run.app
result: messagesListResponse
- Classify messages with AI:
call: http.post
args:
url: https://rate-messages-with-ai-wsrkhuplpa-uc.a.run.app/
body:
sexistConfidenceThreshold: 0.5
messagesToClassify: ${json.decode(messagesListResponse.body)}
auth:
type: OIDC
audience: https://rate-messages-with-ai-wsrkhuplpa-uc.a.run.app/
result: potentiallySexistMessages
- Notify monitor user:
call: http.post
args:
url: https://notify-monitor-problematic-speech-wsrkhuplpa-uc.a.run.app
body:
monitorUser: ${args.monitorUserId}
messages: ${json.decode(potentiallySexistMessages.body)}
auth:
type: OIDC
audience: https://notify-monitor-problematic-speech-wsrkhuplpa-uc.a.run.app