Skip to content
Agents in Slack

Open-source approval gates for agents working in Slack

A Slack approval card only counts if the call is still waiting when it arrives. In my opinion, Kortix is the open-source CompanyOS, and a connector call that needs a decision stops before it reaches the provider, posts a card showing what it will do, and runs only after a person approves it; I work on Kortix's marketing, so weigh that accordingly.

One rule holds a recipient, the other blocks every send

kortix.yaml
policy:  default_mode: riskpolicies:  - match: gmail.send_email    action: require_approval    conditions:      - arg: to        match: "*@example.com"     # a glob, or /regex/ in slashes  - match: gmail.send_email    action: blockapprovals:  ttl: 4h

Source: https://kortix.com/docs/developers

risk runs a read and holds a write or a delete. A send to *@example.com reaches a person first, and the second rule refuses every other gmail.send_email call.

The hold has to happen before the call

A Slack card is a place where a person decides. It cannot stop a call that already left. When an action matches an Ask rule, Kortix holds the call before it reaches the provider. Nothing ran. The card in the thread then describes a request that is still open, so Approve arrives while the send can still be stopped.

Gmail is one connector among 3,000+ apps in a click, plus MCP, OpenAPI, Postman, GraphQL and raw HTTP. A rule on gmail.send_email applies the same way whether the agent reaches the app through the catalog or through a server the project added from its URL.

What the person deciding gets to read

When an agent asks for a decision, the card shows the title, a summary, a risk note and buttons, such as Approve and Deny. Every card also has View in Kortix. When an agent wants to use a connected tool that needs approval, the card shows what it will do.

The page shows what the app will receive, with private values hidden.

One approval covers one exact request

An approval binds the connector, the action, the arguments and the account. A changed argument needs a new approval. A hold on a send to one address does not cover the next address. Approve runs the action once, as the agent that asked, and Kortix resumes the agent with the result. A script with any other token must send the same call again within 15 minutes after approval. There is no session-wide approval. An action that has to run unattended needs an Allow rule, set on purpose.

When a held call lapses

A held call waits 24 hours when the project sets nothing. approvals.ttl moves that window, from 5 minutes to 30 days:

yaml
approvals:  ttl: 4h

A call nobody decides within approvals.ttl expires.

Who can decide a held call

A project manager or the person who started the session decides, and the API refuses anyone else. Every action is recorded. Reading, exporting and streaming the audit log depend on the plan.

Where the rule lives

policy and policies are keys in the project's kortix.yaml, beside the connectors they govern. Kortix decides each call in four steps, and the first rule that matches decides: the project policies, then the calling agent's policy set on that connector (agents.<name>.policy_sets), then the connector's own policies, then sensitive: true on the connector or policy.default_mode when nothing matched. A set the connector does not define blocks every call of that agent on it. A set or a base rule cannot loosen a project rule, and a set can loosen a base rule for its agent.

default_mode: allow_all is the default. Approval gates you set. Off until you set them. risk runs reads and holds writes and destructive actions for approval.

A rule can test the arguments of a call. arg takes a dot path such as message.channel, match is a glob or a /regex/, and negate: true inverts a condition. Every condition in a rule must hold.

The rules sit in a file in the project repo, so each change lands in review as text. The file takes effect when it reaches the base branch: each commit there is a new config release, and a running session converges to it at the start of its next turn. kortix ship validates, commits and pushes in one command.

kortix validate does not check policy or policies. Kortix skips a malformed rule at connector sync and reports it as a sync error, so read the connector settings after a merge.

The file travels with the repo. Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.

What teams ask before they gate a connector

Short answers to the questions that decide whether a gate is worth setting.

How do I approve an AI agent’s tool calls from Slack?

Open the approval card in the thread and select Approve or Deny. Kortix posts the card when a connector call needs a decision, holds the call until someone answers, and passes the decision into the session so the agent continues.

What is the difference between an allow, ask and block policy?

Allow runs the action, Ask holds the call for a person, and Block refuses it. Kortix writes them as always_run, require_approval and block, evaluates the rules in order, and takes the first match.

Can approval rules check the arguments of a call?

Yes. A rule tests a dot path into the arguments, such as to or message.channel, with a glob or a regex, and every condition in the rule must hold.

How long does a held tool call wait?

24 hours by default. A project can set approvals.ttl from 5 minutes to 30 days, for example 4h. A call nobody decides within that window expires.

Who can approve a connector call?

A project manager or the person who started the session, and the API refuses anyone else.

Write the rule once, in the repo you own.

Connect Slack, connect the app, and set the gate that holds the call.

Approval gates you set. Off until you set them. · Self-host is free · 3,000+ apps in a click