• 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
2
README.md
H
main.tsx
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
/
117
/
code
/
README.md
/
README.md
Code
/
/
x
/
valdottown
/
Enrich-New-User
/
branch
/
main
/
version
/
117
/
code
/
README.md
/
README.md
Search
7/11/2025
Viewing readonly version of main branch: v117
View latest version
README.md

User Enrichment Flow

Automatically enriches new user signups with Clay and sends notifications to Discord.

Flow

  1. User signs up Clerk webhook -> /newUserSignup
  2. Data sent to Clay Clay enriches profile data
  3. Clay sends back /clayEnrichmentWebhook -> Discord notification

Setup

1. Environment Variables

DISCORD_WEBHOOK=your_discord_webhook_url

2. Clerk Webhook

Configure Clerk to send user.created events to the URL of your HTTP file (main.tsx)

3. Clay Setup

A. Create Clay Table

  1. Create new (blank) Workbook called "New User Enrichment"
  2. At the bottom of the Workbook, click Add -> Pull in data from source
  3. Select Pull in data from a Webhook Table
  4. Click "Edit source" on the Webhook column to get the webhook URL CleanShot 2025-07-11 at 14.33.40@2x.png

B. Configure Webhook Source

Update your webhook URL in main.tsx:

"https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-YOUR_ID"

C. Add Enrichment Columns

Add whichever columns you are interested in, this example uses:

  • Enrich Person -> Name, Title, Org
  • LinkedIn Profile

D. Add HTTP API Column

  1. Add "HTTP API" column
  2. Set endpoint: https://your-domain.com/clayEnrichmentWebhook
  3. Set method: POST
  4. Configure request body:
{ "email": "{{email}}", "profile_image_url": "{{profile_image_url}}", "Name": "{{Name}}", "Title": "{{Title}}", "Org": "{{Org}}", "LinkedIn": "{{LinkedIn Profile}}" }
  1. Enable "Remove empty values"

Discord Output

Enriched profiles (with P):

P New user! John Doe " Software Engineer @ Tech Corp " john@example.com " https://linkedin.com/in/johndoe " [profile_image_url]

Basic signups:

New user! user@example.org " [profile_image_url]
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.