# Bot for Slack — Pipedream Connect

> Interact with Slack with your own bot user

- API slug: `slack_bot` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Communication
- Website: https://slack.com
- This page (HTML): https://pipedream.com/apps/slack-bot
- Tools: 24 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: slack_bot`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "slack_bot",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Add Emoji Reaction:
const result = await mcp.callTool({
  name: "slack_bot-add-emoji-reaction",
  arguments: {
    conversation: "Channel",
    timestamp: "Message Timestamp",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Bot for Slack endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://slack.com/api/auth.test

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9zbGFjay5jb20vYXBpL2F1dGgudGVzdA?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "slack_bot-add-emoji-reaction",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    slack_bot: { authProvisionId: "apn_xxxxxxx" },
    conversation: "Channel",
    timestamp: "Message Timestamp",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (24)

### `slack_bot-add-emoji-reaction` — Add Emoji Reaction (Write)

Add an emoji reaction to a message. See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/add-emoji-reaction.md

### `slack_bot-archive-channel` — Archive Channel (Write)

Archive a channel (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/archive-channel.md

### `slack_bot-create-channel` — Create a Channel (Write)

Create a new channel (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/create-channel.md

### `slack_bot-delete-file` — Delete File (Write)

Delete a file (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/delete-file.md

### `slack_bot-delete-message` — Delete Message (Write)

Delete a message (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/delete-message.md

### `slack_bot-find-user-by-email` — Find User by Email (Write)

Find a user by matching against their email (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/find-user-by-email.md

### `slack_bot-get-file` — Get File (Write)

Return information about a file (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/get-file.md

### `slack_bot-invite-user-to-channel` — Invite User to Channel (Write)

Invite a user to an existing channel (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/invite-user-to-channel.md

### `slack_bot-list-channels` — List Channels (Write)

Return a list of all channels in a workspace (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/list-channels.md

### `slack_bot-list-files` — List Files (Write)

Return a list of files within a team (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/list-files.md

### `slack_bot-list-group-members` — List Group Members (Write)

List all users in a User Group (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/list-group-members.md

### `slack_bot-list-members-in-channel` — List Members in Channel (Write)

Retrieve members of a channel (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/list-members-in-channel.md

### `slack_bot-list-replies` — List Replies (Write)

Retrieve a thread of messages posted to a conversation (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/list-replies.md

### `slack_bot-list-users` — List Users (Write)

Return a list of all users in a workspace (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/list-users.md

### `slack_bot-reply-to-a-message` — Reply to a Message Thread (Write)

Send a message as a threaded reply (Bot). See postMessage or scheduleMessage docs here

Full schema: https://pipedream.com/apps/slack-bot/actions/reply-to-a-message.md

### `slack_bot-send-large-message` — Send a Large Message (3000+ characters) (Write)

Send a large message (more than 3000 characters) to a channel, group or user (Bot). See postMessage or scheduleMessage docs here

Full schema: https://pipedream.com/apps/slack-bot/actions/send-large-message.md

### `slack_bot-send-message` — Send Message (Write)

Send a message to a user, group, private channel or public channel (Bot). See postMessage or scheduleMessage docs here

Full schema: https://pipedream.com/apps/slack-bot/actions/send-message.md

### `slack_bot-send-message-advanced` — Send Message (Advanced) (Write)

Customize advanced setttings and send a message to a channel, group or user (Bot). See postMessage or scheduleMessage docs here

Full schema: https://pipedream.com/apps/slack-bot/actions/send-message-advanced.md

### `slack_bot-send-block-kit-message` — Send Message Using Block Kit (Write)

Send a message using Slack's Block Kit UI framework to a channel, group or user (Bot). See postMessage or scheduleMessage docs here

Full schema: https://pipedream.com/apps/slack-bot/actions/send-block-kit-message.md

### `slack_bot-set-channel-description` — Set Channel Description (Write)

Change the description or purpose of a channel (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/set-channel-description.md

### `slack_bot-set-channel-topic` — Set Channel Topic (Write)

Set the topic on a selected channel (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/set-channel-topic.md

### `slack_bot-update-group-members` — Update Groups Members (Write)

Update the list of users for a User Group (Bot). See docs here

Full schema: https://pipedream.com/apps/slack-bot/actions/update-group-members.md

### `slack_bot-update-message` — Update Message (Write)

Update a message (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/update-message.md

### `slack_bot-upload-file` — Upload File (Write)

Upload a file (Bot). See the documentation

Full schema: https://pipedream.com/apps/slack-bot/actions/upload-file.md

## Triggers (2)

### `slack_bot-new-direct-message` — New Direct Message (Polling)

Emit new event when a message is posted in a direct message channel (Bot). To open a conversation, use the Pipedream Action "Send a Direct Message" to send a message from the Bot, or enable direct messages to the Bot in your App Settings (Settings->App Home->Show Tabs->Messages Tab), and send a…

Full schema: https://pipedream.com/apps/slack-bot/triggers/new-direct-message.md

### `slack_bot-new-message-in-channel` — New Message In Channel (Polling)

Emit new event when a new message is posted to a public, private or group channel (Bot)

Full schema: https://pipedream.com/apps/slack-bot/triggers/new-message-in-channel.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
