INTEGRATIONS/
SLACK

Slack Integration

Connect Slack to trigger agents from messages, app mentions, and reactions. Build intelligent Slack bots with automatic replies, thread management, and workflow automation.

Overview

The Slack integration enables webhook-driven agent triggers from Slack events including direct messages, app mentions, channel messages, and reactions. Agents can automatically reply in threads, post to channels, and execute workflows based on real-time Slack activity.

Setting Up Slack Integration

  1. Install Slack App: Navigate to Integrations → Slack and click "Connect Slack Workspace". Authorize the Growthub app with required OAuth scopes (channels:history, chat:write, app_mentions:read).
  2. Create Slack Trigger: In Agent Builder, add a new trigger and select "Slack" as the schedule type. Choose event types: Direct Messages, App Mentions, Channel Messages, or Reactions.
  3. Configure Event Filters: Optionally filter events by specific channels, users, or keywords to control when agents activate.
  4. Add Workflow Nodes: Connect Slack Trigger node → LLM Text Generation node → Slack Reply node. Configure prompt bindings and response templates.
  5. Test Trigger: Use "Run Test" button to validate with the last received Slack event. The system checks webhook connectivity and event parsing.
  6. Go Live: Activate the trigger. Agents will now respond to Slack events in real-time.

Supported Event Types

  • Direct Messages (DM): Trigger agents when users send DMs to the bot.
  • App Mentions: Activate agents when users mention the bot (@growthub) in channels or threads.
  • Channel Messages: Monitor specific channels and trigger workflows based on message content or patterns.
  • Reactions: Trigger agents when specific emoji reactions are added to messages.

Workflow Nodes

Slack Trigger Node

Entry point for Slack events. Extracts channelId, userId, text, threadTs, and other metadata from incoming webhooks. Provides bindings for downstream nodes.

Slack Reply Node

Sends messages to Slack channels or threads. Supports text formatting, bindings for channel/thread from trigger node, and automatic thread continuation.

Use Cases

Internal Support Bot

Respond to employee questions in #support channel with automated answers, FAQs, and escalation to human agents.

Lead Qualification Bot

Engage with prospects in your sales Slack channel. Ask qualifying questions and route hot leads to CRM or sales team.

Content Summarization

React to messages with a 📝 emoji to trigger AI summarization. Bot replies in thread with concise summary and key takeaways.

Workflow Automation

Trigger complex workflows from Slack commands. Create tasks in Asana, update CRM records, or generate reports with a simple message.

Technical Notes

  • Single Events API URL per Slack app (configured at Slack app level, not per trigger). Growthub dispatcher resolves which trigger executes based on team_id and connectionId.
  • Bot messages are automatically filtered to prevent infinite loops. Messages with bot_id or message_changed subtype are ignored.
  • Supports multiple Slack workspaces with separate OAuth connections. Each workspace has its own connection stored in mcp_connections table.
  • Default trigger selection: If one connection has a defaultTriggerId, that trigger executes. Otherwise, exactly one matching trigger must be active.