Slack Integration
Connect your Slack workspace to Phoenix so OttoBot can respond to your team's messages in the correct workspace under your organization's tenant.
Prerequisites
Before you begin, ensure you have:
- A Slack workspace where you have permission to install apps
- Admin access to your Phoenix organization's Integrations settings
Create the Slack App
Phoenix uses OttoBot's published Slack app manifest, which configures all required permissions and Socket Mode automatically. Creating the app from this manifest is the recommended approach — you do not need to hand-pick scopes.
1. Open the Slack app creation page:
Go to https://api.slack.com/apps and click Create New App.
2. Choose "From a manifest":
Select From a manifest in the dialog that appears.
3. Select your workspace:
Choose the Slack workspace where you want OttoBot to operate, then click Next.
4. Paste the OttoBot manifest:
Copy the contents of the OttoBot Slack app manifest and paste it into the YAML editor. Click Next, review the summary, then click Create.
The manifest is the authoritative source for required scopes and Socket Mode configuration. Do not modify the manifest — paste it as-is.
Obtain Your Tokens
Bot User OAuth Token (xoxb-…)
After the app is created:
- In the left sidebar, go to OAuth & Permissions.
- Under OAuth Tokens for Your Workspace, click Install to Workspace.
- Review the requested permissions and click Allow.
- Copy the Bot User OAuth Token — it starts with
xoxb-.
App-Level Token (xapp-…)
- In the left sidebar, go to Basic Information.
- Scroll down to App-Level Tokens and click Generate Token and Scopes.
- Give the token a name (e.g.,
socket-mode). - Click Add Scope and select
connections:write. - Click Generate and copy the token — it starts with
xapp-.
Configure in Phoenix
- In Phoenix, navigate to Integrations in your organization's settings.
- Find Slack and click Connect.
- Enter your tokens in the two fields:
| Field | Value |
|---|---|
| Bot User OAuth Token | The xoxb-… token from OAuth & Permissions |
| App-Level Token | The xapp-… token from Basic Information → App-Level Tokens |
- Click Configure Integration.
The tokens are stored encrypted at rest. They are never returned to the browser in plaintext.
Rotating Tokens
If you need to rotate your tokens:
- Go back to https://api.slack.com/apps and open your OttoBot app.
- Generate new tokens using the steps above.
- In Phoenix, open the Slack integration and click Edit to enter the new tokens.
The shared-mt OttoBot pod detects the rotation on its next poll via the updated timestamp and refreshes the Socket Mode connection automatically.
Disconnecting
To remove the Slack integration for your organization, open the Slack integration in Phoenix and click Remove. The OttoBot pod will stop serving your workspace on its next refresh cycle.
Troubleshooting
| Symptom | Likely cause | Solution |
|---|---|---|
| "Bot User OAuth Token must start with xoxb-" | Wrong token pasted in the Bot Token field | Ensure you copy the Bot User OAuth Token from OAuth & Permissions, not the app token |
| "App-Level Token must start with xapp-" | Wrong token in the App Token field | Ensure you copy the App-Level Token from Basic Information → App-Level Tokens |
| OttoBot not responding in Slack | App not installed to workspace, or Socket Mode not enabled | Confirm you clicked Install to Workspace in step 3 of Obtain Your Tokens; also verify the manifest was pasted unmodified (socket_mode_enabled: true must be present) |
| Integration shows connected but OttoBot is offline | Token expired or revoked | Rotate both tokens (see Rotating Tokens) |
Next Steps
- Supported MCP Clients — connect Phoenix to other AI tools
- MCP Tool Documentation — full tool catalog