Slack App Configuration
This page documents how to create, configure, and publish the Aileron Slack app. This is an Aileron developer/ops task — workspace admins and users don’t need this page.
- Workspace admins: see Installing Aileron to your workspace
- Users: see Connecting your Slack account
Create the Slack app
Go to api.slack.com/apps and create a new app from scratch.
Enable Agents & AI Apps
Sidebar → Agents & AI Apps → toggle ON. This enables the agent DM experience with suggested prompts, thinking indicators, and streaming responses.
OAuth & Permissions
Under Bot Token Scopes, add:
assistant:write— agent thread interactions (auto-added when Agents feature is enabled)chat:write— post messages and stream responsesim:history— receive DM messages from userscommands— register slash commands
Under User Token Scopes, add:
channels:history— read messages in public channelschannels:read— list channels and their infochat:write— send messages as the usersearch:read— search message history for contextusers:read— look up user names
Under Redirect URLs, add both:
https://your-domain/v1/connect/slack/callback
https://your-domain/v1/slack/install/callback
The first handles user OAuth (when individual users connect their accounts). The second handles workspace bot installation.
App Credentials
From Basic Information, note:
- Client ID →
SLACK_CLIENT_ID - Client Secret →
SLACK_CLIENT_SECRET - Signing Secret →
SLACK_SIGNING_SECRET
Configure environment variables
Set these on the Aileron cloud server:
SLACK_CLIENT_ID=your-client-id
SLACK_CLIENT_SECRET=your-client-secret
SLACK_SIGNING_SECRET=your-signing-secret
# For AI-powered draft generation:
ANTHROPIC_API_KEY=sk-ant-your-key
# Optional — these are the defaults:
AILERON_LLM_MODEL_RESEARCH=claude-haiku-4-5-20251001 # fast model for tool-call decisions
AILERON_LLM_MODEL_SYNTHESIS=claude-sonnet-4-6 # capable model for composing the reply
The draft pipeline uses two models: a fast model gathers context via tool calls (research), and a capable model composes the reply in your voice (synthesis).
You also need AILERON_SYSTEM_VAULT_KEY configured — the Slack bot token (from workspace installation) is stored in the system vault, which requires this key for at-rest encryption.
Verify the server logs show:
enabled Slack connected accounts and source connector
enabled cloud draft generation research_model=claude-haiku-4-5-20251001 synthesis_model=claude-sonnet-4-6
enabled Slack Events API webhook, interaction, command, and install endpoints
Enable Event Subscriptions, Interactivity, and Slash Commands
The Aileron server must be running before this step — Slack sends verification challenges immediately.
Event Subscriptions
- Sidebar → Event Subscriptions → toggle ON
- Request URL:
https://your-domain/v1/webhooks/slack/events - Wait for the green checkmark
- Under Subscribe to bot events, add:
assistant_thread_startedassistant_thread_context_changedmessage.im
- Click Save Changes
Interactivity & Shortcuts
- Sidebar → Interactivity & Shortcuts → toggle ON
- Request URL:
https://your-domain/v1/webhooks/slack/interactions - Under Shortcuts, create a Message Shortcut:
- Name: Draft reply with Aileron
- Short Description: Generate an AI-drafted reply to this message
- Callback ID:
draft_reply
- Click Save Changes
Slash Commands
- Sidebar → Slash Commands → Create New Command
- Command:
/aileron - Request URL:
https://your-domain/v1/webhooks/slack/commands - Short Description: Draft messages or ask questions with AI
- Usage Hint:
[draft a reply | ask a question] - Click Save
Publish to the Slack App Directory
- Sidebar → Manage Distribution
- Under “Share Your App with Other Workspaces”, ensure all checklist items are complete (redirect URLs, bot user, app description, privacy policy, etc.)
- Click Activate Public Distribution
- Submit for Slack review if required
Once published, workspace admins can install Aileron with one click from the App Directory.
Install to development workspace
For testing before publishing:
- Sidebar → Install App → Install to Workspace
When you authorize the app, Slack redirects to https://your-domain/v1/slack/install/callback. Aileron exchanges the code for a bot token and stores it in the system vault.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| url_verification fails | Server not running, wrong URL, signing secret mismatch |
| No events arriving | Event subscriptions not saved, Agents feature not enabled |
| Agent DM shows no suggested prompts | assistant_thread_started event not subscribed, bot token missing from system vault |
| Message shortcut missing from menu | Shortcut not registered, callback_id mismatch |
/aileron command not found | Slash command not registered, wrong request URL |
trigger_id expired | Modal must open within 3s — check server performance |
invalid_team_for_non_distributed_app | Public distribution not activated |