
Public
Like
enrich-new-users
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.
Viewing readonly version of main branch: v10View latest version
Demo showing how to enrich new user signups with Clay and send notifications to Slack.
slack.ts
- Slack notificationtest.ts
- Demo test script to simulate new user sign up
- Set
SLACK_WEBHOOK_URL
environment variable - Run
test.ts
to see the complete flow - Check your Slack channel for the enriched user notification
Your app should call the Clay API endpoint directly:
// 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.