Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository:
https://github.com/apache/camel/blob/master/README.md
https://github.com/apache/camel/blob/master/components/readme.adoc

Slack Component

Available as of Camel 2.16

The slack component allows you to connect to an instance of Slack and delivers a message contained in the message body via a pre established Slack incoming webhook.

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-slack</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>

URI format

To send a message to a channel.

slack:#channel[?options]

To send a direct message to a slackuser.

slack:@username[?options]

Options

Name

Description

Example

username

This is the username that the bot will have when sending messages to a channel or user.

username=CamelUser

iconUrl

The avatar that the component will use when sending message to a channel or user.