Prerequisites
- A Slack app with Socket Mode enabled
- An App-Level Token (
xapp-...) withconnections:writescope - A Bot Token (
xoxb-...) with these scopes:chat:write,channels:history,channels:read,users:read,app_mentions:read
Configuration
In~/.meepagateway/agents/<id>/agent.yaml:
Slack Bot User OAuth Token (starts with
xoxb-).Slack App-Level Token with
connections:write scope (starts with xapp-).Behavior
- The bot calls
auth.teston connect to learn its own user ID and filter self-messages - Usernames are resolved from Slack user IDs via
users.infoand cached in memory - Responds to both regular messages and
app_mentionevents - Long responses are chunked at Slack’s 4000-character limit
- Rate limits are handled automatically
