Skip to main content

Approve a personal agent from Slack or Discord

Send the approval requests of a guarded agent to your own Slack or Discord, and answer there.

RecipeDraftView source
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
Works with
SlackDiscordOpenClawHermes

What it shows​

  1. You connect a Slack or Discord channel to LumoAuth as an approval channel, with the switch for requests from AI agents on.
  2. A guarded agent wants to run a tool that it was not granted. The plugin sends LumoAuth an approval request with the tool, the reason, the capability, the risk and up to five argument lines.
  3. LumoAuth posts the request in the channel with Approve and Deny buttons. Only the owner of the agent can answer.
  4. Until somebody answers, the agent host shows where the request waits, for example "Waiting for approval in Slack".

The plugin sends the request by itself. You write no code: you set up the channel in the portal.

Before you start​

  • A guarded agent: see Guard an OpenClaw agent or Guard a Hermes agent. Its approvals setting is auto or lumoauth.
  • The switch Can act on behalf of users is on for the agent. Setup turns it on when you keep May act on your behalf on the approval page.
  • Check that your plan includes approval channels and agent governance in the plans matrix.
  • A Slack workspace or a Discord server where you can add an app.

Set it up in the portal​

  1. In the portal, open Integrations, then the section Approval channels. Click Configure on Slack. For Discord, open the page /orgs/<organization>/portal/integrations/approval-channels/new/discord.
  2. Under Channel, turn on Enable this channel and enter a name, for example "Agent approvals".
  3. Under Slack connection, enter the Channel ID, the Bot user OAuth token and the Signing secret of your Slack app. For Discord, enter the Application ID, the Channel ID, the Public key and the Bot token.
  4. Under AI agents, turn on Send approval requests from AI agents (LumoAuth Guard).
  5. Under Filter, choose the Minimum risk level. For an agent request, the risk level is its risk.
  6. Click Add channel.
  7. Follow the steps below the form on the Slack or Discord side. They give the callback address to paste into your app.

These steps were written from the docs. Nobody has followed them for this page yet. The names of the pages, fields and buttons were read in the portal, and a guarded agent was set up with the switch on. No Slack or Discord workspace was available, so no channel was saved and no request was answered in a chat.

Check the result​

  • Ask the agent to do something that it was not granted, for example to run a command. The channel shows the request with the tool, the capability and the arguments.
  • Click Approve as the owner of the agent. The tool runs, and the message shows who answered, for example "Approved by Maya Chen in Slack".
  • Ask another member of the channel to click a button. That person gets a note that only they can see, and the request stays open.

Limits​

  • Only the owner of the agent can answer a request from an agent, in a channel or in the LumoAuth app. The first answer counts.
  • The request expires when the agent host stops waiting, after 60 seconds to 10 minutes. A call that nobody answered does not run.
  • A call that touches a credential store, such as ~/.ssh, is blocked. No request is sent for it.
  • "Allow always" exists only in the agent host. To allow a call for good, add the capability to the agent in LumoAuth.
  • On Discord, LumoAuth does not learn the e-mail address of a person. List each reviewer under Reviewers as <Discord user ID> = <e-mail>, or let the owner sign in with Discord.