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: v43View latest version
Demo showing how to enrich new user signups from a Hubspot Form.
The data passes from Hubspot form -> Hubspot webhook (new contact creation) -> Clay for enrichment -> send notifications to Slack.
As of Aug 2025, Apps on Hubspot's new developer platform need to be done via the CLI
- Install the HubSpot CLI with these instructions
- Here were the steps that worked for me in the CLI:
npm install -g @hubspot/cli@latesths account authhs project createfor anApp, withPrivatedistribution,Static AuthandWebhooks
- Here were the steps that worked for me in the CLI:
- In your new
src/appdirectory, addwebhooks/webhook-hsmeta.jsonwith the following config.
Note: Swap out the targetUrl with your Val Town HTTP endpoint URl from ./webhook.ts.
{
"uid": "webhooks",
"type": "webhooks",
"config": {
"settings": {
"targetUrl": "https://charmaine--0199720fd819701cb2e80be3c8cff217.web.val.run",
"maxConcurrentRequests": 10
},
"subscriptions": {
"crmObjects": [
{
"subscriptionType": "object.propertyChange",
"objectType": "contact",
"propertyName": "email",
"active": true
}
]
}
}
}
- Upload the Hubspot project by running
hs project uploadin your terminal. - You can find the project and the associated webhook you just uploaded in Hubspot under
Development > deployed build > webhooks - Once you have this hooked up alongside your new form (instructions to host on Val Town), you can test the end-to-end submission flow from the Hubspot form -> get enriched user information in Slack.