• 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
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
/
65
/
code
/
FINAL-SETUP-INSTRUCTIONS.md
/
FINAL-SETUP-INSTRUCTIONS.md
Code
/
/
x
/
valdottown
/
Enrich-New-User
/
branch
/
main
/
version
/
65
/
code
/
FINAL-SETUP-INSTRUCTIONS.md
/
FINAL-SETUP-INSTRUCTIONS.md
Search
7/10/2025
Viewing readonly version of main branch: v65
View latest version
FINAL-SETUP-INSTRUCTIONS.md

Final Setup Instructions

Deploy the complete-flow.tsx file to Val.town

Your Endpoints:

  • For Clerk: https://[your-val-id].web.val.run/newUserSignup
  • For Clay: https://[your-val-id].web.val.run/clayEnrichmentWebhook

Environment Variables in Val.town:

  • DISCORD_WEBHOOK - Your Discord webhook URL

Test the Flow:

1. Test sending data TO Clay:

curl 'https://[your-val-id].web.val.run/newUserSignup' \ -X POST \ -H 'Content-Type: application/json' \ -d '{"email":"test@example.com"}'

2. Test receiving data FROM Clay:

curl 'https://[your-val-id].web.val.run/clayEnrichmentWebhook' \ -X POST \ -H 'Content-Type: application/json' \ -d '{"email":"test@example.com","Name":"Test User","Title":"Developer","Org":"Test Corp"}'

In Clay:

  1. Your webhook URL (for receiving data) is already set: https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-4f3ee6ff-eba3-4d06-8f97-e7d5e9a5827d

  2. In the HTTP API column at the end of your table:

    • Method: POST
    • Endpoint: https://[your-val-id].web.val.run/clayEnrichmentWebhook
    • Headers: Content-Type: application/json
    • Body:
    { "email": "{{email}}", "Name": "{{Name}}", "Title": "{{Title}}", "Org": "{{Org}}" }

Full Flow:

  1. User signs up → Clerk webhook → Your Val's /newUserSignup
  2. Your Val → Clay webhook (the URL you provided)
  3. Clay enriches the data
  4. Clay → Your Val's /clayEnrichmentWebhook
  5. Your Val → Discord notification
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.