Slack app example from 📚 Getting started with Bolt for JavaScript tutorial
This is a Slack app built with the Bolt for JavaScript framework that showcases responding to events and interactive buttons.
Install the Slack MCP and Skills Plugin so your coding agent can create, run, and deploy Slack apps, look up Web API methods and scopes, and build Block Kit without guessing.
.github/workflows/agent-skills.yml checks daily for updates to the agent skills in skills-lock.json and opens a pull request when they change. To let it open pull requests in your own repository, turn on Allow GitHub Actions to create and approve pull requests in Settings > Actions > General.
Run this in a Claude Code session:
/plugin marketplace add slackapi/slack-skills-plugin
/plugin install slack@slack
Enable auto-updates: /plugin > Marketplaces > slack > Enable auto-update.
Run this in your terminal:
codex plugin marketplace add slackapi/slack-skills-plugin
codex plugin add slack@slackRun this in a Cursor Agent chat:
/add-plugin slack
Install the skills with npx skills, using your agent's identifier:
npx skills add slackapi/slack-skills-plugin -y -a <agent>
# For example, OpenCode
npx skills add slackapi/slack-skills-plugin -y -a opencode- Go to https://api.slack.com/apps
- Click Create App
- Choose a workspace
- Enter App Manifest using contents of
manifest.json - Click Create
Once the app is created click Install to Workspace Then scroll down in Basic Info and click Generate Token and Scopes with both scopes
# Replace with your bot and app token
export SLACK_BOT_TOKEN=<your-bot-token> # from the OAuth section
export SLACK_APP_TOKEN=<your-app-level-token> # from the Basic Info App Token Section# Clone this project onto your machine
git clone https://github.com/slack-samples/bolt-js-getting-started-app.git
# Change into the project
cd bolt-js-getting-started-app/
# Install the dependencies
npm installnpm run startGo to the installed workspace and type "hello" in a DM to your new bot. You can also type "hello" in a channel where the bot is present.
Found a bug or have a question about this project? We'd love to hear from you!
- Browse to slackapi/bolt-js/issues
- Create a new issue
- Select the
[x] examplescategory
See you there and thanks for helping to improve Bolt for everyone!