Slack Bot

Interact with Slack with your own bot user

Go to site
Explore
/
Apps
/
Slack Bot

Slack Bot API Integrations

Build and run workflows using the Slack Bot API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

const { WebClient } = require('@slack/web-api')
const web = new WebClient(auths.slack_bot.bot_token)

try {
  this.response = await web.chat.postMessage({
    text: "Test message from Pipedream",
    channel: params.channel,
  })
} catch (err) {
  this.error = err
  throw err
}
Send a Message as a Slack Bot

Sends a message as a Slack bot

 
Try it

Authentication

Slack Bot uses API keys for authentication. When you connect your Slack Bot account, Pipedream securely stores the keys so you can easily authenticate to Slack Bot APIs in both code and no-code steps.

In the settings for your Slack app, visit the OAuth & Permissions section on the left. You'll see a token labeled Bot User OAuth Access Token. Copy and paste that below.

See Slack's docs on Bot User Tokens for more info.