Deal Risk Scorer
Use “Deal Risk Scorer” in Recued. Computes weighted risk subscores for activity, close date, and contacts, with optional AI narrative.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Data fetch
deal
recued-core.hubspot.deal.read
Read deal on hubspot
contacts
recued-core.hubspot.deal_contacts.list
List deal contacts on hubspot
▼
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
core.ai.prompt
AI generates a response from a custom prompt (PII auto-protected)
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
▼
Output
summary
risk_summary
checklist
risk_checklist
ai_analysis
ai_narrative
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
enable ai
toggle
=
on
ai threshold
number
=
50
close weight
number
=
0.3
activity weight
number
=
0.4
contacts weight
number
=
0.3
Uses (3 operations)
Pack operation
Read deal on hubspot
recued-core.hubspot.deal.read
Pack operation
List deal contacts on hubspot
recued-core.hubspot.deal_contacts.list
AI models
AI generates a response from a custom prompt
core.ai.prompt
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.
What it's allowed to do
Read
AI models
core.ai.prompt
read-only
2 more aren't listed here. You'll see them at install.