Use SlackBot with Langchain Python

Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
🔗 Connect and Use SlackBot
1. 🔑 Connect your SlackBot account
2. ✅ Select an action
3. 🚀 Go live with the agent
What do you want to do?
Actions
admin.apps
- Approve an app installation in a workspace
admin.apps.approved
admin.apps.requests
admin.apps.restricted
admin.conversations
admin.conversations.ekm
admin.conversations.restrictAccess
admin.emoji
admin.inviteRequests
admin.inviteRequests.approved
admin.inviteRequests.denied
admin.teams.admins
admin.teams
admin.teams.owners
admin.teams.settings
admin.usergroups
admin.users
admin.users.session
api
apps.event.authorizations
apps.permissions
apps.permissions.resources
apps.permissions.scopes
apps.permissions.users
apps
auth
bots
calls
calls.participants
chat
chat.scheduledMessages
conversations
dialog
dnd
emoji
files.comments
files
files.remote
migration
oauth
oauth.v2
pins
reactions
reminders
rtm
search
stars
team
team.profile
usergroups
usergroups.users
users
users.profile
views
workflows
Main

API actions for SlackBot for AI assitants/agents

Language
JS
PYTHON
Framework

Admin.apps

Approve An App Installation In A Workspace

Approve an app for installation on a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_APPROVE_AN_APP_INSTALLATION_IN_A_WORKSPACE])

Restrict App Installation On Workspace

Restrict an app for installation on a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RESTRICT_APP_INSTALLATION_ON_WORKSPACE])

Admin.apps.approved

List Approved Apps For Org Or Workspace

List approved apps for an org or workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_APPROVED_APPS_FOR_ORG_OR_WORKSPACE])

Admin.apps.requests

List Team Workspace App Requests

List app requests for a team/workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_TEAM_WORKSPACE_APP_REQUESTS])

Admin.apps.restricted

List Restricted Apps For An Org Or Workspace

List restricted apps for an org or workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_RESTRICTED_APPS_FOR_AN_ORG_OR_WORKSPACE])

Admin.conversations

Archive A Public Or Private Channel

Archive a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ARCHIVE_A_PUBLIC_OR_PRIVATE_CHANNEL])

Convert Public Channel To Private

Convert a public channel to a private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CONVERT_PUBLIC_CHANNEL_TO_PRIVATE])

Create Channel Based Conversation

Create a public or private channel-based conversation.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CREATE_CHANNEL_BASED_CONVERSATION])

Delete A Public Or Private Channel

Delete a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DELETE_A_PUBLIC_OR_PRIVATE_CHANNEL])

Disconnect Channel From Workspaces

Disconnect a connected channel from one or more workspaces.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DISCONNECT_CHANNEL_FROM_WORKSPACES])

Get Channel Conversation Preferences

Get conversation preferences for a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_GET_CHANNEL_CONVERSATION_PREFERENCES])

Get Channel S Connected Workspaces In Enterprise

Get all the workspaces a given public or private channel is connected to within this Enterprise org.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_GET_CHANNEL_S_CONNECTED_WORKSPACES_IN_ENTERPRISE])

Invite User To Channel

Invite a user to a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_INVITE_USER_TO_CHANNEL])

Rename A Slack Channel

Rename a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RENAME_A_SLACK_CHANNEL])

Search Channels In An Enterprise Organization

Search for public or private channels in an Enterprise organization.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SEARCH_CHANNELS_IN_AN_ENTERPRISE_ORGANIZATION])

Set Channel Posting Permissions

Set the posting permissions for a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_CHANNEL_POSTING_PERMISSIONS])

Set Workspace Connections For A Channel

Set the workspaces in an Enterprise grid org that connect to a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_WORKSPACE_CONNECTIONS_FOR_A_CHANNEL])

Unarchive A Public Or Private Channel

Unarchive a public or private channel.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UNARCHIVE_A_PUBLIC_OR_PRIVATE_CHANNEL])

Admin.conversations.ekm

List Disconnected Channels With Original Ids For Ekm

List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_DISCONNECTED_CHANNELS_WITH_ORIGINAL_IDS_FOR_EKM])

Admin.conversations.restrictAccess

Add Idp Group Allowlist To Channel

Add an allowlist of IDP groups for accessing a channel
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_IDP_GROUP_ALLOWLIST_TO_CHANNEL])

List Idp Groups Linked To A Channel

List all IDP Groups linked to a channel
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_IDP_GROUPS_LINKED_TO_A_CHANNEL])

Remove Idp Group From Private Channel

Remove a linked IDP group linked from a private channel
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_IDP_GROUP_FROM_PRIVATE_CHANNEL])

Admin.emoji

Add A Custom Emoji To A Slack Team

Add an emoji.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_A_CUSTOM_EMOJI_TO_A_SLACK_TEAM])

Add An Emoji Alias In Slack

Add an emoji alias.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_AN_EMOJI_ALIAS_IN_SLACK])

List Enterprise Grid Organization Emojis

List emoji for an Enterprise Grid organization.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_ENTERPRISE_GRID_ORGANIZATION_EMOJIS])

Remove Enterprise Grid Org Emoji

Remove an emoji across an Enterprise Grid organization
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_ENTERPRISE_GRID_ORG_EMOJI])

Rename An Emoji

Rename an emoji.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RENAME_AN_EMOJI])

Admin.inviteRequests

Approve Workspace Invite Request

Approve a workspace invite request.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_APPROVE_WORKSPACE_INVITE_REQUEST])

Deny Workspace Invite Request

Deny a workspace invite request.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DENY_WORKSPACE_INVITE_REQUEST])

List Pending Workspace Invite Requests

List all pending workspace invite requests.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_PENDING_WORKSPACE_INVITE_REQUESTS])

Admin.inviteRequests.approved

List Approved Workspace Invite Requests

List all approved workspace invite requests.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_APPROVED_WORKSPACE_INVITE_REQUESTS])

Admin.inviteRequests.denied

List Denied Workspace Invite Requests

List all denied workspace invite requests.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_DENIED_WORKSPACE_INVITE_REQUESTS])

Admin.teams.admins

List Workspace Admins

List all of the admins on a given workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_WORKSPACE_ADMINS])

Admin.teams

Create An Enterprise Team

Create an Enterprise team.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CREATE_AN_ENTERPRISE_TEAM])

List All Teams In An Enterprise Organization

List all teams on an Enterprise organization
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_ALL_TEAMS_IN_AN_ENTERPRISE_ORGANIZATION])

Admin.teams.owners

List Workspace Owners

List all of the owners on a given workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_WORKSPACE_OWNERS])

Admin.teams.settings

Fetch Workspace Settings Information

Fetch information about settings in a workspace
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_FETCH_WORKSPACE_SETTINGS_INFORMATION])

Set Workspace Default Channels

Set the default channels of a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_WORKSPACE_DEFAULT_CHANNELS])

Set Workspace Description

Set the description of a given workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_WORKSPACE_DESCRIPTION])

Set Workspace Discoverability Settings

An API method that allows admins to set the discoverability of a given workspace
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_WORKSPACE_DISCOVERABILITY_SETTINGS])

Set Workspace Icon

Sets the icon of a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_WORKSPACE_ICON])

Set Workspace Name

Set the name of a given workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_WORKSPACE_NAME])

Admin.usergroups

Add Default Channels To Idp Group

Add one or more default channels to an IDP group.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_DEFAULT_CHANNELS_TO_IDP_GROUP])

Associate Default Workspaces With Idp Group

Associate one or more default workspaces with an organization-wide IDP group.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ASSOCIATE_DEFAULT_WORKSPACES_WITH_IDP_GROUP])

List Org Level Idp Group Channels

List the channels linked to an org-level IDP group (user group).
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_ORG_LEVEL_IDP_GROUP_CHANNELS])

Remove Channels From Idp Group

Remove one or more default channels from an org-level IDP group (user group).
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_CHANNELS_FROM_IDP_GROUP])

Admin.users

Add Enterprise User To Workspace

Add an Enterprise user to a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_ENTERPRISE_USER_TO_WORKSPACE])

Invite User To Workspace With Optional Channel Invites

Invite a user to a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_INVITE_USER_TO_WORKSPACE_WITH_OPTIONAL_CHANNEL_INVITES])

List Workspace Users

List users on a workspace
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_WORKSPACE_USERS])

Remove User From Workspace

Remove a user from a workspace.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_USER_FROM_WORKSPACE])

Frequently asked questions

What is Composio.dev?

Composio.dev is a cutting-edge framework for building AI applications, designed to make the process of developing AI solutions super easy and fun! It's a collection of powerful tools and libraries that simplify the process of creating AI applications, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support SlackBot?

Composio.dev seamlessly integrates with SlackBot, making it a breeze to leverage its capabilities within the Composio.dev platform. You can use SlackBot to call functions on various platforms like Google, GitHub, and others, allowing you to incorporate different services into your AI applications with ease. It also supports user login via OAuth2 and can work with other popular frameworks such as LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with SlackBot and langchain_python?

When using SlackBot and langchain_python, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate SlackBot with langchain_python?

Integrating SlackBot with langchain_python is super easy with Composio.dev! You can use the Composio.dev API to call functions from both SlackBot and langchain_python, allowing you to tap into their capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with the language you're most comfortable with and integrate these powerful tools into your projects seamlessly.

What is the pricing for SlackBot and langchain_python?

Both SlackBot and langchain_python are completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes them accessible for developers and organizations of all sizes, whether you're a student working on a personal project or a startup building the next big thing. You can get started with these powerful tools without worrying about breaking the bank.

What kind of authentication is supported for SlackBot and langchain_python?

SlackBot and langchain_python support OAuth2 authentication, ensuring secure and authorized access to their functionalities. You can use the Composio.dev API to handle authentication and call functions from both SlackBot and langchain_python seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add SlackBot to my project?

Absolutely! You can easily incorporate SlackBot into your project by utilizing the Composio.dev API. This API allows you to call functions from both SlackBot and langchain_python, enabling you to leverage their capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add these powerful tools to your project with ease.

What is the accuracy of SlackBot and langchain_python?

SlackBot and langchain_python are designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. The comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for SlackBot and langchain_python?

SlackBot and langchain_python can be used for a wide range of AI applications, making them versatile tools for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. They're particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, these tools can help you bring your ideas to life.

How does SlackBot handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and SlackBot takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. SlackBot provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using SlackBot for your AI development needs.

Can I customize SlackBot and langchain_python for my specific needs?

Absolutely! SlackBot and langchain_python are highly customizable and extensible, allowing you to tailor their functionality, models, and configurations to meet your specific requirements. Whether you're building a chatbot, a content creation tool, or any other AI-powered application, you can customize these tools to fit your unique needs. Additionally, Composio.dev provides a flexible platform for integrating and orchestrating various AI tools and services, enabling you to create custom AI solutions that are tailored to your project.

What kind of support and documentation is available for SlackBot and langchain_python?

SlackBot and langchain_python have comprehensive documentation and a supportive community, making it easy for you to get started and find answers to your questions. Composio.dev also provides extensive resources, including tutorials, guides, and a dedicated support team to assist you throughout your AI development journey. Whether you're a beginner or an experienced developer, you'll have access to the resources you need to make the most of these powerful tools.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents🧪