Slack Setup

Connect your agent to Slack to enable it to respond in your workspace channels and direct messages.

Creating a Slack App

  1. Go to api.slack.com/apps
  2. Click Create New App and choose From scratch
  3. Give your app a name and select your workspace
  4. 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
  5. Install the app to your workspace
  6. Copy the Bot User OAuth Token (starts with xoxb-)

Enabling Events

  1. In your Slack app settings, go to Event Subscriptions
  2. Enable events and set the Request URL to your Lenno webhook endpoint
  3. Subscribe to these bot events:
    • message.channels – Messages in channels
    • message.im – Direct messages
    • app_mention – When someone mentions your bot

Connecting to Lenno

  1. Go to your agent’s Channels tab
  2. Click Add Channel and select Slack
  3. Paste the Bot User OAuth Token
  4. 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