Slack: approvals and chat¶
Connect one Slack workspace in Settings → Chat connections. An administrator installs the bot once. Each member pairs their own Slack and Preloop accounts. The same bot delivers approval requests and starts conversations with flows.
Set up Slack with an app manifest¶
Use this path on Preloop Cloud or on a self-hosted instance, whether or not Add to Slack is available. You need permission to install a Slack app in your workspace. For self-hosted instances, the API and chat worker need outbound access to Slack, and Slack needs public HTTPS access to the displayed request URL. An internal-only instance can still use an outgoing webhook.
- In Settings → Chat connections → Add connection, choose Slack. Set the Slack app name (default Preloop) and select Set up with an app manifest. Open Create a Slack app from a manifest to load the YAML for this connection. To enter it manually, copy the YAML, choose Create New App → From a manifest in Slack’s app settings, and paste it into the manifest editor.
- In Slack, choose your workspace, review the manifest and permissions, and select Create and Install. If Slack creates the app without installing it, open OAuth & Permissions, select Install to <workspace>, and select Allow. Ask a Slack workspace administrator for approval if installation is restricted.
- Copy the Bot User OAuth Token from OAuth & Permissions and the
Signing Secret from Basic Information → App Credentials. In the Slack
web app URL, copy the workspace ID starting with
Tafter/client/. Enter these in Preloop. You can also enter the App ID from App Credentials to distinguish connections with the same name. Select Discover bot and workspace and Finish. The bot token must belong to the workspace you entered. - Check Event Subscriptions and Interactivity & Shortcuts in Slack’s app settings. Both use the request URL shown in Preloop. If Slack asks to verify the URL again, retry after saving the credentials.
The manifest enables the app’s Messages tab, subscribes to DMs and app mentions, and enables interactivity. Slack commands in this guide are ordinary messages. A reserved URL can echo a verification challenge before Slack issues credentials. Actual actions and messages require the signing secret. Slack app manifests · Slack installation and authorization
When Add to Slack is available¶
Add to Slack appears when the instance operator configures a managed Slack
app (slackOAuth in Helm). In Settings → Chat
connections → Add connection → Slack, select Add to Slack, choose your
workspace, and select Allow. Return to the setup tab, select Refresh
installation, check the workspace, and select Finish. The manifest path
is also available on these instances.
Replace a Slack connection¶
Each Preloop account can have one enabled Slack connection, including when both apps are in the same workspace. Set up the new app, then select Replace the existing connection after Finish identifies the active connection. Preloop disables the old connection, enables the new one, and moves saved Slack workflows to it. If you switch workspaces, select a new channel in each affected workflow. Invite the new app to any channels your workflows use and have members link their accounts again.
Link your account and send a test¶
Open Settings → Chat connections → Link my account. Copy the command and send it in a DM to the bot. The code expires in ten minutes. Refresh the connection to check Your account is linked. You can also start linking by clicking an approval button and following the private link Slack shows. Confirm the Slack user and workspace in the console, then click the original button again. Unlink my account revokes the pairing.
An administrator can choose Send test message for their linked DM, or enter a channel ID to test channel delivery. Copy the ID from the bottom of the channel’s About tab. Test approval posts a sample using the account’s default human approval workflow. Its voters, quorum, expiry and audit work normally. No agent or tool is waiting on the answer.
Which to use¶
Both routes deliver interactive approval requests. Private messages work with an existing standard workflow as soon as an eligible approver has linked their account and turned on the connection. A Slack workflow can post to a shared channel and send private messages to linked approvers.
Post to a Slack channel¶
Use a channel when the team needs a shared record of requests and votes. Everyone who can read the channel can see the post. Only linked Preloop members eligible for that request, with permission to decide approvals, can vote. Preloop checks their account, workflow eligibility, and access at the time they act. Channel membership alone does not grant a vote.
- Connect Slack and invite the bot to the channel. In Slack, open the channel details and add the app from the Integrations tab.
- In Tools → Workflows, edit or create a human workflow. Select Slack: approve from the message, choose the channel, keep Send to approvers’ DMs enabled if you want both deliveries, and save the workflow. Assign the workflow to the rule that needs review.
- Link your Slack identity. Click Approve, or click Decline and enter an optional reason. For a question, click Answer and enter the option number or your answer. Use Open in Preloop for forms, full details, or requests that require additional authentication.
The post updates as votes arrive. A quorum workflow can show 1 of 2 approved. A closed post shows its outcome and removes the decision buttons.

Use a standard workflow and send private messages¶
Use personal chat when each named approver should receive their own prompt. A standard workflow routes to its named users and the members of its named teams. Each eligible approver can choose one or more linked chat connections under Settings → Notifications. The private message is queued as soon as the request is ready for human review, alongside any email or mobile push delivery.
- Connect the bot in Settings → Chat connections. Follow the setup for Slack, Mattermost, Discord, or Microsoft Teams.
- Use the standard workflow already assigned to your rule. If you are setting up a new rule, assign a standard workflow with the users or teams who should decide.
- Each approver links their account. Then in Settings → Notifications → Channels, turn on the connection. Its toggle starts off even after linking. Select Check link status if the bot confirmed the link and the page has yet to update.
- Select Send a test approval to me. The bot sends a private sample that needs no vote. The connection shows the last delivery time and the reason for the most recent failure or cancellation, when available.
| Platform | What the bot sends and how to respond |
|---|---|
| Slack | A private message with Approve, Decline, or Answer buttons. The question dialog accepts an option number or typed answer. |
| Mattermost | A private post with commands. Reply approve REQUEST_ID, deny REQUEST_ID, or answer REQUEST_ID ANSWER. For a legacy slash-command connection, use the displayed /preloop prefix. |
| Discord | A private message with commands. Run the server's /preloop command with /approve REQUEST_ID, /deny REQUEST_ID, or /answer REQUEST_ID ANSWER in the message field. The bot acknowledges privately. |
| Microsoft Teams | A personal bot message with commands. Reply approve REQUEST_ID, deny REQUEST_ID, or answer REQUEST_ID ANSWER. |
For a question with choices, enter the option number displayed in the message. Free-text questions accept a typed answer. Open the request in Preloop to fill a structured form. The bot updates its original prompt as the request closes or expires. If the platform refuses the update, the bot can send a short follow-up. You can receive a personal message even when the workflow also posts in Slack. Turning off the preference keeps your account linked.

Talk to a flow¶
- On the connection card select Add Ask Preloop as default. With the
account’s default AI model configured,
ask preloop What needs approval?uses your permissions to read agents, spend, pending approvals and recent runs. Account answers arrive privately. For a managed agent, select an onboarded agent with Agent Control enabled and choose Add Ask an onboarded agent. Send@Preloop ask agent QUESTIONto receive its answer in that Slack thread. Each question starts a run. - To use your own flow, enable it and give it a Chat flow alias under Trigger configuration → Chat trigger. Enable Interactive conversation if the flow should accept follow-ups. An administrator can set the connection’s Default chat flow.
- DM the bot
helpto see the aliases you can run. Sendask docs Where is the release checklist?, replacingdocswith an alias. With a default, useask QUESTION. The acknowledgement links to the run or conversation in Preloop. - For an interactive flow, send follow-ups in the DM. In a channel, start
with
@Preloop ask docs QUESTION, then reply in that thread with@Preloop FOLLOW-UP. Mention the bot each time. The member who started the thread can continue it. Sendstatusorendin the same context. A one-shot flow returns its result and ends. - Plain DM text with no active conversation goes to the account assistant.
To address an existing managed-agent session explicitly, use
message AGENT_ID SESSION_ID TEXT. Your Preloop permissions apply.
Troubleshooting¶
| Symptom | What to check |
|---|---|
| Add to Slack is missing | Use the manifest path, or ask the operator to configure the centrally managed app. |
| Slack cannot verify a URL | Check public HTTPS, DNS and ingress routing to the displayed callback. Use the same URL for events and interactivity. Verify again after entering the signing secret. |
| Discovery reports TLS, DNS, a timeout or a refused token | For TLS, check the API host’s trusted certificate authorities. Check DNS and outbound HTTPS for connection errors. For a refused token, complete installation and copy the Bot User OAuth Token from OAuth & Permissions. |
| A message arrives but buttons do nothing | Check Interactivity, the signing secret, and the API host clock. Refresh the app manifest and reinstall when adding scopes. |
| Test message succeeds but test approval or chat is silent | Check Worker ready, Provider event received and Your account is linked. Start the chat worker and check its delivery history. |
| Channel is missing or delivery is refused | Invite the app to the channel. Refresh the channel list or enter the ID from About. Reinstall older apps with the current scopes. |
| A click is refused | Link the correct accounts, check workflow voters and quorum, then open the request in Preloop for its live status and account authentication requirements. |
| No flow responds | DM help. Check the alias, enabled state, and the sender’s flow permissions. In channels, mention the bot in the original thread. |
| Only a Review link appears | The workflow uses an incoming webhook. For buttons, connect the bot and select its Slack destination. |
Outgoing webhook only¶
Open the incoming-webhook manifest link in the workflow form and choose your workspace. For manual setup, open Incoming Webhooks in the Slack app settings and turn on Activate Incoming Webhooks. Open Incoming Webhooks → Add New Webhook to Workspace, pick the channel and allow the install. The Review button opens the live request. The webhook message stays as sent. In the workflow select Other / webhook · Slack incoming webhook, paste the URL, select Send test message, then save. Treat the URL as a secret. Slack incoming webhooks
Operator configuration¶
Set PRELOOP_URL to the canonical HTTPS origin. Apply migrations and configure
the same database, JWT secret, and credential encryption key on the API and
chat worker. For Compose, start the stack with docker compose --profile chat up -d
(use the same Compose files as the rest of the installation). In Helm enable
chatWorker.enabled and set environment.preloopUrl.
For a centrally managed Slack app, use the manifest’s events, scopes and
interactivity with both request URLs set to
https://preloop.example.com/api/v1/chat/slack/events. Register the OAuth
redirect https://preloop.example.com/api/v1/chat/setup/slack/callback.
Replace the example origin throughout. In Compose set
CHAT_SLACK_OAUTH_ENABLED=true, CHAT_SLACK_CLIENT_ID,
CHAT_SLACK_CLIENT_SECRET, CHAT_SLACK_SIGNING_SECRET and
CHAT_SLACK_REDIRECT_URI. In Helm set slackOAuth.enabled: true and
slackOAuth.existingSecret to a Kubernetes Secret with the client ID, client
secret and signing secret under those environment variable names. The chart
derives the redirect from the public origin. The worker also needs the client
credentials for rotating installations. Manual apps use the per-connection URLs
in the setup wizard and require no centrally configured credentials.
The managed app also subscribes to the app_uninstalled and tokens_revoked
bot events. When a workspace removes the app, Preloop disables the connection
that owned it, so the workspace can be connected to another Preloop account. If
that notice was missed, a new installation releases the workspace only after
Slack confirms the old connection's token is revoked. While the old token still
works, the new Finish is refused until the workspace is disconnected in the
account that owns it.
If you created the managed app before this release, add the app_uninstalled
and tokens_revoked bot events under Event Subscriptions in the Slack app
settings. Only newly generated manifests include them.