FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine
charmainesendMessagesToSlack
Send a one way message to Slack
Public
Like
sendMessagesToSlack
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
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.
Sign up now
Code
/
Code
/
Search
README.md

Send messages to Slack

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.

Get your webhook URL

Create a Slack app:

  1. Go to Slack API and create a new app From Scratch
  2. Choose an App Name and select your workspace

Enable incoming webhooks:

  1. Go to Features → Incoming Webhooks
  2. Toggle Activate Incoming Webhooks

Create webhook:

  1. Click Add New Webhook
  2. Select your target channel

Add to Val Town:

  1. Copy the Webhook URL from Slack
  2. 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.

What's next?

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.

Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.