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: v45View latest version
Demo showing how to enrich new user signups from a Hubspot Form.
Flow: Hubspot form → Webhook → Clay enrichment → Slack notifications
- Go to HubSpot Developer Dashboard
- Create app → Choose "Legacy" type
- Go to Webhooks tab
- Set Target URL to your Val Town endpoint from
./webhook.ts - Create subscription:
- Object: Contact
- Event: Property Change → email
- Set to Active
- 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. Not recommended unless you already have it.
- Go to Workflows in HubSpot
- Create new workflow → Contact-based
- Add trigger (e.g., form submission)
- Add action → "Send a webhook"
- Configure webhook URL and data to send
- Free (vs $800/mo workflows)
- 5 min setup (vs 30+ min CLI)
- Still fully supported
- No CLI required
- Submit form
- Webhook triggers → Clay enriches → Slack notifies