• 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
main.test.ts
H
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
/
Code
/
Search
main.ts
https://templates--8d5e692cc62011f0a2ea42dde27851f2.web.val.run
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 results are sent to your own Slack webhook

Getting started

  1. Remix this val
  2. Create a custom Slack app with an incoming webhook and add its URL as SLACK_WEBHOOK_URL. See the docs for Sending Slack messages for more info.
  3. Use main.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 enrichments. 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 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, }); }
HTTP
  • main.ts
    templates--8d…f2.web.val.run
Code
README.mdmain.test.ts
H
main.ts
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.