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

templates

new-user-enrichment

Enrich new user data with a webhook and post results to Slack
Public
Like
1
new-user-enrichment
Home
Code
3
README.md
icp.ts
main.ts
Branches
2
Pull requests
Remixes
History
Environment variables
1
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
/
README.md
Code
/
README.md
Search
11/20/2025
Viewing readonly version of main branch: v14
View latest version
README.md

New User Enrichment

Enrich new user data with a webhook and post results to Slack

How it works

  • Your application sends a request to this webhook with a user's email address.
  • This webhook uses the Val Town Clay Proxy to enrich the user data with information like their LinkedIn profile, company name, company size, funding state, total funding, and more.
  • The data is passed to Chat GPT for lead scoring
  • The results are sent to your own Slack webhook

Getting started

  1. Remix this val
  2. Create a Slack webhook and add its URL as SLACK_WEBHOOK_URL
  3. Use webhook.test.ts to test that your enrichment works. You should see a message in your Slack channel.
  4. In your own application, add logic to send a request to this webhook when new users sign up.

Pricing

This val uses Clay under the hood to provide user-enrichment data. The Val Town Clay Proxy is only available to paying Val Town Team accounts. To sign up to use this val, please send an email to mailto:enrichment@val.town.

Authentication your webhook

To make this more secure, you can optionally set a WEBHOOK_SECRET environment variable and only accept requests that use the secret when posting.

Create val
// Add this to `main.ts` to only accept requests that include the secret const secret = req.headers.get("Authorization"); if (secret !== `Bearer ${Deno.env.get("WEBHOOK_SECRET")}`) { return new Response("Unauthorized", { status: 401, }); }
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
© 2026 Val Town, Inc.