Slack bots & approvals

Slack Approval Buttons for AI Bots: Nothing Ships Without a Click

A one-card Slack approval flow that lets a non-developer team run AI bots that send emails and statements: the Block Kit shape and three mistakes it caught.

· by OI

The most important component in my bot stack isn’t the model. It isn’t the prompt. It’s a Slack message with two buttons on it, and one of the buttons says Cancel.

Slack approval buttons for AI bots: one click

The bot announces ten delivery fees; a human presses Cancel

Our bots email monthly statements to customers, answer “how much did we spend in May?” from customers, and hand out referral rewards. Every one of those actions passes through the same gate: the bot prepares the thing, posts a card in Slack, and then does absolutely nothing until a human clicks Approve. It’s the world’s most patient intern.

Here’s the card, why it’s shaped the way it is, and three times it saved us from ourselves.

The flow, in one picture

The approval gate: trigger, bot prepares, card posted, human clicks, email sent

  1. A trigger arrives. Someone types /statement-bot <company> <month>, or a customer asks something in our support chat.
  2. The bot does the expensive part: queries the dashboards, builds the spreadsheet, works out the number.
  3. The bot posts a card: what it’s about to do, to whom, the attachment, and two buttons.
  4. A human reads it and clicks Approve or Cancel.
  5. Only on Approve does the email leave the building.

The bot’s log is full of lines like this:

Real bot.log lines showing approve and cancel clicks

Those cancels are the whole point. Each one is a moment where the bot was confidently, cheerfully wrong and a human spent two seconds stopping it. I’d frame them if they weren’t log lines.

What the channel actually looks like

This is what the channel looks like, redrawn with made-up names. The bot spots a request in our support chat and posts a detection card: customer role, company, period, chat id, and the customer’s own words. The approval card with the buttons lives in the thread underneath, which is why each one shows “3 replies”. (I used to show the real screenshot here, blurred. I’ve since replaced it with a mock-up so nothing in it can identify the company. The layout and fields are exact.)

Two detection cards posted by the bot, each with a thread holding the approval card (mock-up with example data)

The card, concretely

Block Kit is verbose in the way that only JSON can be, so here’s the shape rather than the whole thing:

Here are two of them as Slack actually renders them. This is a test workspace with invented companies and numbers, but the block layout is copied from the production code: a headline, label/value lines, then Approve and Cancel.

Two statement approval cards in a real Slack client: a test workspace with invented data, same block layout as production

The second card is the one from story 1 below, re-enacted: three orders and a total three times what that customer usually spends. Its thread holds one line, Cancelled by OI. Nothing was sent.

The approval card as Block Kit, abbreviated

Three design rules are hiding in there:

  • The card shows the numbers a human needs to sanity-check, not the data. Order count, total, number of return rows. If the total looks weird, you cancel. You don’t open the spreadsheet. If you have to open the spreadsheet, the card has failed.
  • The recipient is on the card. The single scariest bot mistake is sending the right document to the wrong company. The email address is the first thing your eye lands on, on purpose.
  • The job id rides in the button’s value. When the click comes back, the bot looks the job up by id. Nothing, ever, is parsed out of the human-readable text. The text is for humans. Humans edit text.

Who clicks, and who gets paged

The approver is whoever owns that customer. What is not on the card matters as much: the cc to our support mailbox is fixed in code, not a checkbox (the statement post explains why), and the bot’s own errors never appear in this channel. They go to one person’s DM. An approval channel that also carries stack traces stops getting read.

Three things the button caught

1. The shipping fee that multiplied. The total on a statement card was visibly too high for a small customer. The owner clicked Cancel, and the cause turned out to be a delivery fee added once per line instead of once per order. Nobody had noticed it in the file; the card’s single total made it obvious in seconds.

2. The “which store?” problem. A customer asked for their monthly usage and said the name of their brand. The bot found one store. The human knew the brand has several stores under slightly different names, cancelled, and asked. New rule: if a request names only a brand, list every store under it before answering anything.

3. “Last month” on the 1st. Someone asked for “last month” on the first of the month. The bot picked the month that had just ended. The approver meant the one before. Now the card prints the period as actual dates, never as a relative word. Relative words are how calendars start fights.

What the gate has done so far

When the cards pile up

One bot posts a card per pending referral reward, and in October the queue outgrew the channel. After 20, new cards now go into a thread under the first one. The details, including the Slack limit we actually hit, are in Slack’s 50-block limit.

The part that isn’t a button

A gate only works if the thing behind it is boring to approve. Our rule: every card must be judgeable in under ten seconds, by reading it, without opening anything. When a card makes the approver go look at a spreadsheet, the bot isn’t ready, and we go back and put the missing number on the card.

We have never sent a statement to the wrong customer. Not because the model is brilliant. Because a human reads the address every single time, and the button makes that unavoidable.

Next: the Google Sheet all of these bots write to, and what broke when it hit 85% of its cell limit.

One line from me

The most valuable line in the stack is the one that waits for a human. Make the card readable in ten seconds and people will actually read it.

How this hand-built gate compares with Anthropic’s own “asks before sending” agent is in the Claude Duet review.