Skip to content

Simple Slack Bot

Send a bot message to a Slack channel (Javascript)

View Readme
View Code

Setting up a Slack Webhook

  1. Head to https://api.slack.com/apps/ (make sure you're signed into Slack). Next click "Create an App" > "From scratch".

slack ex

  1. Select the workspace and a name for your Slack app.
    slack workspace select

  2. From the "Basic Information" screen, click "Incoming Webhooks".
    incoming webhooks

  3. Activate webhooks by clicking the toggle in the top right.
    activate webhook toggle

  4. Add a Webhook URL to send messages to Slack from your bot.
    webhook urls list

  5. Finally, tell Slack which channel messages sent via webhook URL should be delivered to.
    give-app-permission

  6. Fork this function, insert your webhook URL, and run it!
    slack-test-message

šŸ¤–

Information
Last Updated
12/7/23 @ 7:27 PM
Developed by
Napkin Team
Language
Node.js
Tags
SlackBots