Public
Like
sendMessagesToSlack
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Val Town is the easiest way to self-host a Slack app - everything is configured on the web with no local development required. It's free and easily shareable.
You can send one-way Slack messages as a Slack app in minutes on Val Town.
Remix this val to get started.
Create a Slack app:
- Go to Slack API and create a new app From Scratch
- Choose an App Name and select your workspace
Enable incoming webhooks:
- Go to Features → Incoming Webhooks
- Toggle Activate Incoming Webhooks
Create webhook:
- Click Add New Webhook
- Select your target channel
Add to Val Town:
- Copy the Webhook URL from Slack
- In your val's sidebar: Environment Variable → set slackWebhookURL
You will get a Slack message every time you click Run
on the main.tsx
file.
Take this a step further by responding to mentions, slash commands, buttons, and other user interactions with our full Slack bot guide!
You can find more Slack examples on our Templates page.