Overview
The Slack integration allows you to:- Receive customer messages in Slack channels
- Respond to customers directly from Slack
- Manage conversations via Slack threads
- Get notifications for new conversations and escalations
- Broadcast messages to multiple customers
Installation
Step 1: Create a Slack App
- Go to api.slack.com/apps
- Click “Create New App”
- Choose “From scratch”
- Enter app name: “Support Unicorn”
- Select your workspace
- Click “Create App”
Step 2: Configure OAuth & Permissions
- In your app settings, go to “OAuth & Permissions”
-
Add the following Bot Token Scopes:
chat:writechannels:readchannels:historygroups:readim:readim:writeusers:readapp_mentions:readcommands
-
Add the following User Token Scopes:
channels:readchat:write
Step 3: Set Up Event Subscriptions
- Go to “Event Subscriptions”
- Enable events
- Set Request URL to:
https://your-domain.com/slack/events - Subscribe to bot events:
message.channelsmessage.groupsmessage.imapp_mention
Step 4: Install App to Workspace
- Go to “Install App” in the sidebar
- Click “Install to Workspace”
- Authorize the app
- Copy the Bot User OAuth Token (starts with
xoxb-)
Step 5: Configure in Support Unicorn
- Navigate to your Support Unicorn instance
- Go to Settings → Integrations → Slack
- Click “Connect Slack”
- Enter your Bot Token
- Select the default channel for conversations
- Click “Save”
Usage
Receiving Customer Messages
When a customer sends a message via the widget, SMS, or WhatsApp:- A Slack thread is created in your configured channel
- The customer’s message appears as the first message
- The AI agent’s response (if enabled) appears in the thread
- You can reply directly in Slack to respond to the customer
Responding from Slack
Simply reply to the thread in Slack. Your message will be sent to the customer via their original channel (widget, SMS, etc.).Managing Conversations
- Each conversation has its own Slack thread
- Thread title shows customer name/identifier
- All messages in the thread sync bidirectionally
Broadcasting Messages
Use the Slack shortcut to broadcast messages:- Press Cmd+K (Mac) or Ctrl+K (Windows)
- Type “Send SMS/WhatsApp Message”
- Select recipients
- Compose and send
Configuration
Channel Mapping
Map your configuration to a specific Slack channel:- Navigate to Agents → Your Agent → Settings
- In the Configuration section, find “Slack Channel”
- Enter the channel name (e.g.,
#support-channel) - Click “Save Changes”
AI Agent Integration
- Create or select an Agent
- Configure knowledge base (files, Q&As, etc.)
- Link agent to Configuration
- AI will respond automatically to customer messages
Troubleshooting
Messages not appearing in Slack
- Check bot token is valid
- Verify event subscriptions are configured
- Check Slack channel permissions
- Review Rails logs for errors
Can’t respond from Slack
- Ensure bot has
chat:writescope - Check thread exists
- Verify conversation is active
Webhook not receiving events
- Verify Request URL is accessible
- Check SSL certificate (must be HTTPS)
- Test with Slack’s test event
Next Steps
Zendesk Integration
Connect with Zendesk for ticket management