FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse

stevekrouse

enrich-new-users

Get notified in Slack when your ICP signs up
Public
Like
enrich-new-users
Home
Code
5
README.md
openai.ts
slack.ts
test.ts
H
webhook.ts
Branches
2
Pull requests
Remixes
4
History
Environment variables
2
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/11/2025
README.md

New User Enrichment Demo

Demo showing how to enrich new user signups with Clay and send notifications to Slack.

Files

  • slack.ts - Send Slack notification
  • test.ts - Test script to simulate new user sign up
  • webhook.ts - Receives webhooks when you get a new user

Set up

  1. Remix this val
  2. Get a Slack webhook & set it as SLACK_WEBHOOK_URL in this val's Environment variables in the left sidebar
  3. Get a random token & set it to VAL_WEBHOOK_SECRET in this val's Environment variables in the left sidebar
  4. Click run on test.ts to see the complete flow (takes up to 5 minutes to enrich)
  5. Check your Slack channel for the enriched user notification
  6. Set your auth system (ie Clerk) to send new user webhooks to webhook.ts

Clay

Clay is a user-enrichment tool that allows you to leverage the data of hundreds of enrichment services.

We at Val Town have set up a basic Clay enrichment table that finds basic user info from email address or github username – and have created a synthetic API to it, which this val calls. Clay costs money, so proxy is only available to paid Val Town Teams accounts.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.