# Flag Stalled Opportunities

*/Action/Flag_Stalled_Opportunities*

## Action Profile

**Verb**: flag
**Inputs**:
- opportunity id
- stage
- last activity date
- stall threshold days
**Op Mode**: do
**Outputs**:
- flagged flag
- stalled reason
- days inactive
- alert id
**Exposed By**: [Salesforce Sales Cloud](/Software/Salesforce_Sales_Cloud)
**Operates On**: Opportunity
**Composes With**:
- [Update Opportunity Stage](/Action/Update_Opportunity_Stage)
- [Create Follow Up Task](/Action/Create_Follow_Up_Task)
- [Notify Account Owner](/Action/Notify_Account_Owner)
**Invoked As Tool**: An Agent invokes this exposed action by id (the usesTool edge) with an opportunity id and a stall threshold in days; the handler compares last activity date and stage age against the threshold and writes a stalled flag plus reason back onto the Opportunity record.

## Neighborhood

### Related (automated by)

- [Review existing pipeline](/Processes/Review_existing_pipeline) — automated by · Processes
- [Manage opportunity pipeline](/Processes/Manage_opportunity_pipeline) — automated by · Processes

### Composes with

- [Alert Account Owner](/Action/Alert_Account_Owner) — composes with · Action
- [Schedule Follow Up Task](/Action/Schedule_Follow_Up_Task) — composes with · Action
- [Score Opportunities](/Action/Score_Opportunities) — composes with · Action
- [Notify Account Holder](/Action/Notify_Account_Holder) — composes with · Action
- [Accountable CRM — Create Follow-Up](/Action/Accountable_CRM_—_Create_Follow-Up) — composes with · Action
- [Update Opportunity Stage](/Action/Update_Opportunity_Stage) — composes with · Action
- [Create Task](/Action/Create_Task) — composes with · Action
- [Notify Sales Rep](/Action/Notify_Sales_Rep) — composes with · Action
- [Generate Pipeline Report](/Action/Generate_Pipeline_Report) — composes with · Action

### Exposed by

- [Salesforce Sales Cloud](/Software/Salesforce_Sales_Cloud) — exposed by · Software
- [Pipeline Watchdog](/Software/Pipeline_Watchdog) — exposed by · Software

### Problems this exposes

- ['stalled' threshold must vary by sales stage, not a single days-idle cutoff](/Problems/'stalled'_threshold_must_vary_by_sales_stage,_not_a_single_days-idle_cutoff) — exposes problem · Problems
- [flagging fires on deals legitimately paused by the customer's budget cycle](/Problems/flagging_fires_on_deals_legitimately_paused_by_the_customer's_budget_cycle) — exposes problem · Problems
- [last-activity signal noisy — logged calls and emails miss real momentum](/Problems/last-activity_signal_noisy_—_logged_calls_and_emails_miss_real_momentum) — exposes problem · Problems
