The Slack connector uses Slack Incoming Webhooks.
Slack connectors have the following configuration properties.
Connector networking configurationedit
Use the Action configuration settings to customize connector networking configurations, such as proxies, certificates, or TLS settings. You can set configurations that apply to all your connectors or use
xpack.actions.customHostSettings to set per-host configurations.
Preconfigured connector typeedit
my-slack: name: preconfigured-slack-connector-type actionTypeId: .slack secrets: webhookUrl: 'https://hooks.slack.com/services/abcd/efgh/ijklmnopqrstuvwxyz'
Secrets defines sensitive information for the connector type.
- A string that corresponds to Webhook URL.
Define connector in Stack Managementedit
Define Slack connector properties.
Test Slack action parameters.
Slack actions have the following properties.
The message text, converted to the
textfield in the Webhook JSON payload. Currently only the text field is supported. Markdown, images, and other advanced formatting are not yet supported.
Configure a Slack accountedit
You need a Slack webhook URL to configure a Slack account. To create a webhook URL, set up an an Incoming Webhook Integration through the Slack console:
- Log in to slack.com as a team administrator.
- Go to https://my.slack.com/services/new/incoming-webhook.
Select a default channel for the integration.
- Click Add Incoming Webhook Integration.
- Copy the generated webhook URL so you can paste it into your Slack connector form.