Public
Like
enrich-new-users-slack
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.
Viewing readonly version of main branch: v62View latest version
Demo showing how to enrich new user signups from a Hubspot Form.
Flow: Hubspot form → Webhook → Clay enrichment → Slack notifications
Context: HubSpot changed their developer platform on August 25, 2025. Previously, Legacy apps provided an easy way to subscribe to webhooks. Now, the standard method requires using the CLI to create apps and configure webhooks through folder structures. While Legacy apps are no longer maintained, they're much simpler to set up, so I recommend using them. Instructions for all three options are provided below.
- Go to HubSpot Developer Dashboard
- Legacy Apps → Create → Private → Fill out Basic info
- Scopes → Add
crm.objects.contacts.write - Webhooks → Set Target URL to your Val Town endpoint from
./webhook.ts - Create subscription:
- Object: Contact
- Event: Property changed → email
- Subscribe
- Install CLI:
npm install -g @hubspot/cli@latest - Run:
hs account auth - Run:
hs project create(choose App, Private, Static Auth, Webhooks) - Add
src/app/webhooks/webhook-hsmeta.json:
{ "uid": "webhooks", "type": "webhooks", "config": { "settings": { "targetUrl": "YOUR_VAL_TOWN_URL", "maxConcurrentRequests": 10 }, "subscriptions": { "crmObjects": [{ "subscriptionType": "object.propertyChange", "objectType": "contact", "propertyName": "email", "active": true }] } } }
- Run:
hs project upload
- Requires HubSpot Professional plan - $800/month
- Instructions are here.
If you'd like, or even just for testing purposes, you can host HubSpot forms on Val Town - instructions
- Submit HubSpot form
- Webhook triggers → Clay enriches → Slack notifies