• 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
8
.vtignore
AGENTS.md
README.md
deno.json
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: v45
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

Option 1: Legacy App (Recommended - quickest)

  1. Go to HubSpot Developer Dashboard
  2. Create app → Choose "Legacy" type
  3. Go to Webhooks tab
  4. Set Target URL to your Val Town endpoint from ./webhook.ts
  5. Create subscription:
    • Object: Contact
    • Event: Property Change → email
    • Set to Active

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. Not recommended unless you already have it.

  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

Why Legacy?

  • Free (vs $800/mo workflows)
  • 5 min setup (vs 30+ min CLI)
  • Still fully supported
  • No CLI required

Test

  1. Submit 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.