/
/
Spot escalating customers from long calls and open cases
For support leads who want to find customers with long Contivio calls and open high-priority Salesforce cases, just by asking their AI assistant.
On this page
Connector
Connect Contivio, pick your AI tool and paste the prompt.
The problem
Escalating customers are spotted by luck
A long call and an open high-priority case are signs of the same problem, but they live in different systems. Matching them by hand is slow, so escalating customers are noticed late.
Without PopdockAI
- Filter the call list for long calls
- Group the calls by customer
- Search Salesforce for each customer's open cases
- Compare priorities by hand
With PopdockAI
- Long calls are read and grouped by customer
- Open high-priority cases are checked for each one
- Summaries of the longest calls are included
- Customers checked are capped and nothing is changed
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Find customers who had calls longer than `{min-talk-minutes}` minutes (default 15) in the last `{lookback-days}` days (default 7) and who also have an open high-priority Salesforce case.
**Step 1: Long calls (Contivio)**
Call `contivio-get-call` with `talk-duration.min` set to the minimum talk time and `start-time.from` set to the window start. Check the unit of `talk-duration.min` against the `talk-duration-seconds` field of the results and convert minutes to that unit if needed. Group the calls by customer id; drop calls without one and count them.
**Step 2: Open escalations (Salesforce)**
For each customer id (stop at 40), call `salesforce-get-case` with `account-id` set to that id, `closed` set to false and `priority` set to High. Keep only customers that have at least one such case.
**Step 3: Report**
For each customer with a match: account id, number of long calls, longest talk time, agent names, the `ai-short-summary` of the longest call, and the open cases (case number, subject, status, owner). Sort by number of open cases, then by call time. End with totals of customers checked and customers matched.
**Rules & Guidelines:**
* `contivio-get-call` is on the Contivio server; `salesforce-get-case` is on the Salesforce server.
* Read-only. Do not call `salesforce-update-case`, `salesforce-add-case`, `salesforce-add-task` or any add or update tool.
**Validation:**
* If no long calls are found, say so and stop.
* If the priority value High returns nothing for every customer, retry once without the priority filter and report priorities from the results instead.Who it's for
One answer, three teams that use it
Support managers
Catch escalations early
See customers with both long calls and open high-priority cases, so you can step in before they escalate further.
Which customers had calls over 20 minutes this week and have an open high-priority Salesforce case?
Customer success managers
Protect key relationships
Find accounts where the phone time and the open cases both signal trouble, with the call summary to hand.
Show customers with long Contivio calls in the last 14 days who also have open high-priority cases, with the longest call summary.
Escalation owners
Build a daily watch list
Get a short list of customers to review each morning, sorted by open cases and call time.
List customers over 10 minutes on calls yesterday with open high-priority Salesforce cases, case owner included.
How it works
What PopdockAI does when you ask
You set how long counts as long and how far back to look, and your AI assistant reads Contivio and checks Salesforce. It only reads and tells you how many customers it checked.
Ask
You give a minimum call length and how many days to look back, which default to 15 minutes and 7 days.
Read
It reads the long Contivio calls and groups them by customer.
Check
It looks for open high-priority Salesforce cases for each customer, up to 40.
Report
You get matching customers with calls, longest talk time, summaries and open cases.
What PopdockAI provides
The tools behind the answer
Ready made tools for Contivio and one secure connection to your AI tool. No code, no exports.
contivio-get-call
salesforce-get-case
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.
The outcome
See escalations before customers raise them
Related use cases
More ways to put this data to work
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.

.webp)
