Declare slack application
Diagram flow for Slack¶
For Slack
Bot Application
Staging: ``
Production: Otter
~ Slack Application
Slack Application:
-
User Permission:
-
[1] Create app
Go to: API Slack App
Then CREATE New
Request: User & Colloratnbor > Admin | Developers
b) Scope for Bot:
c) For mention users: Following this docs Formatting text for app surfaces
Build component application
Message -> JSON Webclient ->
App | Channel | method | Message Design |
---|---|---|---|
App | Slack | WebClient, Register Event | JSON |
App | Token Sendgrid | HTML | |
App | Discord | Token | Raw string |
Slack Application Scope¶
Permission | Description |
---|---|
app_mentions:read | View messages that directly mention @Innotech in conversations that the app is in |
channels:history | View messages and other content in public channels that Innotech has been added to |
channels:read | View basic information about public channels in a workspace |
chat:write | Send messages as @Innotech |
chat:write.customize | Send messages as @Innotech with a customized username and avatar |
chat:write.public | Send messages to channels @Innotech isn't a member of |
files:read | View files shared in channels and conversations that Innotech has been added to |
files:write | Upload, edit, and delete files as Innotech |
incoming-webhook | Post messages to specific channels in Slack |
links:read | View URLs in messages |
links:write | Show previews of URLs in messages |
Credential for connect to Database¶
Configuration¶
Currently, trthuyetbao@gmail.com
is admin of Slack service
https://app.slack.com/apps-manage/T01M5TWE673/integrations/installed
Resource configuration:
Group email of: Data Operation