New User Enrichment Demo

Demo showing how to enrich new user signups with Clay and send notifications to Slack.

Files

  • slack.ts - Send Slack notification
  • test.ts - Test script to simulate new user sign up
  • webhook.ts - Receives webhooks when you get a new user

Set up

  1. Remix this val
  2. Get a Slack webhook & set it as SLACK_WEBHOOK_URL in this val's Environment variables in the left sidebar
  3. Get a random token & set it to VAL_WEBHOOK_SECRET in this val's Environment variables in the left sidebar
  4. Click run on test.ts to see the complete flow (takes up to 5 minutes to enrich)
  5. Check your Slack channel for the enriched user notification
  6. Set your auth system (ie Clerk) to send new user webhooks to webhook.ts

Clay

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.