@Compiler with a question and get the answer in the thread.
You create a Slack app of your own and give Compiler its credentials in Settings > Slack. Nothing goes in environment variables, and nothing needs a restart.
Prerequisites
- You’re an owner or admin of your Compiler organization.
- You can create apps in your Slack workspace. Some workspaces need an admin to approve a new app.
PUBLIC_URLis set to the address your instance is reached on, such ashttps://compiler.yourdomain.com. Slack sends questions to that address, so it has to be reachable from the internet over HTTPS. The Slack page in settings tells you if it’s missing.
Step 1: Create the Slack app
- In Compiler, open Settings > Slack.
- Click Create the Slack app. Slack opens with a manifest already filled in, pointing at your instance.
- Choose your workspace and create the app.
The manifest also turns on Slack’s agent features for the app. It appears under Agents in the Slack sidebar with a split-view pane and suggested prompts, shows a “working” indicator with a Stop button while it answers, and streams its reply.
Slack doesn’t let workspace guests use agent-enabled apps.
Step 2: Give Compiler the credentials
In your new Slack app, open Basic Information and find App Credentials. Copy these three into Settings > Slack in Compiler and save:
Both secrets are stored encrypted and are never shown again. To change them later, click Replace credentials.
Step 3: Let Slack verify the address
Slack only sends events to an address it has verified, and it couldn’t verify yours before Compiler had the Signing Secret.- In your Slack app, open Event Subscriptions.
- Next to the Request URL, click Retry. It should change to Verified.
- Save the page if Slack asks you to.
PUBLIC_URL is right and that https://your-instance/api/slack/events is reachable from the internet.
Step 4: Add Compiler to your workspace
Back in Settings > Slack, click Add to Slack, choose the workspace and approve. The page now shows the connected workspace. Invite the bot to a channel with/invite @Compiler, or message it directly.