---
name: salesforce-opportunities-without-next-step
description: "Tuesdays and Thursdays: open opportunities with an empty Next Step or a close date already behind them, and an ask to nudge their owners. Use when the user asks for this, or when it runs on a schedule."
---

# Salesforce opportunities without a next step

Tuesdays and Thursdays: open opportunities with an empty Next Step or a close date already behind them, and an ask to nudge their owners.

Two fields decide whether a Salesforce forecast can be trusted: Next Step and Close Date. An open opportunity with an empty Next Step has no plan, and one with a close date last week is either won, lost or wishful thinking. Both kinds pile up quietly, because nothing in Salesforce complains about them.

This skill lists them on Tuesdays and Thursdays, grouped by owner, and asks whether to give each rep a task to fix their own. Managers get the hygiene check without having to be the person who sends the nagging email.

## Two ways to get the data

Use the API or MCP route when you have an MCP server, a CLI or an API token for the app. Otherwise, if you can drive a browser the user is signed in to (Claude in Chrome, a Playwright or Chrome DevTools MCP server), use the browser route. Say which one you used.

## Route A: API or MCP server

### What you need

- A Salesforce login that can read every open opportunity and create Tasks on them, used through the `sf` CLI, a Salesforce connector or the REST API.

If something is missing, say what and stop; do not invent numbers.

### Steps

1. **Query the gaps** (Salesforce): `SELECT Id, Name, Account.Name, OwnerId, Owner.Name, StageName, Amount, CloseDate, NextStep, LastActivityDate FROM Opportunity WHERE IsClosed = false AND (NextStep = null OR CloseDate < TODAY) ORDER BY Amount DESC NULLS LAST`.
2. **Label each one**: Tag every row as no next step, past close date or both, with days overdue (today minus `CloseDate`) and days since `LastActivityDate`. If the list runs long, leave out opportunities under an amount you set, such as $5,000.
3. **Group by owner**: Count opportunities and amount per `Owner.Name`, so each rep's share of the list is short and specific.
4. **Ask, then create the tasks** (Salesforce): Post the list and ask whether to nudge the owners. On a yes, create one Task per opportunity with `sf data create record --sobject Task --values "WhatId=<opportunity id> OwnerId=<owner id> Subject='Update next step and close date' ActivityDate=<tomorrow>"`.

## Route B: the browser

### What you need

- Signed in to Salesforce as a user who can see every open opportunity and create Tasks on them; saving the list view needs Create and Customize List Views.

If something is missing, say what and stop; do not invent numbers.

### Steps

Start at https://login.salesforce.com/. The user is signed in already; never type passwords or codes, and ask if a sign-in page appears.

1. **Build the list view**: From your My Domain open the **Opportunities** tab, pick **All Opportunities** and use the filter panel: **Closed** equals False, **Next Step** equals blank, **Close Date** less than TODAY, with filter logic `1 AND (2 OR 3)`. Save it as a list view named `Needs next step`.
2. **Show the right columns**: Select fields to display: Opportunity Name, Account Name, Opportunity Owner, Stage, Amount, Close Date, Next Step and **Last Activity**. Sort by Amount, largest first. Label each row as no next step, past close date or both, with days overdue.
3. **Count by owner**: Sort the same list by Opportunity Owner and count rows and amount per rep, or switch to the Kanban grouped by owner if you prefer a picture. Leave out opportunities under $5,000 if the list runs long.
4. **Ask, then create the tasks**: Post the list and ask whether to nudge the owners. On a yes, open each opportunity, click **New Task** in the Activity panel, Subject `Update next step and close date`, Assigned To the owner, Due Date tomorrow, and save.

Note: List views load 50 rows at a time and cap at 2,000; the by-owner counts are easier from a saved report grouped by Opportunity Owner if the list is long. The saved view makes Tuesday and Thursday a matter of opening one page.

## The report

- **Count and amount** of open opportunities with a gap, split into no next step, past close date and both.
- **The list**, largest first, with owner, stage, close date and days since last activity.
- **By owner**, so each rep sees a short list.
- **The ask**: whether to create a task for each owner.

## Post it to Briefkin

When `BRIEFKIN_TOKEN` is set, or `~/.config/briefkin/env` exists (the installer from https://briefkin.dev/docs writes it), also send the result to the user's Briefkin board as one card. Keep the `item_key` the same on every run so the card updates in place, use a new `event_id` per run, and put today's real numbers in place of the example ones. If the request fails, say so once and carry on.

```bash
[ -n "${BRIEFKIN_TOKEN:-}" ] || . ~/.config/briefkin/env
curl -sS -X POST "${BRIEFKIN_URL:-https://briefkin.dev}/v1/events" \
  -H "authorization: Bearer $BRIEFKIN_TOKEN" \
  -H "content-type: application/json" \
  -d @- <<'JSON'
{
  "v": 1,
  "event_id": "salesforce-opportunities-without-next-step/<date of this run, e.g. 2026-10-16>",
  "item_key": "salesforce-opportunities-without-next-step",
  "project": "Acme",
  "source": "Salesforce opportunities without a next step skill",
  "kind": "action",
  "title": "11 open opportunities need a next step or a new close date",
  "summary": "**11** open opportunities worth **$486,000**: 6 have no Next Step, 4 have a close date that already passed, and 1 has both.",
  "action": {
    "request": "Create a task for each owner to update Next Step and Close Date on their opportunities?",
    "options": [
      "Yes, all owners",
      "Only past close dates",
      "Only deals over $25k",
      "Not this time"
    ]
  },
  "widget": [
    {
      "type": "Table",
      "props": {
        "columns": [
          "Opportunity",
          "Owner",
          "Amount",
          "Issue"
        ],
        "align": [
          "left",
          "left",
          "right",
          "left"
        ],
        "rows": [
          [
            "Woodgrove Bank core banking",
            "Sam",
            "$120k",
            "Close date 9 days ago"
          ],
          [
            "Contoso APAC pilot",
            "Lena",
            "$84k",
            "No next step"
          ],
          [
            "Humongous Insurance",
            "Marco",
            "$62k",
            "No next step, close date 3 days ago"
          ],
          [
            "Wide World Importers",
            "Priya",
            "$48k",
            "No next step"
          ],
          [
            "Proseware upgrade",
            "Dana",
            "$41k",
            "Close date 16 days ago"
          ],
          [
            "Alpine Ski House",
            "Theo",
            "$36k",
            "No next step"
          ],
          [
            "Lucerne Publishing",
            "Sam",
            "$29k",
            "No next step"
          ],
          [
            "Coho Winery",
            "Priya",
            "$24k",
            "Close date 5 days ago"
          ],
          [
            "Fourth Coffee",
            "Dana",
            "$19k",
            "No next step"
          ],
          [
            "Margie's Travel",
            "Theo",
            "$14k",
            "Close date 2 days ago"
          ],
          [
            "Trey Research",
            "Lena",
            "$9k",
            "No next step"
          ]
        ]
      }
    },
    {
      "type": "Badges",
      "props": {
        "items": [
          {
            "label": "Sam 2"
          },
          {
            "label": "Lena 2"
          },
          {
            "label": "Priya 2"
          },
          {
            "label": "Dana 2"
          },
          {
            "label": "Theo 2"
          },
          {
            "label": "Marco 1"
          }
        ]
      }
    }
  ]
}
JSON
```

Widgets come from the Briefkin catalog (https://briefkin.dev/v1/catalog). Without a token, just give the user the report.

## Run it on a schedule

Suggested: Tuesdays and Thursdays at 9:00 (`0 9 * * 2,4`). From cron, with the agent signed in on that machine:

```bash
0 9 * * 2,4 claude -p "Run the salesforce-opportunities-without-next-step skill"
# Codex: codex exec, Gemini CLI: gemini -p, Copilot CLI: copilot -p, OpenCode: opencode run
```

Or use the agent's own scheduler (Claude Code routines, Codex automations, Claude or ChatGPT scheduled tasks): https://briefkin.dev/skills/salesforce-opportunities-without-next-step#schedule

Source: https://briefkin.dev/skills/salesforce-opportunities-without-next-step
