Slack Connector for AI Agents

Give agents tools for secure, real-time access to fetch, search, write, and sync across every system, with replication, entity mapping, and auth built-in.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors

About this Connector

Slack is a business communication platform that offers messaging, file sharing, and integrations with other tools. This connector provides read access to users, channels, channel members, messages, and threads, plus write operations like sending messages, creating channels, managing reactions, and more.

CRM

Sales Analytics

Customer Data

team communication, messaging, workspace analytics

Version Information

Package version

0.1.20

Connector version

0.1.20

SDK commit

unknown

Support Open Source

Check us out on Github and join the Airbyte community

Github

Installation & Usage

Get started with the Slack connector in minutes

1

Install Package

Using uv or pip

bash

Copy
uv pip install airbyte-agent-sdk

2

Import

Initialize and use

python

Copy
from airbyte_agent_sdk.connectors.slack import SlackConnector
from airbyte_agent_sdk.connectors.slack.models import SlackTokenAuthenticationAuthConfig

connector = SlackConnector(
    auth_config=SlackTokenAuthenticationAuthConfig(
        bot_key="<Your Slack Bot Key (xoxb-) or User Token (xoxp-)>"
    )
)

3

Tool

Add tools to your agent

python

Copy
@agent.tool_plain # assumes you're using Pydantic AI
@SlackConnector.tool_utils
async def slack_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Supported Entities & Actions

Access all your Slack data through a unified API

Lorem ipsum

Lorem ipsum

| Entity | Actions |\n|--------|---------|\n| Users | [List](./REFERENCE.md#users-list), [Get](./REFERENCE.md#users-get), [Context Store Search](./REFERENCE.md#users-context-store-search) |\n| Channels | [List](./REFERENCE.md#channels-list), [Get](./REFERENCE.md#channels-get), [Create](./REFERENCE.md#channels-create), [Update](./REFERENCE.md#channels-update), [Context Store Search](./REFERENCE.md#channels-context-store-search) |\n| Channel Messages | [List](./REFERENCE.md#channel-messages-list), [Context Store Search](./REFERENCE.md#channel-messages-context-store-search) |\n| Threads | [List](./REFERENCE.md#threads-list), [Context Store Search](./REFERENCE.md#threads-context-store-search) |\n| Messages | [Create](./REFERENCE.md#messages-create), [Update](./REFERENCE.md#messages-update), [Delete](./REFERENCE.md#messages-delete) |\n| Channel Topics | [Create](./REFERENCE.md#channel-topics-create) |\n| Channel Purposes | [Create](./REFERENCE.md#channel-purposes-create) |\n| Channel Invites | [Create](./REFERENCE.md#channel-invites-create) |\n| Reactions | [Create](./REFERENCE.md#reactions-create), [Delete](./REFERENCE.md#reactions-delete) |\n| Ephemeral Messages | [Create](./REFERENCE.md#ephemeral-messages-create) |\n| Scheduled Messages | [Create](./REFERENCE.md#scheduled-messages-create) |\n| Channel Archives | [Create](./REFERENCE.md#channel-archives-create) |\n| Channel Kicks | [Create](./REFERENCE.md#channel-kicks-create) |\n| Pins | [Create](./REFERENCE.md#pins-create) |\n| Bookmarks | [Create](./REFERENCE.md#bookmarks-create) |

Example Prompts

The Slack connector is optimized to handle prompts like these

Lorem ipsum

List all users in my Slack workspace - Show me all public channels - List members of a public channel - Show me recent messages in a public channel - Show me thread replies for a recent message - List all channels I have access to - Show me user details for a workspace member - List channel members for a public channel - Send a message to a channel saying 'Hello team!' - Post a message in the general channel - Update the most recent message in a channel - Create a new public channel called 'project-updates' - Create a private channel named 'team-internal' - Rename a channel to 'new-channel-name' - Set the topic for a channel to 'Daily standup notes' - Update the purpose of a channel - Add a thumbsup reaction to the latest message in a channel - React with :rocket: to the latest message in a channel - Reply to a recent thread with 'Thanks for the update!' - Invite a user to a channel - Add a team member to the #project-updates channel - Send an ephemeral message to a user in a channel - Whisper a private reminder to a user in #general - Schedule a message in a channel for tomorrow at 9am - Send a reminder to a channel at 5pm today - Delete the bot's last message in a channel - Remove the :thumbsup: reaction from a message - Archive the #old-project channel - Remove a user from the #team channel - Pin the latest important message in a channel - Add a bookmark link to a channel - What messages were posted in channel \{channel_id\} last week? - Show me the conversation history for channel \{channel_id\} - Search for messages mentioning \{keyword\} in channel \{channel_id\}

Why Airbyte for AI Agents?

Built for production AI workloads with enterprise-grade reliability

Agent-Native Design

Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.

Secure Authentication

Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.

Production Ready

Battle-tested connectors with comprehensive error handling, logging, and retry logic.

Open Source

Fully open source under the MIT license. Contribute, customize, and extend freely.

Works with your favorite frameworks

Use the Slack connector with any AI agent framework

🦜

LangChain

🦙

LlamaIndex

🤖

CrewAI

AutoGen

🧠

OpenAI Agents SDK

🔮

Claude Agents SDK

Frequently Asked Questions

Didn't find your answer? Please don't hesitate to reach out.

How do I authenticate with Slack?

The Slack connector supports token-based authentication using a Slack Bot Token (xoxb-) or User Token (xoxp-) for open source usage. For hosted mode, it supports Airbyte Cloud credentials (client ID and client secret) with optional organization ID for multi-org setups.

Can I use this connector with any AI agent framework?

The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.

Does this connector support write operations?

Yes, the Slack connector supports a wide range of write operations including sending, updating, deleting, and scheduling messages; creating and renaming channels; archiving channels; managing reactions; pinning messages; adding bookmarks; inviting and removing users from channels; and setting channel topics and purposes. However, it does not support deleting channels, creating users, updating user profiles, or unarchiving channels.

How is this different from the Airbyte data connector?

Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.

Will there be a platform for agent connectors?

The hosted version with secure credential storage through Airbyte Cloud is already available. See the hosted usage section in the documentation for setup instructions.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors