• 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: v54
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: Prior to Aug 25, 2025, Hubspot offered Legacy apps which were a quick way to subscribe to webhooks. The latest changes to the HubSpot developer platform requires using the CLI to create an app and push it, and configuring webhooks via a folder structure. Legacy apps are significantly easier to set up but are no longer actively maintained but for the sake of simplicity, I recommend it. But you'll find instructions for all 3 opitons below.

Option 1: Legacy App (Recommended - quickest)

  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 ($800/month)

Requires HubSpot Professional plan.

  1. Go to Workflows in HubSpot
  2. Create new workflow → Contact-based
  3. Add trigger (e.g., form submission)
  4. Add action → "Send a webhook"
  5. Configure webhook URL and data to send

Test

  1. Submit HubSpot form
  2. Webhook triggers → Clay enriches → Slack notifies

Form hosting instructions

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.