Guardrails and approvals

Approvals in Slack

Approve or reject what your agents want to do without leaving Slack.

When a call needs a person, Tracehold posts it to a Slack channel: what the agent wants to do, where, its arguments (up to eight, secret-looking values masked), and Approve, Reject and Open in Tracehold buttons. When the request is decided (in Slack or in Tracehold), the message shows who, and the buttons go away; on a rule that needs two people they stay, showing "1 of 2 approvals so far", until the second person approves.

Connect#

Open Settings → Integrations. You need to be able to create apps in your Slack workspace, and the Owner or Admin role in Tracehold.

  1. Create the Tracehold app in Slack

    Click Create app in Slack. Slack opens with the app filled in: pick your workspace, click Next, then Create. You land on the app's Basic Information page; keep that tab open.

  2. Install it to your workspace

    In the app's left sidebar, click Install App, then Install to your workspace and Allow. The bot token only exists after this. If the button says Request to Install, a Slack admin approves the app first.

  3. Copy two values into Tracehold

    Field in TraceholdWhere in SlackLooks like
    Bot User OAuth TokenOAuth & Permissions → OAuth Tokens → Bot User OAuth Token → Copystarts with xoxb-
    Signing SecretBasic Information → App Credentials → Signing Secret → Show → Copy32 letters and digits

    Pick a channel that already exists, such as #approvals: the app can post to any public channel but cannot create one. For a private channel, type /invite @Tracehold in it first. Then click Test and connect. Tracehold posts a hello to the channel and saves the connection only if that works. Both values are stored encrypted. The page tells you at once if a value is the wrong kind (an xapp- app-level token, a user token, or the two swapped).

Who can decide#

A click counts only if it comes signed with your app's signing secret (and is less than five minutes old), and the person's Slack email belongs to an active person in your Tracehold organization who may decide in the app: an Owner or Admin, or the person an agent signed in as, for their own agent's calls, as far as your organization allows. The same rules apply as in the app: two-person rules need two different people, none of them the person the agent acted for, and an expired request cannot be approved. Anyone else sees a private message saying nothing was decided.

Where clicks go#

Slack sends button clicks to https://api.tracehold.ai/api/v1/slack/interactions/<organization id>. The app Tracehold creates for you already points there (its Interactivity setting).

What the app can do#

Its bot scopes are chat:write, chat:write.public (post to public channels without being invited), users:read and users:read.email (match the person who clicked to a Tracehold account). It cannot read messages.