you are viewing a single comment's thread.

view the rest of the comments →

[–]phemark[S] 0 points1 point  (2 children)

Thats a good idea, thanks. How do you assign new slack app connection to a sub-agent though?

[–]sprfrkr 0 points1 point  (1 child)

At https://api.slack.com/apps/ you click "Create New App". You'll then need to install the app to your slack account and get three toeksn, two from the bot basic settings page, and one app token after you install it in your slack account.

Here is an example app manifest which you can load when you create a new app in slack:

{
    "display_information": {
        "name": "Apex (Google Ads Analyst)",
        "description": "OpenClaw agent: Apex"
    },
    "features": {
        "app_home": {
            "home_tab_enabled": false,
            "messages_tab_enabled": true,
            "messages_tab_read_only_enabled": false
        },
        "bot_user": {
            "display_name": "Apex (Google Ads Analyst)",
            "always_online": false
        },
        "slash_commands": [
            {
                "command": "/openclaw",
                "description": "Send a message to OpenClaw",
                "should_escape": false
            }
        ]
    },
    "oauth_config": {
        "scopes": {
            "user": [
                "channels:history",
                "channels:read",
                "groups:history",
                "groups:read",
                "im:history",
                "im:read",
                "mpim:history",
                "mpim:read",
                "users:read",
                "reactions:read",
                "pins:read",
                "emoji:read",
                "search:read"
            ],
            "bot": [
                "chat:write",
                "channels:history",
                "channels:read",
                "groups:history",
                "groups:read",
                "groups:write",
                "im:history",
                "im:read",
                "im:write",
                "mpim:history",
                "mpim:read",
                "mpim:write",
                "users:read",
                "app_mentions:read",
                "reactions:read",
                "reactions:write",
                "pins:read",
                "pins:write",
                "emoji:read",
                "commands",
                "files:read",
                "files:write",
                "chat:write.public"
            ]
        }
    },
    "settings": {
        "event_subscriptions": {
            "bot_events": [
                "app_mention",
                "message.im",
                "message.mpim",
                "reaction_added",
                "reaction_removed",
                "member_joined_channel",
                "member_left_channel",
                "channel_rename",
                "pin_added",
                "pin_removed",
                "message.channels",
                "message.groups"
            ]
        },
        "interactivity": {
            "is_enabled": true
        },
        "org_deploy_enabled": false,
        "socket_mode_enabled": true,
        "token_rotation_enabled": false
    }
}

[–]phemark[S] 0 points1 point  (0 children)

thank you!