DocumentationAgent Action Firewall

Discord Integration

Manage AI agent approvals directly from your Discord server.

Features

  • Approval notifications with interactive buttons
  • Role-based approval permissions
  • Threaded discussions for team decisions
  • Slash commands for quick actions

Setup

1. Add the Bot

  1. Go to Settings > Integrations in the dashboard
  2. Click "Add to Discord"
  3. Select your server and authorize

2. Configure Channels

Set up which channels receive notifications:

JSON
{
  "channels": {
    "approvals": "1234567890123456789",
    "alerts": "1234567890123456790"
  },
  "roles": {
    "approvers": "1234567890123456791"
  }
}

3. Set Permissions

Configure which Discord roles can approve actions:

  • @Admins - Can approve all actions
  • @Security - Can approve security-related actions
  • @Developers - Can approve dev environment actions

Slash Commands

TEXT
/firewall pending    - List pending approvals
/firewall approve    - Approve an action
/firewall deny       - Deny an action
/firewall details    - View action details
/firewall status     - Check integration status

Approval Messages

When an action requires approval, an embed message is posted:

TEXT
šŸ”” Approval Required
━━━━━━━━━━━━━━━━━━━━

Agent: customer-service-agent
Tool: http_proxy → POST

šŸ“ Target: api.company.com/customers
āš ļø Risk: Medium

[Approve] [Deny] [Details]

Configuration

OptionDescription
mention_roleRole to mention for new approvals
use_threadsCreate threads for discussions
auto_deleteDelete resolved approval messages
dm_approversDM assigned approvers directly

Troubleshooting

  • Ensure the bot has "Send Messages" and "Use Slash Commands" permissions
  • Check that the bot can see the configured channels
  • Verify your user has the approver role

Next Steps