Connectors

/

Salesforce

/

Flag Salesforce renewal risks from Zendesk support
Write
Cross-Connector

Warn deal owners about support problems before close

For sales teams who want Zendesk urgent tickets and bad ratings on closing deals logged as Salesforce tasks, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Flag Salesforce renewal risks from Zendesk support
Flag any Salesforce deals closing in the next 90 days where the customer has urgent Zendesk tickets or bad ratings.
5 of 41 closing opportunities have support risk signals in Zendesk. - Contoso Renewal: 3 urgent or high tickets open, closes 2026-11-15 - Fabrikam Expansion: 2 bad ratings in 60 days - Already tasked: 1 deal, skipped - Ambiguous match: Northwind Traders, two Zendesk organizations Create support risk tasks for all 5, some, or none?
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-opportunity
salesforce-get-account
zendesk-get-organization
zendesk-get-ticket
zendesk-get-satisfaction-rating
salesforce-get-task
salesforce-add-task

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Salesforce

Salesforce
Run it on your own Salesforce data.

Connect Salesforce, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Deals closing while the customer is unhappy in Zendesk

Opportunities close in Salesforce while the same customer has urgent tickets or bad ratings in Zendesk, and the owner never hears about it. Spotting the risk means matching each account to Zendesk, checking tickets and ratings and remembering to log a task.

Without PopdockAI

  • List the deals closing in the window
  • Find each account's Zendesk organization by hand
  • Check open tickets and recent ratings one by one
  • Forget to tell the owner before the deal is pushed

With PopdockAI

  • Closing deals are matched to one Zendesk organization each
  • Urgent tickets and bad ratings in the last 60 days are flagged
  • Deals that already have a support risk task are skipped
  • Tasks are created only after you confirm

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** For open Salesforce opportunities closing in the next {close-within-days} days (default 90), find those whose customer has unsolved `urgent` or `high` Zendesk tickets, or a `bad` satisfaction rating in the last 60 days, and after the user confirms, log one risk task on each such opportunity in Salesforce.

**Step 1: Open opportunities in Salesforce**

Call `salesforce-get-opportunity` with `closed` set to false, `close-date.from` set to today and `close-date.to` set to today plus {close-within-days} days (default 90). Keep `opportunity-id`, `name`, `account-id`, `account-name`, `amount`, `stage`, `close-date` and `owner`. For each distinct `account-id`, call `salesforce-get-account` with `account-id` to get `name` and `website`. If there are no opportunities, say so and stop.

**Step 2: Match each account in Zendesk**

**How to match a Salesforce account to a Zendesk organization (use this order, stop at the first hit):**

1. Call `zendesk-get-organization` with `external-id` set to the Salesforce `account-id`.
2. If nothing comes back, call `zendesk-get-organization` with `name` set to the Salesforce account `name` exactly.
3. If still nothing, take the domain from the account's `website` (strip `http://`, `https://`, `www.` and any path) and call `zendesk-get-organization` with `domain-names.contains` set to it.
4. If more than one organization matches at any step, list them and treat the account as ambiguous rather than guessing.
5. If none match, report the account as "No Zendesk organization found" and continue with the next account.

Once matched, use the Zendesk organization's own `name` (not the Salesforce account name) as `organization-name` on `zendesk-get-ticket`, since the two systems can spell the company differently.

**Step 3: Risk signals in Zendesk**

* Zendesk unsolved tickets are those with status `new`, `open`, `pending` or `hold`. The `status` filter on `zendesk-get-ticket` takes one value, so call it once per status and combine the results. Keep only `urgent` and `high` tickets.
* Call `zendesk-get-ticket` with `organization-name` and `created.from` set to 60 days ago, then call `zendesk-get-satisfaction-rating` with `ticket-id` for each (at most 25) and keep `bad` scores with their `comment`.

An opportunity is at risk when its account has at least one of these signals.

**Step 4: Avoid duplicates**

For each at-risk opportunity, call `salesforce-get-task` with `related-to-id` set to the `opportunity-id`, `closed` set to false and `subject.contains` set to `Support risk`. Skip opportunities that already have one.

**Step 5: Propose, then confirm**

Show one table and STOP for confirmation:

| Opportunity | Account | Amount | Stage | Close date | Urgent/high unsolved | Bad ratings | Proposed subject |

The subject is `Support risk: <N> urgent/high tickets open before close`. Ask the user to confirm all, pick some, or cancel. Do not create anything until they answer.

**Step 6: Create the tasks in Salesforce**

For each confirmed opportunity only, call `salesforce-add-task` exactly once with `subject`, `what-id` set to the `opportunity-id`, `due-date` set to the earlier of today plus 3 days and the opportunity's `close-date`, `priority` set to `High`, and `comments` listing the ticket ids, subjects and any bad-rating comments. Report each returned `id`.

**Rules & Guidelines:**

* Salesforce tools start with "salesforce-" and come from the Salesforce MCP server. Zendesk tools start with "zendesk-" and come from the Zendesk MCP server. Both servers must be connected.
* The only write allowed is `salesforce-add-task`, once per confirmed opportunity, after the user confirms in Step 5.
* Do NOT call `salesforce-update-opportunity`, `salesforce-update-task`, `salesforce-add-case`, `zendesk-update-ticket`, `zendesk-add-ticket-comment` or `zendesk-update-organization`.

**Validation:**

* An account with no Zendesk organization is reported as "No Zendesk organization found" and gets no task.
* If `salesforce-add-task` returns `success` false, report it for that opportunity and continue; do not retry automatically.

Who it's for

One answer, three teams that use it

Account executives

Go into renewals knowing the support story

Get a task on any deal where the customer has urgent tickets or poor ratings, so the call is not a surprise.

Check my Salesforce deals closing this quarter for urgent Zendesk tickets or bad ratings and add tasks for any at risk.

Customer success managers

Flag renewal risk to sales early

Put support problems in front of the deal owner in Salesforce while there is still time to fix them.

Flag Salesforce opportunities closing in the next 60 days where the Zendesk organization has unsolved high tickets.

Sales leaders

Forecast with support health in view

See which closing deals carry support risk and make sure each has an owner task.

Which deals closing before year end have customers with bad Zendesk satisfaction ratings? Log a risk task on each.

How it works

What PopdockAI does when you ask

You give a closing window, and your AI assistant checks each closing deal's customer for support trouble in Zendesk. One task per deal is added only after you confirm the list.

01

Ask

You give a closing window, 90 days by default.

Your AI tool

02

Match

It reads closing Salesforce deals and matches each account to one Zendesk organization.

salesforce-get-opportunity
salesforce-get-account
zendesk-get-organization

03

Confirm

You see deals with urgent tickets or bad ratings, minus any already tasked, and say yes.

No items found.

04

Create

It adds one support risk task per confirmed deal with the ticket details.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Salesforce and one secure connection to your AI tool. No code, no exports.

get-data

salesforce-get-opportunity

Returns Salesforce opportunities with their account, stage, amount, probability, close date, next step, owner and whether they are closed or won. Filter by name, account, stage, owner, amount, close date and closed and won flags.
get-data

salesforce-get-account

Returns Salesforce accounts with their type, industry, owner, billing address, phone and annual revenue. Filter by name, account number, type, industry, owner, billing city or state, annual revenue and created date.
get-data

zendesk-get-organization

Returns Zendesk organizations, the customer companies your users belong to, with their domains, tags and notes.
get-data

zendesk-get-ticket

Returns Zendesk support tickets with their status, priority, requester, assignee, group and organization. Filter by status, priority, assignee, group or dates to find the tickets you need.
get-data

zendesk-get-satisfaction-rating

Returns Zendesk customer satisfaction (CSAT) ratings with the score, the customer's comment and reason, and the ticket, agent and group they relate to. Filter by score or date to find bad ratings.
get-data

salesforce-get-task

Returns Salesforce tasks with their subject, due date, priority, status, assignee and the record they relate to. Filter by subject, assigned user, account, related record, contact or lead, status, priority, closed flag and due date.
run-action

salesforce-add-task

Creates a Salesforce task with subject, due date, priority, status, assignee, comments and the contact, lead or record it relates to.
Read only.Nothing in Salesforce Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Owners hear about support problems before they close

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation