Templates

Slack ops bot with a human in the loop

An operations bot that answers in Slack threads and asks before it changes anything.

Illustration of the app. Names and values come from this template.

The short answer

Give a Slack ops bot read access on its own, require an Allow click in Slack before any change, and deny actions that should never be automated. In Bello Bot the approval buttons are visible only to the person who asked, and policy rules scoped to the ops bot decide which calls ask.

How to use this template

  1. Connect the Slack app with OAuth so bots answer in your workspace.
  2. Grant the ops bot only the connectors it needs.
  3. Copy the rules and set bot_id to the ops bot.
  4. Test a few calls, save, and tell the channel how approvals work.

The template

Copy it, then replace the values in angle brackets with your own.

[
  { "name": "Ops bot never deletes", "effect": "deny", "priority": 10, "bot_id": "<ops-bot-id>", "tool_glob": "*__delete*" },
  { "name": "Ops bot reads freely", "effect": "allow", "priority": 40, "bot_id": "<ops-bot-id>", "tool_glob": "*__get*" },
  { "name": "Ops bot searches freely", "effect": "allow", "priority": 40, "bot_id": "<ops-bot-id>", "tool_glob": "*__search*" },
  { "name": "Ops bot asks before changes", "effect": "ask", "priority": 100, "bot_id": "<ops-bot-id>", "tool_glob": "*__*", "reason": "Changes need a person in the thread." },
  { "name": "Ask before handing work to other bots", "effect": "ask", "priority": 100, "bot_id": "<ops-bot-id>", "tool_glob": "message_bot" }
]

How the bot behaves in Slack

What always asks

Rules

Related reading

Questions

Who can click Allow on a Slack approval?

The buttons are visible only to the person who asked the bot.

Can the ops bot post as a team member?

Only if that member links a Slack user token, through a session they can revoke in Settings, Sessions.

Keep reading

Try Bello Bot with your team

Public beta. Bring your own model keys, invite your team, and approve what your bots do.