SlackResourceClient allows you to connect to Slack workspaces and interact with the Slack Web API for messaging, channel operations, and more.
Usage
Direct Messages
The Slack integration accepts direct messages from users in addition to app mentions and threaded replies. Top-level DMs start new conversations, and threaded DM replies continue existing ones. This expands how users can interact with your bot via Slack—they can message it directly without mentioning it in a channel.Channel Access Verification
Before performing any channel operations, the AI agent must verify that the bot has access to the target channel. The agent callsslack_list_channels first to confirm bot access.
If the bot isn’t in the channel, the agent will instruct you to invite @Major Slack Integration and re-verify access before proceeding with messages, file posts, or history reads.
File Uploads
The Slack connector supports file uploads via Slack’s external upload API. The flow involves requesting an upload URL, uploading the file, and completing the upload.Account Linking
Users can link their Slack identity to their Major account for a seamless experience. After linking, users can manage their connected Slack accounts from the Connected Accounts settings page.Inputs
Theinvoke method accepts the following arguments:
The HTTP method to use:
"GET" or "POST".The Slack Web API path (e.g.,
/api/chat.postMessage, /api/channels.list).A unique identifier for this operation.
Optional configuration object.
Outputs
The output format is the same as the Custom API client.Discriminator for the response type.
The HTTP status code.
The response body (typically JSON).