Step 1: Create a Slack App
- Go to api.slack.com/apps and sign in to your Slack account.
- Click Create New App → From scratch.
- Give your app a name (this becomes the bot’s display name in Slack) and select the workspace where you want to deploy it.
- Click Create App.
Step 2: Add Bot Scopes and Install the App
Your bot needs permission to read and send messages in channels, direct messages, and private channels.- In your app settings, go to OAuth & Permissions.
- Under Scopes → Bot Token Scopes, add all of the following:
chat:write— to post messages.channels:history— to read messages in public channels.im:history— to read direct messages.groups:history— to read messages in private channels.
- Scroll to the top of the OAuth & Permissions page and click Install to Workspace, then approve the requested permissions.
- Copy the Bot User OAuth Token that appears — it starts with
xoxb-.
Step 3: Get Your Signing Secret
- In your app settings, go to Basic Information.
- Under App Credentials, copy the Signing Secret.
Step 4: Connect to BotSmith
1
Open the Integrations tab
In the BotSmith chatbot editor, click the Integrations tab.
2
Open Slack configuration
Find the Slack card and click Setup.
3
Enter your Slack credentials
Fill in the following fields:
- Bot Token — Paste the
xoxb-token from OAuth & Permissions. - Workspace URL (optional) — Your Slack workspace URL (for example,
https://yourcompany.slack.com). - Signing Secret (optional) — Paste the signing secret from Basic Information.
4
Save the integration
Click Save Integration. The integration panel displays your unique Slack Webhook URL — copy it for the next step.
5
Enable the integration
Toggle Enable Integration on.
Step 5: Set Up Event Subscriptions
Event subscriptions tell Slack to forward messages to BotSmith when someone posts in a channel where the bot is present.- In your Slack app settings, go to Event Subscriptions.
- Toggle Enable Events to on.
- In the Request URL field, paste the BotSmith Slack webhook URL from the integration panel. Slack sends a verification request; BotSmith confirms it automatically.
- Under Subscribe to Bot Events, click Add Bot User Event and add:
message.channels— messages in public channels.message.im— direct messages to the bot.message.groups— messages in private channels.
- Click Save Changes.
- If Slack prompts you to reinstall the app, click Reinstall your app and approve the permissions again.
Step 6: Invite the Bot to a Channel
Your bot only responds in channels it has been invited to.- Open the Slack channel where you want the agent to be active.
- Type
/invite @YourBotNameand press Enter (replaceYourBotNamewith your app’s bot username). - The bot joins the channel and begins responding to every message posted there.