Recued
Menu
← Back to recipes

Deal Next Action Advisor

by recued-core v3 42 views

Use “Deal Next Action Advisor” in Recued. Recommends the single best next sales action using AI analysis of deal stage, activity recency, contacts, and recent notes. PII-protected.

How it works 21 steps

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

Process (21 steps)
◆ deal recued-core.hubspot.deal.read
Read deal on hubspot
⚠ check_deal guard
Stop if deal result properties is empty
◆ contacts_list recued-core.hubspot.deal_contacts.list
List deal contacts on hubspot
■ contacts_raw map
Extract from each item
◆ activities_raw recued-core.hubspot.engagement.list
List engagement on hubspot
■ activities_flat map
Extract from each item
■ days_since_activity date_diff
Calculate days between deal result properties notes last contacted and now
■ contacts_safe coalesce
Use the first available value from: contacts raw,
■ activities_safe coalesce
Use the first available value from: activities flat,
■ notes_all filter
Filter by condition
■ notes_with_age map
Extract timestamp from each item
■ recent_notes_safe filter
Filter by condition
■ champion_contacts filter
Filter by condition
■ has_champion_contact compare
Check if champion contacts has data
■ context_for_ai pick
Keep only specific fields from
✦ classification core.ai.classify
AI classifies data into one of the given categories
skip: config.enable_ai equal false
✦ rationale_raw core.ai.prompt
AI generates a response from a custom prompt
skip: config.enable_ai equal false
■ action_fallback coalesce
Use the first available value from: classification category, AI disabled
■ rationale_fallback coalesce
Use the first available value from: rationale raw, Enable AI in recipe settings to generate recommendation.
■ confidence_fallback coalesce
Use the first available value from: classification confidence, 0
■ summary_card to_summary
Format results as a summary card
▼
Output
summary summary_card
Settings 2 configurable

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

enable ai toggle = on
note window days number = 30

Uses (5 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
Pack operation List engagement on hubspot recued-core.hubspot.engagement.list
AI models AI classifies data into one of the given categories core.ai.classify
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.classify read-only
Read AI models core.ai.prompt read-only

3 more aren't listed here. You'll see them at install.

Data it touches

SurfacesAI models

About

Tags

hubspot dealnext actionai recommendationsaleshubspot

Details

21 steps 2 configurable settings recipe_id: recommend-next-action-deal-hubspot