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

Admin.users.session

Invalidate A User Session By Id

Invalidate a single session for a user by session_id
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_INVALIDATE_A_USER_SESSION_BY_ID])

Wipe User Sessions Across Devices

Wipes all valid sessions on all devices for a given user
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_WIPE_USER_SESSIONS_ACROSS_DEVICES])

Admin.users

Promote User To Admin Status

Set an existing guest, regular user, or owner to be an admin user.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_PROMOTE_USER_TO_ADMIN_STATUS])

Set Expiration For A Guest User

Set an expiration for a guest user
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_EXPIRATION_FOR_A_GUEST_USER])

Promote User To Workspace Owner

Set an existing guest, regular user, or admin user to be a workspace owner.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_PROMOTE_USER_TO_WORKSPACE_OWNER])

Set User To Regular Status

Set an existing guest user, admin user, or owner to be a regular user.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SET_USER_TO_REGULAR_STATUS])

Api

Checks Api Call And Returns Success Or Error

Checks API calling code.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CHECKS_API_CALL_AND_RETURNS_SUCCESS_OR_ERROR])

Apps.event.authorizations

List Event Authorizations For Apps

Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_EVENT_AUTHORIZATIONS_FOR_APPS])

Apps.permissions

List App Permissions On A Team

Returns list of permissions this app has on a team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_APP_PERMISSIONS_ON_A_TEAM])

Apps Permissions List Permissions

Returns list of permissions this app has on a team.<<DEPRECATED use list_app_permissions_on_a_team>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_APPS_PERMISSIONS_LIST_PERMISSIONS])

Request Additional App Permissions

Allows an app to request additional scopes
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REQUEST_ADDITIONAL_APP_PERMISSIONS])

Apps.permissions.resources

List App Resource Grants On A Team

Returns list of resource grants this app has on a team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_APP_RESOURCE_GRANTS_ON_A_TEAM])

Apps.permissions.scopes

List App Permissions Scopes On A Team

Returns list of scopes this app has on a team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_APP_PERMISSIONS_SCOPES_ON_A_TEAM])

Apps Permissions Scopes Get List

Returns list of scopes this app has on a team.<<DEPRECATED use list_app_permissions_scopes_on_a_team>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_APPS_PERMISSIONS_SCOPES_GET_LIST])

Apps.permissions.users

List App User Grants And Scopes On Team

Returns list of user grants and corresponding scopes this app has on a team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_APP_USER_GRANTS_AND_SCOPES_ON_TEAM])

Trigger User Permissions Modal

Enables an app to trigger a permissions modal to grant an app access to a user access scope.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_TRIGGER_USER_PERMISSIONS_MODAL])

Apps

Uninstall App From Workspace

Uninstalls your app from a workspace.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UNINSTALL_APP_FROM_WORKSPACE])

Auth

Revokes A Token With Optional Test Mode

Revokes a token.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REVOKES_A_TOKEN_WITH_OPTIONAL_TEST_MODE])

Checks Authentication And Identity

Checks authentication & identity.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CHECKS_AUTHENTICATION_AND_IDENTITY])

Bots

Fetch Bot User Information

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

Calls

Registers A New Call With Participants

Registers a new Call.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REGISTERS_A_NEW_CALL_WITH_PARTICIPANTS])

End A Call With Duration And Id

Ends a Call.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_END_A_CALL_WITH_DURATION_AND_ID])

Retrieve Call Information

Returns information about a Call.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RETRIEVE_CALL_INFORMATION])

Update Slack Call Information

Updates information about a Call.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UPDATE_SLACK_CALL_INFORMATION])

Calls.participants

Registers New Call Participants

Registers new participants added to a Call.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REGISTERS_NEW_CALL_PARTICIPANTS])

Register Call Participants Removal

Registers participants removed from a Call.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REGISTER_CALL_PARTICIPANTS_REMOVAL])

Chat

Deletes A Message From A Chat

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

Delete A Scheduled Message In A Chat

Deletes a pending scheduled message from the queue.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_DELETE_A_SCHEDULED_MESSAGE_IN_A_CHAT])

Share A Me Message In A Channel

Share a me message into a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SHARE_A_ME_MESSAGE_IN_A_CHANNEL])

Sends Ephemeral Messages To Channel Users

Sends an ephemeral message to a user in a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SENDS_EPHEMERAL_MESSAGES_TO_CHANNEL_USERS])

Sends A Message To A Slack Channel

Sends a message to a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SENDS_A_MESSAGE_TO_A_SLACK_CHANNEL])

Chat Post Message

Sends a message to a channel.<<DEPRECATED use sends_a_message_to_a_slack_channel>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CHAT_POST_MESSAGE])

Schedules A Message To A Channel At A Specified Time

Schedules a message to be sent to a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_SCHEDULES_A_MESSAGE_TO_A_CHANNEL_AT_A_SPECIFIED_TIME])

Customize Url Unfurling In Messages

Provide custom unfurl behavior for user-posted URLs
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CUSTOMIZE_URL_UNFURLING_IN_MESSAGES])

Updates A Slack Message

Updates a message.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_UPDATES_A_SLACK_MESSAGE])

Chat.scheduledMessages

List Scheduled Messages In A Channel

Returns a list of scheduled messages.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_SCHEDULED_MESSAGES_IN_A_CHANNEL])

Conversations

Archive A Slack Conversation

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

Close Dm Or Multi Person Dm

Closes 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_CLOSE_DM_OR_MULTI_PERSON_DM])

Initiates Channel Based Conversations

Initiates a public or private channel-based conversation
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_INITIATES_CHANNEL_BASED_CONVERSATIONS])

Fetch Conversation History

Fetches a conversation's history of messages and events.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_FETCH_CONVERSATION_HISTORY])

Conversations History

Fetches a conversation's history of messages and events.<<DEPRECATED use fetch_conversation_history>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CONVERSATIONS_HISTORY])

Retrieve Conversation Information

Retrieve information about a conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_RETRIEVE_CONVERSATION_INFORMATION])

Conversations Info

Retrieve information about a conversation.<<DEPRECATED use retrieve_conversation_information>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CONVERSATIONS_INFO])

Invite Users To A Slack Channel

Invites users to a channel.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_INVITE_USERS_TO_A_SLACK_CHANNEL])

Join An Existing Conversation

Joins an existing conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_JOIN_AN_EXISTING_CONVERSATION])

Remove A User From A Conversation

Removes a user from a conversation.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_REMOVE_A_USER_FROM_A_CONVERSATION])

Leave A Conversation

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

List All Slack Team Channels With Various Filters

Lists all channels in a Slack team.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_LIST_ALL_SLACK_TEAM_CHANNELS_WITH_VARIOUS_FILTERS])

Conversations List

Lists all channels in a Slack team.<<DEPRECATED use list_all_slack_team_channels_with_various_filters>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.SLACKBOT_CONVERSATIONS_LIST])

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🧪