FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
Atuin

Atuin

enrich-new-users

Remix of stevekrouse/enrich-new-users
Public
Like
enrich-new-users
Home
Code
5
README.md
openai.ts
slack.ts
test.ts
H
webhook.ts
Branches
1
Pull requests
Remixes
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
/
Code
/
Search
webhook.ts
https://Atuin--0198a87f767770a9b776b8d06aa5a929.web.val.run
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.

HTTP
  • webhook.ts
    Atuin--01…29.web.val.run
Code
README.mdopenai.tsslack.tstest.ts
H
webhook.ts
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.