• 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
7
.vtignore
AGENTS.md
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: v43
View latest version
README.md

User Enrichment Demo with Hubspot

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.

Hubspot set up

As of Aug 2025, Apps on Hubspot's new developer platform need to be done via the CLI

  1. Install the HubSpot CLI with these instructions
    • Here were the steps that worked for me in the CLI:
      • npm install -g @hubspot/cli@latest
      • hs account auth
      • hs project create for an App, with Private distribution, Static Auth and Webhooks
  2. In your new src/app directory, add webhooks/webhook-hsmeta.json with 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
        }
      ]
    }
  }
}
  1. Upload the Hubspot project by running hs project upload in your terminal.
  2. You can find the project and the associated webhook you just uploaded in Hubspot under Development > deployed build > webhooks Screenshot 2025-09-23 at 10.00.06 AM.png
  3. 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.
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.