Slack app
Loma reaches your team in Slack via Socket Mode — no public webhook URL required. Once installed, the agent answers direct messages, channel mentions, and thread replies.
Setup
- Create a Slack app at api.slack.com/apps.
- Enable Socket Mode.
- Create an app-level token with the
connections:writescope and set it asSLACK_APP_TOKEN. - Add these bot token scopes:
app_mentions:readchat:writechannels:historychannels:readgroups:historyim:historyim:readim:writefiles:readreactions:readreactions:writeusers:readusers:read.email
- Subscribe to these bot events:
app_mentionmessage.immessage.channels(needed for Slack-triggered flows in public channels)message.groups(needed for Slack-triggered flows in private channels)
- Install the app to your workspace and set the bot token as
SLACK_BOT_TOKEN. - Invite the bot to any channels where it should respond to mentions.
Troubleshooting
- DMs don’t get a response — confirm
message.imis subscribed and the bot token hasim:write. - New scopes don’t take effect — Slack only applies OAuth scope changes after you reinstall the app to the workspace. Updating the scope list without reinstalling leaves the running token under-scoped.