Templates / Automate stale deal follow-ups in Salesforce with GPT-5.1, email, Slack & tasks

Automate stale deal follow-ups in Salesforce with GPT-5.1, email, Slack & tasks

Ready for 3.0

by Le Nguyen ✓ · 698 views · created 2025-11-23 · Lead Nurturing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs on a schedule (every day at 08:00). Along the way it connects Salesforce, OpenAI, HTTP Request and Slack.

How it runs

Trigger: On a schedule (every day at 08:00).

  1. Edit Fields (Edit Fields (Set)): sets 1 field: stale_days
  2. Perform a query (Salesforce): work with search
  3. Get an opportunity (Salesforce): get (opportunity)
  4. Message a model (OpenAI): uses OpenAI, with 1 tool (query_soql)
  5. Parse JSON (Code): runs custom JavaScript code
  6. Send Email: sends an email over SMTP
  7. Create Task (HTTP Request): calls an HTTP API (POST)
  8. Send Message To Internal Team (Slack): uses Slack

Services it uses

SalesforceOpenAIHTTP RequestSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

How it works - Runs every morning at 8:00 using the Schedule Trigger. - Sets a staledays value and queries Salesforce for Opportunities where StageUnchangedDaysc equals that value and the stage is not Closed Won / Closed Lost. - For each “stale” Opportunity,…

Excerpt from Le Nguyen's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.