Approve and Deny buttons in the same thread.
Before you start
Slack must be able to reach your Tracecat API atTRACECAT__PUBLIC_API_URL.
Connect a Slack app
- Open the preset from
Agents, then select theChannelstab. - Under
Custom Slack App, clickConnect. - Choose
New Appto create an app from a pre-filled manifest, orExisting Appto connect a Slack app you already have.
New App:
- Click
Copynext toExport app manifest. The manifest includes the endpoint URL, OAuth redirect URL, bot scopes, andapp_mentionevent subscription for this preset. - Open Slack Apps, click
Create New App, then selectFrom an app manifestand paste the manifest. - Install the app to your Slack workspace.
- Back in Tracecat, click
Next.
Existing App, copy the Endpoint URL and OAuth redirect URL from the connect dialog.
In Slack, use the endpoint URL as the Event Subscriptions request URL with the app_mention bot event and as the Interactivity request URL, then add the OAuth redirect URL.
To finish:
- Enter the app’s
Client ID,Client secret, andSigning secretfrom Slack’sBasic Informationpage. - Click
Connect to Slackand approve the install.
Slack integration connected. when the channel is active.
Chat with the agent
Invite the app to a Slack channel, then mention it with your request. The agent replies in the thread, and replies that mention it in the same thread continue the same agent session. Reactions on your message show whether the agent is working, finished, or failed.Approve tool calls in Slack
Tools that require approval on the preset pause the agent in Slack too. See Human-in-the-loop to set approval rules. For each pending call, the agent posts anApproval required message with the tool name, arguments, and Approve and Deny buttons.
After a reviewer clicks a button, Tracecat updates the message with the decision and the reviewer, and the agent continues once every pending call in the batch has a decision.
To edit tool arguments before approving, review the call in the agent inbox instead.
Manage the connection
Open the connect dialog again from theChannels tab to update credentials.
Click Rotate endpoint to issue a new endpoint URL, then update the Slack app’s Event Subscriptions and Interactivity request URLs.
Click Disconnect to remove the Slack connection from the preset.
Changing TRACECAT__SIGNING_SECRET invalidates existing endpoint URLs.
Related pages
- See AI preset agent to create the preset that Slack users talk to.
- See Human-in-the-loop to choose which tool calls need approval.