Slack bot hosting
Run your Bolt app in a Node.js or Python worker. Socket Mode connects to Slack over a WebSocket and receives workspace events without a public request URL.
@Your App pingSlack Socket Mode hosting
Receive Slack events over a WebSocket
Bolt opens an outbound Socket Mode connection from the worker. Subscribe to the events and interactions your app handles.
Configure Socket ModeKeep both tokens in Variables
The bot token authorizes workspace actions. The app-level token opens the Socket Mode connection. Save each under its own variable and restart after rotation.
Manage runtime secretsRun your Bolt project
Upload your project files or connect the GitHub branch that contains your app and its dependency manifest.
Connect a GitHub branchTry a threaded mention reply
Start with the sample that matches your language. A reply in the thread confirms both event delivery and permission to post.
Test the exampleChoose your Bolt runtime
Use Node.js for a project with @slack/bolt in package.json, or Python for a project with slack-bolt in requirements.txt. Both profiles use Socket Mode.
- デプロイ Node.js Socket Mode bot on Spark
Node.js Socket Mode bot
Run a Bolt for JavaScript bot over Slack’s outbound WebSocket connection.
- デプロイ Python Socket Mode bot on Spark
Python Socket Mode bot
Run a Bolt for Python bot over Slack’s outbound WebSocket connection.
Get a reply in a Slack channel
Configure the Slack app
In Slack app settings, enable Socket Mode and generate an app-level token with
connections:write. Addapp_mentions:readとchat:writefor the example, subscribe toapp_mention, and install the app to your test workspace.Upload the project and save both tokens
Use your own code or upload the Bolt example. In Variables, save the installed bot’s
SLACK_BOT_TOKENand the app-levelSLACK_APP_TOKEN.Mention the app
Start the deployment, invite the app into a test channel, and mention it. Check for a thread reply and read Console if the connection fails.
Move an existing Slack bot
Keep the Slack app identity and test the hosted copy with an app mention in your workspace.
Troubleshoot a missing mention replyCheck the current installation
Confirm OAuth & Permissions shows the intended workspace and the scopes your handlers call.
Start the hosted copy
Upload the project, save both tokens and stop the old worker before testing Slack delivery.
Exercise one real event
Invite the app to a test channel, mention it and check for the expected reply.
Slack bot hosting plans
1 つのアカウントプランがデプロイをまとめてカバーします。一緒に動かすプロジェクトの間で、メモリ、ストレージ、CPU を分けてください。
| プラン | メモリ | ストレージ | CPU | デプロイ | ファイルのバックアップ | 履歴 | 年あたり |
|---|---|---|---|---|---|---|---|
| Spark | 256 MB | 512 MB | 25% | 1 | 1 時間ごと | 24 時間 | $0.00 |
| Relay | 1 GB | 5 GB | 50% | 2 | 15 分ごと | 3 日 | $22.50 |
| Circuit | 2 GB | 8 GB | 100% | 4 | 15 分ごと | 7 日 | $32.50 |
| Grid | 4 GB | 15 GB | 200% | 8 | 5 分ごと | 14 日 | $60.00 |
| Fleet | 8 GB | 25 GB | 250% | 12 | 1 分ごと | 30 日 | $90.00 |
税抜の USD です。1 年分は、月額 10 回分と同じ金額です。
プランの機能をすべて比較Do I need a public Slack Request URL?
Socket Mode receives events over an outbound WebSocket. Enable it in the Slack app settings and subscribe to the events your app handles.
Can I use an existing Slack app?
Yes. Use the app’s current bot token from the target workspace and create an app-level token scoped to connections:write. Keep the same installation when moving your project.