Skip to content
Recued
Menu
← Back to recipes

Refresh deal velocity signal (Salesforce)

by recued-core v1

Reactive silent producer. Listens to connection.api.salesforce.opportunity {created,updated} bus events emitted by the D-130 reconciler / CometD funnel; for each fired opportunity fetches the current record via the Salesforce connection adapter, classifies velocity by deal age (accelerating < 14d / stable 14-30d / stalling > 30d), and upserts the cross-vendor `deal_velocity_signal` enrichment per spec § A.6 (D-130 P6 widening). Salesforce parallel of `deal-velocity-signal-hubspot`; both recipes share `variant_group: deal-velocity-signal` so the marketplace card collapses across vendors. Deterministic — no AI tokens.

How it works 10 steps

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

Data fetch
opportunity ?
Process (9 steps)
days_in_stage_raw date_diff
Calculate days between opportunity result CreatedDate and event payload at
days_in_stage clamp
Clamp days in stage raw between 0 and 36500
is_accelerating compare
Check if days in stage is less than setting accelerating days threshold
is_stalling compare
Check if days in stage is at least setting stalling days threshold
velocity_or_stable ternary
Apply ternary
velocity ternary
Apply ternary
recent_activity_count default
Apply default
upsert ?
card to_summary
Format results as a summary card
Settings 3 configurable

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

salesforce setting =
stalling days threshold setting = 30
accelerating days threshold setting = 14

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 Salesforce connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

Data it touches

Warehousedata.enrichmentdata.connection

About

Tags

salesforceopportunitydealvelocityreactive

Details

10 steps 3 configurable settings recipe_id: deal-velocity-signal-salesforce