Slack bots2 minutes to read

Why is my Slack Socket Mode bot missing app mentions?

Check the two Slack tokens, app_mention subscription and channel permissions for a Bolt for JavaScript or Python bot running in Socket Mode.

Check which credential failed

Choose the Node.js or Python Socket Mode worker for your Slack bot. Both receive Slack events over an outbound WebSocket connection.

The app-level token opens that connection. It starts with xapp- and needs connections:write. The bot token starts with xoxb- and comes from the app installation in the workspace you are testing. Save them under SLACK_APP_TOKEN and SLACK_BOT_TOKEN and restart after changes.

If the process exits before connecting, inspect Console for a missing package or an authentication error. Verify both tokens and the matching app in the Socket Mode setup guide.

Check whether the app received the mention

With the socket connected, enable Event Subscriptions and add app_mention under bot events. Grant app_mentions:read and reinstall the app if you changed its scopes. Invite it to a test channel and select it from Slack’s mention picker. Add a temporary log line inside the handler with the event type, keeping workspace content and tokens out of logs.

If you have a local copy running on the same app, stop it while testing. Slack can distribute payloads across its open connections. Slack’s Socket Mode connection behavior.

Check permission to post the threaded reply

If the handler runs and posting fails, confirm the installed bot has chat:write and is a member of that channel. Reinstall the app after changing scopes. The Node.js and Python starters reply with “Your Slack bot is running.” Open the thread under your mention to see it. Slack’s app_mention event reference.