Back to APIs list

Slack API examples & templates

Use these vals as a playground to view and fork Slack API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
valTownInspoList
charmaine
valTownInspoList
Remix of: rodrigotello/valTownInspoList
Script
Lair2
Get
Lair2
// --- Core Interfaces --- (No changes)
HTTP
inventory
ejfox
inventory
* This val creates an interactive tech stack wizard that generates a video game-style inventory screen. * It uses React for the UI, leverages emoji and Unicode symbols for a visually rich experience, and * incorporates Tailwind CSS for elegant, grayscale styling. * The wizard allows users to select tools, libraries, and APIs, then displays them in a shareable format.
HTTP
starlightFaker
kylem
starlightFaker
Remix of: kylem/loremIpsumMarkdownGenerator
HTTP
june2024
petermillspaugh
june2024
@jsxImportSource https://esm.sh/preact
Script
templateRedditAlert
valdottown
templateRedditAlert
Reddit Keyword Alerts [TEMPLATE] Get notifications when specific keywords appear in Reddit posts. This template will help you: Search Reddit for specific keywords within a defined time range. Send notifications to your preferred platform (Discord, Slack, email, etc.) Reddit does not have an API that allows users to scrape data, so we are doing this with the Google Search API, Serp . Example This val tracks mentions of "Val Town" and related terms on Reddit, filtering results from the last 7 days and sending alerts to a Discord webhook. Set Up 1. Fork this Val To start using this template, fork this val by clicking the fork button at the top-right corner of the page. 2. View Source Code The CODE box shows you the the full source code of this val, you may need to scroll down to see it. 3. Get a SerpApi Key This template requires a SerpApi key to search Reddit posts via Google search results. Get a SerpApi key : Sign up at SerpApi to create an account. Generate an API key from your account dashboard. Add the SerpApi key to your environment variables : Go to your Val Town environment variables . Add a new key: Key: SERP_API_KEY Value: Your SERP API key. Without this key, the val will not function correctly. 4. Customize Keyword In the CODE box below, update the terms or phrases you want to track: const KEYWORDS = "\"node\" OR \"node.js\""; 5. Set Up Your Notification Method This template uses a Discord webhook for notifications. You can update this to your preferred platform: Create a Discord webhook following this guide . Save your webhook URL in your Val Town environment variables: Key: mentionsDiscord Value: Your Discord webhook URL. Notifications will be sent using this function: await discordWebhook({ url: Deno.env.get("mentionsDiscord"), content, }); To switch to another platform (e.g., Slack, email, or custom webhooks), replace the discordWebhook call with the appropriate integration ((e.g., @std/email , Slack , or anywhere else ) 🎉 Congrats! You now have a val running that ensures you never miss another Reddit mention. 🎉 NOTE: Usage Limits SerpApi: Free SerpApi accounts have monthly call limits.
Cron
templateHackerNewsAlert
valdottown
templateHackerNewsAlert
Hacker News Keyword Alerts [TEMPLATE] Get notifications when specific keywords appear in Hacker News posts. This template will help you: Search Hacker News for specific keywords. Send notifications to your preferred platform (Discord, Slack, email, etc.), the default in this template is Discord. Example This val tracks mentions of "Val Town" on Hacker News and sends updates to a Discord webhook. Set Up 1. Fork this Val To start using this template, fork this val by clicking the fork button at the top-right corner of the page. 2. View Source Code The CODE box shows you the the full source code of this val, you may need to scroll down to see it. 3. Customize Keyword In the CODE box below, update the terms or phrases you want to track: query: '"val town" || "val.town"' 5. Set Up Your Notification Method This template uses a Discord webhook for notifications. You can update this to your preferred platform: Create a Discord webhook following this guide . Save your webhook URL in your Val Town environment variables: Key: mentionsDiscord Value: Your Discord webhook URL. Notifications will be sent using this function: await discordWebhook({ url: Deno.env.get("mentionsDiscord"), content, }); To switch to another platform (e.g., Slack, email, or custom webhooks), replace the discordWebhook call with the appropriate integration ((e.g., @std/email , Slack , or anywhere else ) 🎉 Congrats! You now have a val running that ensures you never miss another Hacker News mention. 🎉
Cron
twitterAlert
Akash11
twitterAlert
Remix of: valdottown/templateTwitterAlert
Cron
blueskyAlert
stevekrouse
blueskyAlert
Remix of: buttondown/runner
Cron
blueskyAlert
eseidel
blueskyAlert
Remix of: stevekrouse/blueskyAlert
Cron
neatEmeraldVicuna
stevekrouse
neatEmeraldVicuna
Remix of: eseidel/twitterAlert
Cron
twitterAlert
ellie
twitterAlert
Remix of: stevekrouse/twitterAlert
Cron
twitterAlert
eseidel
twitterAlert
Remix of: stevekrouse/twitterAlert
Cron
daniellevine
twitterAlert
Remix of: stevekrouse/twitterAlert
Cron
twitterAlert
ben5mills5
twitterAlert
Remix of: valdottown/templateTwitterAlert
Cron
redditSaaS
Kutsua
redditSaaS
Remix of: valdottown/templateRedditAlert
Cron