• Townie
    AI
  • 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
/
Code
/
Search
webhook.ts
https://charmaine--0199720fd819701cb2e80be3c8cff217.web.val.run
README.md

User Enrichment Demo with Hubspot

HubSpot form → Webhook → Clay enrichment → Slack notifications

HubSpot Setup

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.

Option 1: Legacy App (Recommended)

  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

Read HubSpot docs →

  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 to upload the HubSpot project
  2. Your project and the associated webhook are now in HubSpot under Development > deployed build > webhooks

Option 3: Workflow Webhooks

Read HubSpot docs →

Requires HubSpot Professional plan - $800/month

Test

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

  1. Submit HubSpot form
  2. Webhook triggers → Clay enriches → Slack notifies
HTTP
  • webhook.ts
    charmaine--01…17.web.val.run
Code
README.mdopenai.tsslack.tstest.ts
H
webhook.ts
FeaturesVersion controlCode intelligenceCLI
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.