Daily sweep of deals where stage NOT IN ('closed_won','closed_lost') AND updatedAt < NOW() - N days (N varies by stage: prospecting=14d, qualification=7d, proposal=5d, negotiation=3d). For each stale deal, creates a dealActivity with type='ai_insight' suggesting next action, updates aiNextAction, and fires a notification if a notification channel is configured.
Type: escalation Trigger: Scheduled: 0 8 * * * Entities: deals,dealActivities Recommendation: