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
4
README.md
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/8/2025
Viewing readonly version of main branch: v9
View latest version
README.md

New User Enrichment Demo

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

Files

  • slack.ts - Slack notification
  • test.ts - Demo test script to simulate new user sign up

Usage

  1. Set SLACK_WEBHOOK_URL environment variable
  2. Run test.ts to see the complete flow
  3. Check your Slack channel for the enriched user notification

Integration

Your app should call the Clay API endpoint directly:

Create val
// On user signup const response = await fetch('https://clayapidemo.val.run/enrich', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: user.email, source: "user_signup" }) }); const enrichedData = await response.json(); // Send to your notification system (Slack, Discord, etc.) await sendToSlack(enrichedData, user.email);

Clay enrichment includes: name, company, LinkedIn, funding stage, employee count.

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.