Send Slack Message

Posts a message to Slack via the Incoming WebHooks API. Configure an Incoming WebHook in your Slack account before using this Connector.

Revision History

1.0.0.0 Initial Release
1.0.0.4 Connector refresh. Added support for Block Kit Builder.

Properties

Connection

Type: Connection Input

WebhookUrl
Type: Secret
Provides the URL for the Incoming WebHook as shown in the Incoming WebHooks page (under Integrations) in Slack. Once saved in the connection, the URL is hidden as it contains a secret. This URL Takes the following form:

https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Message

Type: JSON
Provides a message to post. Please select a sample to see how to format the JSON payload. Extensive support for message formatting is supplied through Slack's Block Kit Builder, which serves as a good starting point for building your message template.

Remarks

Setting up WebHooks

  • Sign into your Slack account.
  • Navigate to your apps page: https://api.slack.com/apps
  • Click on "Create New App."
  • Select "From Scratch"
  • Provide an app name and select the workspace to tie it to.
  • Select "Incoming Webhooks" and click "Activate Incoming Webhooks"
  • Click "Add New Webhook to Workspace"
  • Select the desired channel and click "Allow"
  • Copy the generated webhook URL and paste it in the Send Slack Message connection you have created in the Flowgear console. Click on the test connection icon (play button) and a message should pop up in your channel.
  • Save the connection

Additional Markup

Slack supports Markdown when the text "type" property is "mrkdwn", as opposed to plain text.

See Also

Microsoft Teams Message