1. Home
  2. Integrations
  3. c Slack

c Slack

Conectores disponíveis

The Slack component allows you to send messages, notifications, and alerts to Slack channels or users directly from your integration flows.

URI Syntax: slack:channel

Main fields

Path parameters

Name
Description
Default
Type
channel (common)(required) The channel name (#name syntax) or slack user (userName syntax) to send a message directly to a user.String

Query parameters

Name
Description
Default
Type
token (common)The token to access Slack. This app needs to have the permissions channels:history, groups:history, im:history, mpim:history, channels:read, groups:read, im:read and mpim:read. The type of token needed is the User OAuth Token.String

Example

NOTE

It is necessary to register an app on Slack with the appropriate permissions, as described in the component documentation. In addition, the bot must be added to the desired channels so that messages are sent correctly.

The flow below sends a message to a private Slack channel with bot-type authentication.

The flow starts with a GET request to the /slack endpoint.

Then, it sets the message body to "POC Slack" (using setBody with constant value).

Finally, it sends to Slack channel:

  • Channel: #notifications-hubspot-sync (private channel name)
  • Conversation type: PRIVATE_CHANNEL (private channel, not public)
  • Authentication: bot token (xoxb-547812-7840-JdgvOgeCWG)
  • Uses toD (to dynamic) to build the URI dynamically.
IMPORTANT
  • The bot needs to have appropriate permissions.
  • The bot must be added to the #notifications-hubspot-sync channel.
  • Use the channel name (not the ID) to avoid errors.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more