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: v60View latest version
Demo showing how to enrich new user signups from a Hubspot Form.
Flow: Hubspot form → Webhook → Clay enrichment → Slack notifications
Context: Prior to Aug 25, 2025, Hubspot offered Legacy apps which were a quick way to subscribe to webhooks. The latest changes to the HubSpot developer platform requires using the CLI to create an app and push it, and configuring webhooks via a folder structure. Legacy apps are significantly easier to set up but are no longer actively maintained but for the sake of simplicity, I recommend it. But you'll find instructions for all 3 opitons 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