Slack Connector
The Slack integration lets you chat with your MQTT broker and BunkerAI assistant directly from any Slack channel or DM. Query broker status, manage clients, receive anomaly alerts, and run natural-language commands - without leaving Slack.
Prerequisites
- BunkerAI Cloud account with available credits
- BunkerM instance with BunkerAI Cloud connected
- A Slack workspace where you have permission to add apps
Step 1: Connect BunkerAI Cloud
Make sure BunkerAI Cloud is connected first. Go to Settings > Integrations, enter your API key, and click Connect. If already connected, skip to Step 2.
Step 2: Authorize BunkerAI in Slack
- Go to Settings > Integrations and find the Slack section.
- Click Authorize BunkerAI in Slack.
- You are redirected to Slack's OAuth page.
- Select your workspace from the dropdown.
- Click Allow.
You are redirected back to BunkerM. The Slack section now shows a connected status with your workspace name.
Step 3: Start Using BunkerAI in Slack
Open your Slack workspace. The BunkerAI app appears in the Apps section of the sidebar.
- Direct Message: find BunkerAI in Apps and send a DM. The most private way to interact.
- Channel mention: in any channel, type
@BunkerAIfollowed by your question. The bot replies in the thread.
What You Can Do via Slack
Broker status
What is my broker status?
How many clients are connected right now?
Show me the broker message rate for the last hour. Client management
List all connected clients.
Is client sensor-kitchen-01 currently online?
Disable client sensor-bad-01. Topic queries
What is the current value of sensor/kitchen/temperature?
Show me all topics under home/living-room/.
Which topics received messages in the last 10 minutes? ACL management
Create a new client called gateway-01 with password secure123.
Give client gateway-01 publish access to sensor/#.
Create a role called read-only that can subscribe to #. Agents
Create a watcher on sensor/temp/kitchen that alerts when value > 35.
Show me all active watchers.
List my scheduled jobs. Receiving Anomaly Alerts
Go to Settings > Integrations and enable Alert Forwarding. New anomalies detected by BunkerAI are automatically sent as Slack messages to the BunkerAI DM conversation (or to a configured channel).
Shared Memory
Conversation history is shared across Slack, Telegram, and Web Chat. A conversation started on Slack can be continued in Web Chat without losing context. See Shared AI Memory.
Disconnecting
Go to Settings > Integrations, find the Slack section, and click Disconnect. You can also remove the app directly from your Slack workspace settings under Manage Apps.