Skip to content

About

Getting Started Slack app using ⚡️ Bolt for JavaScript

Resources

Code of conduct

Contributing

Security policy

Stars

76 stars

Watchers

6 watching

Forks

Repository files navigation

Getting Started ⚡️ Bolt for JavaScript

Slack app example from 📚 Getting started with Bolt for JavaScript tutorial

Overview

This is a Slack app built with the Bolt for JavaScript framework that showcases responding to events and interactive buttons.

Claude Code, Codex, Cursor, and Other Coding Agents

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.

Claude Code

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.

Codex

Run this in your terminal:

codex plugin marketplace add slackapi/slack-skills-plugin
codex plugin add slack@slack

Cursor

Run this in a Cursor Agent chat:

/add-plugin slack

Other agents

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

Running locally

0. Create a new Slack App

  • 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

1. Setup environment variables

# 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

2. Setup your local project

# 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 install

3. Start servers

npm run start

4. Test

Go 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.

Contributing

Issues and questions

Found a bug or have a question about this project? We'd love to hear from you!

  1. Browse to slackapi/bolt-js/issues
  2. Create a new issue
  3. Select the [x] examples category

See you there and thanks for helping to improve Bolt for everyone!

About

Getting Started Slack app using ⚡️ Bolt for JavaScript

Resources

Code of conduct

Contributing

Security policy

Stars

76 stars

Watchers

6 watching

Forks

Releases

Used by

Contributors

Languages