Slack Setup
Connect your agent to Slack to enable it to respond in your workspace channels and direct messages.
Creating a Slack App
- Go to api.slack.com/apps
- Click Create New App and choose From scratch
- Give your app a name and select your workspace
-
Under OAuth & Permissions, add these Bot Token Scopes:
-
chat:write– Send messages -
app_mentions:read– Respond to mentions -
channels:history– Read channel messages -
im:history– Read direct messages -
im:write– Send direct messages
-
- Install the app to your workspace
-
Copy the Bot User OAuth Token (starts with
xoxb-)
Enabling Events
- In your Slack app settings, go to Event Subscriptions
- Enable events and set the Request URL to your Lenno webhook endpoint
-
Subscribe to these bot events:
-
message.channels– Messages in channels -
message.im– Direct messages -
app_mention– When someone mentions your bot
-
Connecting to Lenno
- Go to your agent’s Channels tab
- Click Add Channel and select Slack
- Paste the Bot User OAuth Token
- Click Save
Tips
-
Invite the bot to channels where you want it to respond using
/invite @botname - The bot responds to direct messages automatically
- Use threads for multi-turn conversations to keep channels clean