Use Slack with SmythOS
Connect your agents to Slack for real-time team communication, automated alerts, and contextual interactions via components or Model Context Protocol (MCP).
INFO
Why Use Slack With Your Agent?
Slack is a core communication tool for modern teams. Integrating it with SmythOS allows you to:
- Trigger alerts, summaries, or updates from automated workflows
- Send messages based on logic, triggers, or API events
- Send alerts or summaries directly to teams
- Build chatOps flows for faster task execution
- Route responses from AI agents into Slack threads
- Customize interactions based on channel, user, or context
With both direct Slack component integration and Model Context Protocol (MCP), you can choose how and where Slack fits in.
Prerequisites
Make sure you have:
- A Slack Workspace and Slack App
- Bot User enabled with messaging scopes
- Your Bot User OAuth Token
- Optional: Store the token in Vault → API Keys
Option 1: Send Slack Messages Using the Component
Step 1: Get Your Slack Bot Token
- Create a Slack App at Slack API Console
- Enable the Bot User under App Features
- Install the app under OAuth & Permissions
- Copy your Bot User OAuth Token
- Add it manually or store it in Vault
INFO
Step 2: Configure the Send Message Component
Open the Slack Send Message component in your workflow.
- Set authentication to use Vault key or paste token
- Define inputs for your message
{
"channel_id": "C12345678",
"text": "Your agent has completed the task."
}
Inputs Required:
channel_id
: ID of the Slack channeltext
: Message content (≤ 2000 characters)
Step 3: Output Structure
Once the message sends, the outputs include:
response
: Full Slack message objectheaders
: Metadata from Slack APIstatus
: HTTP status codemsgObj
: Message ID, content, timestamp
Option 2: Deploy Slack Integration via Model Context Protocol (MCP)
If your agent uses memory, roles, or multi-modal workflows, deploy with MCP to:
- Route outputs to Slack after deeper context processing
- Combine Slack notifications with email, Discord, or logging
- Enable multi-agent collaboration across departments
Sample Payload to MCP:
{
"input": "New ticket submitted in support.",
"platform": "slack",
"channel_id": "C024BE91L"
}
Follow this with a Send Message
component for delivery.
INFO
What’s Next?
- Attach Slack messaging to your Chatbot Interface
- Use Vault to manage tokens securely
- Track delivery and failures using Agent Logs
Connect your SmythOS agent to Slack using a secure bot token and deliver automated updates with the Send Message component or via MCP.