slack sink Slack Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send messages to a Slack channel.

Configuration Options

The following table summarizes the configuration options available for the slack-sink Kamelet:

Property Name Description Type Default Example

channel

Channel

Required The Slack channel to send messages to.

string

#myroom

webhookUrl

Webhook URL

Required The webhook URL used by the Slack channel to handle incoming messages.

string

iconEmoji

Icon Emoji

Use a Slack emoji as an avatar.

string

iconUrl

Icon URL

The avatar to use when sending a message to a channel or user.

string

username

Username

The username for the bot when it sends messages to a channel or user.

string

Dependencies

At runtime, the slack-sink Kamelet relies upon the presence of the following dependencies:

  • camel:jackson

  • camel:slack

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:slack-sink"

You can now run it directly through the following command

camel run route.yaml