• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
charmaine

charmaine

enrich-new-users-slack

HubSpot -> Clay -> Slack
Remix of stevekrouse/enrich-new-users
Public
Like
enrich-new-users-slack
Home
Code
5
README.md
openai.ts
slack.ts
test.ts
H
webhook.ts
Branches
1
Pull requests
Remixes
1
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
9/24/2025
Viewing readonly version of main branch: v64
View latest version
README.md

User Enrichment Demo with Hubspot

Demo showing how to enrich new user signups from a Hubspot Form.

Flow: Hubspot form → Webhook → Clay enrichment → Slack notifications

Hubspot Setup

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.

Option 1: Legacy App (Recommended - quickest)

Screenshot 2025-09-24 at 4.28.27 PM.png

  1. Go to HubSpot Developer Dashboard
  2. Legacy Apps → Create → Private → Fill out Basic info
  3. Scopes → Add crm.objects.contacts.write
  4. Webhooks → Set Target URL to your Val Town endpoint from ./webhook.ts
  5. Create subscription:
    • Object: Contact
    • Event: Property changed → email
    • Subscribe

Option 2: CLI App

  1. Install CLI: npm install -g @hubspot/cli@latest
  2. Run: hs account auth
  3. Run: hs project create (choose App, Private, Static Auth, Webhooks)
  4. 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 }] } } }
  1. Run: hs project upload

Option 3: Workflow Webhooks

  • Requires HubSpot Professional plan - $800/month
  • Instructions are here.

Test

If you'd like, or even just for testing purposes, you can host HubSpot forms on Val Town - instructions

  1. Submit HubSpot form
  2. Webhook triggers → Clay enriches → Slack notifies
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.