Slack Connector
Send messages to Slack channels.
Setup
- Create Slack App: Go to api.slack.com, enable "Incoming Webhooks" or "Bots".
- Scopes: Add
chat:write,channels:read. - Install: Install app to your workspace. Copy the
Bot User OAuth Token(starts withxoxb-).
Connection Profile
Create a ConnectionProfile in Django Admin.
- Slug:
slack-prod - Connector:
Slack - Secrets:
json { "token": "env://SLACK_BOT_TOKEN" }(EnsureSLACK_BOT_TOKENis in your environment variables)
Usage
In your Workflow Graph:
{
"id": "notify",
"type": "slack",
"config": {
"channel": "#general",
"text": "Hello form Automate! Event: {{ event.payload.id }}"
}
}