Skip to content
Recued
Menu
← Back to recipes

Refresh deal health score (HubSpot)

by recued-core v1

Reactive AI producer. Listens to connection.api.hubspot.deal {created,updated} bus events; for each fired deal fetches the current record via the HubSpot connection adapter, AI-scores it 0-100 across stage progression / amount fit / deal age / engagement freshness, and upserts the `deal_health_score` enrichment per spec § A.6 cross-vendor topic. AI-classify routing follows the topic's per-pair trust state (D-132): default `manual` until promoted via Settings → Server → Housekeeping. Salesforce-flavored producer ships in D-130 against the same topic.

How it works 11 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Data fetch
deal ?
Process (10 steps)
deal_summary pick
Keep only specific fields from
scoring ?
signal_labels pluck
Extract criterion from each item
score_int round
Round scoring score to 0 decimal places
score_clamped clamp
Clamp score int between 0 and 100
confidence_default default
Apply default
confidence_clamped clamp
Clamp confidence default between 0 and 1
reasoning_default default
Apply default
upsert ?
card to_summary
Format results as a summary card
Settings 2 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

hubspot setting =
scoring scale setting = 100

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Where it runs

Device + server Runs on your device (browser) or your server.

Permissions it requires

Write enrichment dataRead your HubSpot connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

Data it touches

Warehousedata.enrichmentdata.connection

About

Tags

hubspotdealhealthaireactive

Details

11 steps 2 configurable settings recipe_id: deal-health-score-hubspot