• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
project logo

valdottown

Enrich-New-User

Get enriched new user data notifications
Public
Like
1
Enrich-New-User
Home
Code
9
.cursorrules
FINAL-SETUP-INSTRUCTIONS.md
README-SETUP.md
H
complete-flow.tsx
deno.json
H
enriched-main.tsx
simple-clay-webhook.tsx
test-enriched-main.tsx
test-setup.md
Branches
1
Pull requests
Remixes
1
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
/
/
x
/
valdottown
/
Enrich-New-User
/
branch
/
main
/
version
/
66
/
code
/
README-SETUP.md
/
README-SETUP.md
Code
/
/
x
/
valdottown
/
Enrich-New-User
/
branch
/
main
/
version
/
66
/
code
/
README-SETUP.md
/
README-SETUP.md
Search
7/10/2025
Viewing readonly version of main branch: v66
View latest version
README-SETUP.md

Setup Instructions

Use this file: enriched-main.tsx

This file has everything you need:

  • newUserWelcomeEmail endpoint - receives data from Clerk
  • clayEnrichmentWebhook endpoint - receives enriched data from Clay

Environment Variables to Set in Val.town:

  1. CLAY_WEBHOOK_URL = https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-4f3ee61f-eba3-4d06-8f97-e7d5e9a5827d (This is the webhook URL from Clay you just copied)

  2. CLERK_SECRET_KEY = Your Clerk webhook secret

  3. DISCORD_WEBHOOK = Your Discord webhook URL

  4. CLAY_WEBHOOK_SECRET = (Optional) A secret for Clay to authenticate with

Your Val.town Endpoints:

The file now uses a router, so your endpoints will be:

  • Clerk webhook: https://[your-val-username]-enriched-main.val.run/newUserWelcomeEmail
  • Clay webhook: https://[your-val-username]-enriched-main.val.run/clayEnrichmentWebhook

In Clay:

Add an HTTP API column at the end of your table to send enriched data to your clayEnrichmentWebhook endpoint.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.