← Blog/Agents
A teammate in Slack that posts for you
Let an AI agent post release notes, a morning summary and direct messages to the right person in Slack, with switches that stay off until you turn them on.
Most Slack bots wait to be asked. That is the right default: a bot that talks when nobody asked it to is noise. But a lot of useful team communication is exactly the kind nobody asks for in the moment. Release notes that support needs before customers notice the change. A morning summary of what broke overnight. A direct message to the one person whose code a failing check is about.
These messages get skipped not because they are hard to write, but because writing them is nobody's job. An AI agent that already knows your code, and is allowed to post, can make it its job.
From answering to posting
A Mercur agent connected to Slack starts out answering only: people mention it, it replies in the thread. Two switches on the agent's Slack tab let it do more, and both are off until you turn them on:
- Automations may write to Slack: runs started by a schedule, a webhook or Run now may post.
- Chats may write to Slack: conversations, in the console or in Slack, may post.
With a switch on, the agent can look up a person or a channel, send a direct message, and post in a channel the bot has been invited to. It cannot post as a person: every message comes from the bot, so everyone can see it was the agent. And every message it sends is recorded in the run's history, with its text, so you can always find out why something was posted.
Most teams start with automations only: the agent posts on a schedule you control, while a chat in a busy channel cannot make it message people.
Three things it can post for you
Release notes, every Friday
Create a Schedule automation for Fridays at 15:00, read-only, on your main repository:
List the pull requests merged into main since last Friday. Write release notes for the support and sales teams: what changed for customers, grouped by area, in plain words, without internal ticket numbers. Leave out refactors and test-only changes. Post them in #releases.
Support sees what shipped before the first customer asks, and the developers did not write a word of it. If a week had nothing customer-facing, the prompt can say to post "No customer-facing changes this week" instead.
A morning summary of what is waiting
If the agent already works at night, such as build triage or dependency updates, its results are branches in your repositories. A second schedule, at 9:00 on weekdays, can tell the team about them:
Look at the branches starting with mercur/ that were updated since yesterday morning in the web and API repositories. Post a short summary in #dev: one line per branch with what it changes, so the team knows what is waiting for review.
The team starts the day with one message instead of going through the repositories.
A direct message to the right person
The most useful message is often the most targeted one. Combine it with a webhook automation that investigates failures:
A scheduled data export failed; the body has the error. Find the cause. Then find who last changed the code involved, look them up in Slack, and send them a direct message with the cause and the files. If you cannot find the person, post in #dev instead.
Nobody has to notice the failure, figure out whose it is and forward it. The person who can fix it hears about it first, with the diagnosis attached.
Staying in control
Letting an agent post deserves the same care as letting a colleague post on the team's behalf:
- Both switches start off, per bot. Turn on only the kind of run you need.
- It only posts where the bot is. Invite the bot to the channels it should use. A channel set to Off in the bot's channel exceptions is closed to it.
- Turning a switch off takes effect at once, even for a run already going.
- The bot is your own Slack app, created in your Slack workspace with the name and icon you choose. Uninstalling it in Slack cuts it off.
- Everything is on the record. Each message appears in the run's history with what it said and where it went.
Set it up
- Create the agent and give it your repositories: AI agents on your own machine.
- Connect a Slack bot and turn on the switch you need: Put an agent in Slack.
- Create the schedule or webhook automations: Agent automations.
Open Agents