Slack
Prerequisites
pip install openai slack-sdkexport SLACK_TOKEN=***Example
import os
from bitca.agent import Agent
from bitca.tools.slack import SlackTools
slack_tools = SlackTools()
agent = Agent(tools=[slack_tools], show_tool_calls=True)
# Example 1: Send a message to a Slack channel
agent.print_response("Send a message 'Hello from bitca !' to the channel #general", markdown=True)
# Example 2: List all channels in the Slack workspace
agent.print_response("List all channels in our Slack workspace", markdown=True)
# Example 3: Get the message history of a specific channel by channel ID
agent.print_response("Get the last 10 messages from the channel 1231241", markdown=True)
Toolkit Params
Parameter
Type
Default
Description
Toolkit Functions
Function
Description
Information
Last updated