Back to Templates
stale_days value and queries Salesforce for Opportunities where Stage_Unchanged_Days__c equals that value and the stage is not Closed Won / Closed Lost.query_soql tool to pull recent Notes, the primary Contact, and the Opportunity Owner, then returns a single JSON object with:
Estimated setup time: ~30–45 minutes if your Salesforce, OpenAI, SMTP and Slack credentials are ready.
Create Stage_Unchanged_Days__c on Opportunity (Salesforce)
IF(
ISBLANK(LastStageChangeDate),
TODAY() - DATEVALUE(CreatedDate),
TODAY() - DATEVALUE(LastStageChangeDate)
)
Connect credentials in n8n
query_soql HTTP Tool.Configure your follow-up rules
stale_days to the threshold that defines a stalled deal (e.g. 7, 14, 30).Test safely
email, sms, slack, task.api_body).Go live