LightVela

Slack

Connect Slack to your Hermes Agent with a Slack Bot Token and App Token.

Configure Channel - Slack

Slack uses a Bot Token and an App Token to connect Hermes Agent to team channels, direct messages, and automated task notifications.

This page covers

  • Creating a Slack app and configuring Socket Mode, permissions, and events

  • Binding the Slack Bot Token and App Token in LightVela

  • Chatting with Hermes Agent through Slack channels and direct messages


Steps

1. Open the Slack channel settings in LightVela

Sign in to the LightVela international site, open My Hermes → Channel, find the Slack card, and click + Connect. You will return with two credentials:

  • Slack Bot Token: starts with xoxb-.
  • Slack App Token: starts with xapp-.

2. Create a Slack app

  1. Open Slack API Apps and sign in.
  2. Click Create New App.

Create a new app from Slack API Apps

  1. Select From scratch.

Select From scratch to create the Slack app

  1. Enter an app name such as Hermes Agent.
  2. Select the workspace where Hermes Agent should run, then click Create App.

Name the Slack app and select a workspace

If the workspace is missing, verify that the current Slack account belongs to it and can create apps.

3. Create the App Token

The App Token establishes the Socket Mode WebSocket connection. It must include the connections:write scope.

  1. In the Slack app sidebar, open Settings → Basic Information.

Open Basic Information in the Slack app

  1. Scroll to App-Level Tokens and click Generate Token and Scopes.

Generate an app-level token

  1. Enter a recognizable token name, such as HermesSocket.
  2. Click Add Scope.

Add a scope to the App Token

  1. Search for and select connections:write.

Select the connections write scope

  1. Confirm the scope is listed, then click Generate.

Generate the App Token with connections write

  1. Copy the generated xapp-... token and store it securely. Click Done after copying it.

Copy the Slack App Token

Do not paste the App Token into the Bot Token field. A Client Secret or Signing Secret is not a replacement for this token.

4. Configure Socket Mode, permissions, and events

4.1 Enable Socket Mode

  1. Open Settings → Socket Mode.
  2. Turn on Enable Socket Mode.

Enable Slack Socket Mode

Socket Mode sends Slack events to Hermes Agent over WebSocket. This setup does not require an Event Subscriptions Request URL or an OAuth Redirect URL.

4.2 Add Bot Token Scopes

  1. Open Features → OAuth & Permissions.
  2. Scroll to Scopes → Bot Token Scopes.
  3. Click Add an OAuth Scope.

Add a bot scope in OAuth and Permissions

Add scopes for the interaction modes you need:

ScopeRequired forPurpose
app_mentions:readChannel useReceive messages that mention the bot
channels:readPublic channelsRead basic public-channel information
channels:historyPublic channelsRead messages in public channels the bot has joined
chat:writeAll repliesSend messages as the bot
im:readDirect messagesRead direct-message conversation information
im:historyDirect messagesRead direct messages sent to the bot
im:writeDirect messagesOpen or manage direct-message conversations
groups:readOptional private channelsRead private-channel information
groups:historyOptional private channelsRead messages in private channels the bot has joined

Review the Slack Bot Token Scopes

Only add the two groups:* scopes when private-channel access is required. The app must still be invited to each target channel.

4.3 Enable direct messages in App Home

If users should be able to message Hermes Agent directly:

  1. Open Features → App Home.
  2. Scroll to Show Tabs.
  3. Enable Messages Tab.
  4. Enable the option that allows users to send messages from the Messages tab.

If you only use channel mentions, you can skip this section and omit the im:* scopes and message.im event.

4.4 Subscribe to bot events

  1. Open Features → Event Subscriptions.
  2. Turn on Enable Events.
  3. Under Subscribe to bot events, click Add Bot User Event.
  4. Add app_mention for channel mentions.
  5. Add message.im if direct messages are enabled.
  6. Click Save Changes.

Configure Slack bot event subscriptions

If you change scopes or events after installation, return to OAuth & Permissions and click Reinstall to Workspace. New permissions do not take effect until the app is reinstalled.

5. Install the app and copy the Bot Token

  1. Return to Features → OAuth & Permissions.
  2. Click Install to Workspace. If the app is already installed, click Reinstall to Workspace.

Install the Slack app to the workspace

  1. Review the requested permissions and click Allow.

Authorize the Slack app permissions

  1. After Slack returns to OAuth & Permissions, find OAuth Tokens for Your Workspace.
  2. Copy the Bot User OAuth Token that starts with xoxb-.

Copy the Slack Bot User OAuth Token

Do not use a Signing Secret, Client Secret, Verification Token, or an xoxp-... User OAuth Token. LightVela requires one xapp-... App Token and one xoxb-... Bot Token.

6. Bind Slack in LightVela

  1. Return to My Hermes → Channel → Slack.
  2. Paste the xoxb-... token into Slack Bot Token.
  3. Paste the xapp-... token into Slack App Token.
  4. Confirm that the tokens are in the correct fields, then submit the connection.
  5. Wait for the Slack card to show as connected.

7. Test Hermes Agent in Slack

7.1 Test a channel mention

  1. Open the Slack channel where you want to use Hermes Agent.
  2. Invite the app:
/invite @Hermes Agent
  1. Send a message that mentions the bot:
@Hermes Agent Summarize the key points discussed in this channel today.

The bot only receives channel messages after it has joined that channel.

7.2 Test a direct message

  1. Open the new app from the Apps section in Slack.
  2. Select the Messages tab.
  3. Send a short message such as Hello.

Test a direct message in Slack App Home


Success state

The setup is complete when all applicable checks pass:

  • The Slack card in LightVela shows as connected.
  • The Slack app is installed in the target workspace.
  • Hermes Agent replies to a mention in a channel the app has joined.
  • When App Home and IM permissions are enabled, Hermes Agent replies to a direct message.

Supported message types

After Slack is connected, the channel supports these messaging scenarios:

Slack message typeSupported
Receive text mentions in channels✅ Supported
Receive direct-message text in App Home✅ Supported
Reply with text in channels and direct messages✅ Supported
Send proactive messages, such as automated task notifications✅ Supported

FAQ

IssuePossible causeResolution
App Token is rejectedWrong token type or missing connections:writeGenerate a new xapp-... token under Basic Information → App-Level Tokens
Bot Token is rejectedA User OAuth Token or another credential was copiedCopy the xoxb-... Bot User OAuth Token from OAuth & Permissions
Event Subscriptions asks for a Request URLSocket Mode is disabledEnable Settings → Socket Mode, then return to Event Subscriptions
Channel mentions are not receivedApp is not in the channel, scopes are missing, or app_mention is absentInvite the app, add channel scopes and app_mention, then reinstall the app
Direct messages are not receivedMessages Tab is disabled, IM scopes are missing, or message.im is absentEnable Messages Tab, add im:* and message.im, then reinstall the app
New permissions do not workApp was not reinstalled after a changeClick Reinstall to Workspace under OAuth & Permissions
The channel is connected but there is no replyModel unavailable, insufficient credits, or Agent status issueCheck Configure Models, instance status, and available credits

Next steps