Learn to integrate Bolt.new AI with Slack in 2025 using this easy step-by-step guide to improve workflows, automation, and team productivity.

Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
To integrate Bolt.new with Slack, you don’t connect “Bolt to Slack” directly. Instead, you build a small backend API inside Bolt.new (Node.js/Express is easiest), expose an endpoint for Slack to call (via webhooks or Slash Commands), and call Slack’s Web API using an OAuth token that you store as an environment variable. Slack treats your Bolt.new app like any other web service.
You integrate Slack by creating a Slack app in Slack’s dashboard, enabling either Slash Commands, Event Subscriptions, or Incoming Webhooks, then pointing Slack to an HTTPS endpoint you build inside Bolt.new. Inside your Bolt.new project, you call Slack’s API using a bot token stored in an environment variable. The flow is standard: Slack → your Bolt endpoint → your logic → Slack API. Bolt.new is simply your development environment hosting the backend logic.
This breaks down exactly what you need to do, using only real Slack features and real Bolt.new patterns.
// server.js
import express from "express";
import fetch from "node-fetch";
const app = express();
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
// POST endpoint for Slack Slash Command
app.post("/api/slack/command", async (req, res) => {
const { text, user_name } = req.body;
// Respond immediately to Slack
res.json({
response_type: "ephemeral",
text: `Hello ${user_name}, you typed: ${text}`
});
// Optional: send a message back to a channel using Slack Web API
await fetch("https://slack.com/api/chat.postMessage", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SLACK_BOT_TOKEN}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
channel: "#general",
text: `Command received: ${text}`
})
});
});
app.listen(3000, () => {
console.log("Server running on port 3000");
});
This file can live directly in a Bolt.new project. When you run it, Bolt gives you a public preview URL. That URL is what you paste into Slack’s Slash Command configuration.
If you follow this pattern, your Bolt.new project becomes a fully functional Slack integration using only official APIs and standard webhooks.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.