• 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
/
test-setup.md
/
test-setup.md
Code
/
/
x
/
valdottown
/
Enrich-New-User
/
branch
/
main
/
version
/
66
/
code
/
test-setup.md
/
test-setup.md
Search
7/10/2025
Viewing readonly version of main branch: v66
View latest version
test-setup.md

Testing Your Setup

Clay HTTP API Endpoint

The URL in your screenshot needs the path added:

https://charmaine--d67630ca5dae11f0a5690224a6c84d84.web.val.run/clayEnrichmentWebhook

How to Test:

1. Test Clay's Webhook First

Send a test request to Clay's webhook URL using curl:

curl -X POST https://api.clay.com/v3/sources/webhook/pull-in-data-from-a-webhook-4f3ee61f-eba3-4d06-8f97-e7d5e9a5827d \ -H "Content-Type: application/json" \ -d '{ "email": "test@example.com", "profile_image_url": "https://example.com/avatar.jpg", "signup_timestamp": "2025-07-10T12:00:00Z", "source": "test" }'

2. Check Clay Table

  • Go to your Clay table
  • You should see a new row with the test data
  • The enrichments should run automatically

3. Check Discord

  • Once Clay sends data back to your Val, you should see a message in Discord
  • It will show the enriched data in JSON format

4. Full End-to-End Test

To test the complete flow with Clerk:

  1. Create a test user signup in your Clerk dashboard
  2. Or trigger a test webhook from Clerk's webhook settings

Troubleshooting:

If it's not working, check:

  1. Environment Variables in Val.town:

    • CLAY_WEBHOOK_URL
    • CLERK_SECRET_KEY
    • DISCORD_WEBHOOK
  2. Clay HTTP API Settings:

    • Method: POST
    • URL: Your Val endpoint with /clayEnrichmentWebhook path
    • Headers: Add Content-Type: application/json
    • Body: Map the enriched fields
  3. Check Val.town Logs:

    • Go to your Val dashboard
    • Check the logs for any errors
  4. Test Your Val Endpoints Directly:

    # Test Clay webhook endpoint curl -X POST https://charmaine--d67630ca5dae11f0a5690224a6c84d84.web.val.run/clayEnrichmentWebhook \ -H "Content-Type: application/json" \ -d '{"email": "test@example.com", "Name": "Test User", "Title": "Developer"}'
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.