/
/
Know the caller's Dynamics 365 Sales history before you call back
For support agents who want a Contivio call enriched with Dynamics 365 Sales phone calls and cases, just by asking their AI assistant.
On this page
Connector
Connect Contivio, pick your AI tool and paste the prompt.
The problem
Agents call back without the CRM history
To see who a caller is, an agent looks at the call, then searches the CRM by number. Formatting differences hide matches, and an open case can be missed before the callback.
Without PopdockAI
- Read the call and note the phone number
- Search Dynamics 365 Sales for that number
- Try again without the country code
- Look through cases for anything still open
With PopdockAI
- The customer number is taken from the call for you
- Matching CRM phone calls are found, with formatting retried
- Open and recent cases are listed
- Ambiguous customers are listed, never guessed
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Build a CRM context brief for the Contivio call `{call-id}`, looking back `{lookback-days}` days (default 30) in Dynamics 365 Sales.
**Step 1: Read the call (contivio server)**
Call `contivio-get-call` with `id` set to `{call-id}`. If nothing comes back, say the call was not found and stop. Note `from`, `to`, `direction`, `queue`, `agent`, `result` and `ai-short-summary`. The customer phone number is `from` for an inbound call and `to` for an outbound call.
**Step 2: Find the CRM side (dynamics-365-sales server)**
Call `dynamics-365-sales-get-phonecalls` with `phone-number` set to the customer phone number. If no phone call matches, try the number without punctuation or country code. Then call `dynamics-365-sales-get-incidents` using the customer name from the phone call's regarding value as `customer.contains`, with `created-on.from` set to the lookback start. If no phone call matches, report the caller as not found in the CRM and skip to Step 3.
**Step 3: Report**
* The call: time, direction, queue, agent, result, short summary.
* CRM phone calls for that number: subject, date, owner.
* Open and recent cases: case number, title, priority, status.
* One line on what the agent should know before calling back.
**Rules & Guidelines:**
* `contivio-get-call` is on the contivio server. `dynamics-365-sales-get-phonecalls` and `dynamics-365-sales-get-incidents` are on the dynamics-365-sales server.
* This is read-only. Do NOT call `dynamics-365-sales-create-case`, `dynamics-365-sales-create-phone-call`, `dynamics-365-sales-create-note`, `dynamics-365-sales-update-case` or any other create or update tool.
* Show only what the question needs; do not repeat full phone numbers more than once.
**Validation:**
* If the call has no `from` or `to` number, report that the match cannot be made.
* If more than one CRM customer matches the number, list them and do not guess.Who it's for
One answer, three teams that use it
Support agents
Call back with context
See the caller's earlier phone calls and open cases before you dial, so you do not ask them to repeat themselves.
Give me the Dynamics 365 Sales context for call 55302 before I call back.
Account managers
Check what support has been dealing with
See recent cases and phone calls for a customer who just called, before you speak to them about anything else.
Customer called on call 55340. What open cases do they have in Dynamics 365 Sales for the last 60 days?
Team leads
Review how a call fits the account history
Understand whether a call was part of a longer issue by seeing the phone calls and cases around it.
For call 55377 from Northwind Traders, show matching phone calls and cases in Dynamics 365 Sales for the last 30 days.
How it works
What PopdockAI does when you ask
You name the call and your AI assistant reads Contivio and Dynamics 365 Sales. It only reads, and it does not create or update any record.
Ask
You give a call and, if you like, how many days to look back.
Read
It reads the Contivio call and takes the customer's phone number from it.
Match
It finds Dynamics 365 Sales phone calls for that number and the customer's recent cases.
Report
It sets out the call, the CRM history and one line on what to know before calling back.
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
microsoft-dynamics-365-sales-get-phonecalls
microsoft-dynamics-365-sales-get-incidents
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
A callback brief in seconds
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)
