slack source Slack Source

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Receive messages from a Slack channel.

Configuration Options

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

Property Name Description Type Default Example

channel

Channel

Required The Slack channel to receive messages from.

string

#myroom

token

Token

Required The Bot User OAuth Access Token to access Slack. A Slack app that has the following permissions is required: channels:history, groups:history, im:history, mpim:history, channels:read, groups:read, im:read, and mpim:read.

string

delay

Delay

The delay between polls. If no unit provided, milliseconds is the default.

string

60000

60s or 6000 or 1m

naturalOrder

Natural Order

Create exchanges in natural order (oldest to newest) or not.

boolean

false

serverUrl

Server URL

The Slack API server endpoint URL.

string

https://slack.com

https://slack.com

Dependencies

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

  • camel:gson

  • 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:slack-source"
      parameters:
        .
        .
        .
      steps:
        - to:
            uri: "kamelet:log-sink"

You can now run it directly through the following command

camel run route.yaml