
Public
Like
enrich-new-users
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.
Demo showing how to enrich new user signups with Clay and send notifications to Slack.
slack.ts
- Send Slack notificationtest.ts
- Test script to simulate new user sign upwebhook.ts
- Receives webhooks when you get a new user
- Remix this val
- Get a Slack webhook
& set it as
SLACK_WEBHOOK_URL
in this val's Environment variables in the left sidebar - Get a random token & set it to
VAL_WEBHOOK_SECRET
in this val's Environment variables in the left sidebar - Click run on
test.ts
to see the complete flow (takes up to 5 minutes to enrich) - Check your Slack channel for the enriched user notification
- Set your auth system (ie Clerk) to send new user webhooks to
webhook.ts
Clay is a user-enrichment tool that allows you to leverage the data of hundreds of enrichment services.
We at Val Town have set up a basic Clay enrichment table that finds basic user info from email address or github username – and have created a synthetic API to it, which this val calls. Clay costs money, so proxy is only available to paid Val Town Teams accounts.