Use SlackBot with OpenAI 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

Conversations

Set Read Cursor In A Conversation

Sets the read cursor in a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_READ_CURSOR_IN_A_CONVERSATION])

Retrieve Conversation Members List

Retrieve members of a conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RETRIEVE_CONVERSATION_MEMBERS_LIST])

Open Or Resume Direct Or Multi Person Messages

Opens or resumes a direct message or multi-person direct message.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_OPEN_OR_RESUME_DIRECT_OR_MULTI_PERSON_MESSAGES])

Rename A Conversation

Renames a conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RENAME_A_CONVERSATION])

Fetch Message Thread From A Conversation

Retrieve a thread of messages posted to a conversation
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION])

Set A Conversation S Purpose

Sets the purpose for a conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_A_CONVERSATION_S_PURPOSE])

Set The Topic Of A Conversation

Sets the topic for a conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_THE_TOPIC_OF_A_CONVERSATION])

Reverse A Conversation S Archival Status

Reverses conversation archival.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REVERSE_A_CONVERSATION_S_ARCHIVAL_STATUS])

Dialog

Open User Dialog With Json Defined Ui

Open a dialog with a user
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_OPEN_USER_DIALOG_WITH_JSON_DEFINED_UI])

Dnd

End User Do Not Disturb Session

Ends the current user's Do Not Disturb session immediately.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_END_USER_DO_NOT_DISTURB_SESSION])

End User Snooze Mode Immediately

Ends the current user's snooze mode immediately.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_END_USER_SNOOZE_MODE_IMMEDIATELY])

Retrieve Current User Dnd Status

Retrieves a user's current Do Not Disturb status.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RETRIEVE_CURRENT_USER_DND_STATUS])

Activate Or Modify Do Not Disturb Duration

Turns on Do Not Disturb mode for the current user, or changes its duration.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ACTIVATE_OR_MODIFY_DO_NOT_DISTURB_DURATION])

Fetch Dnd Status For Multiple Team Members

Retrieves the Do Not Disturb status for up to 50 users on a team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_FETCH_DND_STATUS_FOR_MULTIPLE_TEAM_MEMBERS])

Emoji

List Team Custom Emojis

Lists custom emoji for a team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_TEAM_CUSTOM_EMOJIS])

Files.comments

Delete A Comment On A File

Deletes an existing comment on a file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DELETE_A_COMMENT_ON_A_FILE])

Files

Delete A File By Id

Deletes a file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DELETE_A_FILE_BY_ID])

Retrieve Detailed Information About A File

Gets information about a file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RETRIEVE_DETAILED_INFORMATION_ABOUT_A_FILE])

List Files With Filters In Slack

List for a team, in a channel, or from a user with applied filters.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_FILES_WITH_FILTERS_IN_SLACK])

Revoke Public Sharing Access For A File

Revokes public/external sharing access for a file
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REVOKE_PUBLIC_SHARING_ACCESS_FOR_A_FILE])

Enable Public Sharing Of A File

Enables a file for public/external sharing.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ENABLE_PUBLIC_SHARING_OF_A_FILE])

Upload Or Create A File In Slack

Uploads or creates a file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UPLOAD_OR_CREATE_A_FILE_IN_SLACK])

Files.remote

Add A Remote File From A Service

Adds a file from a remote service
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_A_REMOTE_FILE_FROM_A_SERVICE])

Retrieve Remote File Info In Slack

Retrieve information about a remote file added to Slack
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RETRIEVE_REMOTE_FILE_INFO_IN_SLACK])

List Slack S Remote Files With Filters

Retrieve information about a remote file added to Slack
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_SLACK_S_REMOTE_FILES_WITH_FILTERS])

Remove A Remote File

Remove a remote file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_A_REMOTE_FILE])

Share Remote File In Channels

Share a remote file into a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SHARE_REMOTE_FILE_IN_CHANNELS])

Updates An Existing Remote File

Updates an existing remote file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UPDATES_AN_EXISTING_REMOTE_FILE])

Migration

Map User Ids For Enterprise Grid Workspaces

For Enterprise Grid workspaces, map local user IDs to global user IDs
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_MAP_USER_IDS_FOR_ENTERPRISE_GRID_WORKSPACES])

Oauth

Exchange Oauth Code For Access Token

Exchanges a temporary OAuth verifier code for an access token.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_EXCHANGE_OAUTH_CODE_FOR_ACCESS_TOKEN])

Exchange Oauth Code For Workspace Token

Exchanges a temporary OAuth verifier code for a workspace token.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_EXCHANGE_OAUTH_CODE_FOR_WORKSPACE_TOKEN])

Oauth.v2

Exchange Oauth Verifier For Access Token

Exchanges a temporary OAuth verifier code for an access token.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_EXCHANGE_OAUTH_VERIFIER_FOR_ACCESS_TOKEN])

Pins

Pins An Item To A Channel

Pins an item to a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_PINS_AN_ITEM_TO_A_CHANNEL])

Lists Pinned Items In A Channel

Lists items pinned to a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LISTS_PINNED_ITEMS_IN_A_CHANNEL])

Unpin Item From Channel

Un-pins an item from a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UNPIN_ITEM_FROM_CHANNEL])

Reactions

Add Reaction To An Item

Adds a reaction to an item.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_REACTION_TO_AN_ITEM])

Fetch Item Reactions

Gets reactions for an item.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_FETCH_ITEM_REACTIONS])

List User Reactions

Lists reactions made by a user.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_USER_REACTIONS])

Remove Reaction From Item

Removes a reaction from an item.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_REACTION_FROM_ITEM])

Reminders

Create A Reminder

Creates a reminder.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CREATE_A_REMINDER])

Reminders Add

Creates a reminder.<<DEPRECATED use create_a_reminder>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMINDERS_ADD])

Mark Reminder As Complete

Marks a reminder as complete.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_MARK_REMINDER_AS_COMPLETE])

Delete A Slack Reminder

Deletes a reminder.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DELETE_A_SLACK_REMINDER])

Get Reminder Information

Gets information about a reminder.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_GET_REMINDER_INFORMATION])

List User Reminders With Details

Lists all reminders created by or for a given user.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_USER_REMINDERS_WITH_DETAILS])

Rtm

Start Real Time Messaging Session

Starts a Real Time Messaging session.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_START_REAL_TIME_MESSAGING_SESSION])

Search For Messages With Query

Searches for messages matching a query.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SEARCH_FOR_MESSAGES_WITH_QUERY])

Search Messages

Searches for messages matching a query.<<DEPRECATED use search_for_messages_with_query>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SEARCH_MESSAGES])

Stars

Add A Star To An Item

Adds a star to an item.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_ADD_A_STAR_TO_AN_ITEM])

Lists User S Starred Items With Pagination

Lists stars for a user.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LISTS_USER_S_STARRED_ITEMS_WITH_PAGINATION])

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 openAI_python?

When using SlackBot and openAI_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 openAI_python?

Integrating SlackBot with openAI_python is super easy with Composio.dev! You can use the Composio.dev API to call functions from both SlackBot and openAI_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 openAI_python?

Both SlackBot and openAI_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 openAI_python?

SlackBot and openAI_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 openAI_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 openAI_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 openAI_python?

SlackBot and openAI_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 openAI_python?

SlackBot and openAI_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 openAI_python for my specific needs?

Absolutely! SlackBot and openAI_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 openAI_python?

SlackBot and openAI_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🧪