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.
webhook.ts
https://charmaine--0199720fd819701cb2e80be3c8cff217.web.val.run
HubSpot form → Webhook → Clay enrichment → Slack notifications
HubSpot changed their developer platform on August 25, 2025, making webhook setup more complex. The new standard method requires CLI tools and directory configuration, while Legacy apps (no longer actively maintained) remain much simpler to use. HubSpot Automation workflows are the easiest option but require an $800 Professional Plan.
Instructions for all three methods are 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 uploadto upload the HubSpot project - Your project and the associated webhook are now in HubSpot under
Development>deployed build>webhooks
Requires HubSpot Professional plan - $800/month
If you'd like, or even just for testing purposes, you can host HubSpot forms on Val Town - instructions // example URL
- Submit HubSpot form
- Webhook triggers → Clay enriches → Slack notifies