Skip to content
Recued
Menu
← Back to recipes

Deal Risk Scorer

by recued-core v1

Computes weighted risk subscores for activity, close date, and contacts, with optional AI narrative.

How it works 16 steps

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

Data fetch
deal ?
contacts ?
Process (14 steps)
guard_deal guard
Stop if deal result properties is empty
days_since_activity date_diff
Calculate days between deal result properties notes last contacted and now
activity_risk math
Calculate: min(100, {{step.days_since_activity}} * 5)
days_until_close date_diff
Calculate days between now and deal result properties closedate
skip: step.deal.result.properties.closedate is_null
close_date_risk math
Calculate: min(100, max(0, (30 - {{step.days_until_close}}) * 3))
skip: step.days_until_close is_null
stale_contacts count
Count items in contacts result results
contact_risk math
Calculate: min(100, {{step.stale_contacts}} * 25)
total_risk weighted_score
Weighted score from: activity risk (NaN%), close date risk (NaN%), contact risk (NaN%)
meets_threshold compare
Check if total risk is at least setting ai threshold
ai_ready all
Check if all conditions are true
ai_context pick
Keep only specific fields from
skip: step.ai_ready equal false
ai_narrative ?
skip: step.ai_ready equal false
risk_checklist to_checklist
Format results as an actionable checklist
risk_summary to_summary
Format results as a summary card
Settings 6 configurable

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

hubspot setting =
enable ai toggle = on
ai threshold number = 50
close weight number = 0.3
activity weight number = 0.4
contacts weight number = 0.3

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.

About

Tags

hubspot dealrisk-scoringhubspotai

Details

16 steps 6 configurable settings recipe_id: compute-deal-risk-hubspot