Score leads with your own model

Feed five properties in, compute a weighted score in code, write it back with a Copy property step.

The challenge

Scoring that depends on several signals at once turns into a sprawl of branches in HubSpot, and nobody remembers why a lead scored what it did. Changing one weight means editing the whole tree.

How AuPerate solves it

Run Custom Code holds the entire model in one readable snippet. Change a weight in one place, and return both the score and the reasons that produced it so sales can see the rationale on the record.

How to build it
  1. 1Clone the lead scoring snippet, then edit the weights to match your ideal customer profile.
  2. 2Add Run Custom Code and map the signals you score on into Input 1 to Input 5, or pick them with Record properties to include.
  3. 3Write Output 1, the score, back with a HubSpot Copy property step, and store Output 2 for the reasons.
  4. 4Branch the workflow once on the score instead of maintaining a tree of conditions.
What the action gives you
  • Saved, versioned snippets or inline code
  • Encrypted secrets injected as secrets.KEY
  • axios, lodash, dayjs, crypto and form-data available
  • Console output captured for debugging

Build this in your own workflows

Install AuPerate once and every action appears in your HubSpot workflow editor.

Get Started