/
/
Close Pipedrive deals with a reason and a clean record
For sales reps who want to mark a Pipedrive deal won or lost by asking their AI assistant, with a lost reason, a closing note and nothing left dangling.
On this page
Connector
Connect Pipedrive, pick your AI tool and paste the prompt.
The problem
Closed deals with no reason and loose ends
Closing a deal in Pipedrive is more than flipping its status. Lost deals without a reason ruin win-loss reporting, nobody writes the closing note, and leftover follow-ups clutter someone's overdue list for weeks.
Without PopdockAI
- Find the deal and change its status
- Skip the lost reason when in a hurry
- Forget to write a closing note
- Leave open activities to go overdue
With PopdockAI
- A lost reason is required before a lost deal closes
- Open activities on the deal are listed
- You see the status change and closing note before you confirm
- Only status and reason change, and the deal is read back
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Close the deal `{deal-title}` as `{outcome}`, recording `{lost-reason}` when it is lost, and leave a clean record behind.
**Step 1: Check the inputs**
`{outcome}` must be won or lost. If it is anything else, ask which one and stop. If it is lost and `{lost-reason}` is empty, ask for a reason before continuing; win-loss reporting depends on it.
**Step 2: Find the deal**
Call `pipedrive-get-deal` with `title.contains` = `{deal-title}` and `status` = open. If more than one matches, list them (title, organization, stage, value) and stop. Keep deal-id, title, value, currency, stage and owner-name.
**Step 3: Check what is left open**
Call `pipedrive-get-activity` with `deal-id` and `done` = false.
**Step 4: Propose, then wait**
Show the deal (title, organization, stage, value), the change (status to `{outcome}`, with the lost reason), the closing note text, and the open activities that will remain. Wait for explicit confirmation.
**Step 5: Write**
1. `pipedrive-update-deal` with `id`, `status` and, for a lost deal, `lost-reason`. Pass nothing else.
2. `pipedrive-add-note` with `deal-id` and a short closing note: outcome, value, reason, and today's date.
3. Only if the deal was won and the user asks for it: one `pipedrive-add-activity` for the handover or onboarding step, linked by `deal-id`.
**Step 6: Confirm**
Re-read with `pipedrive-get-deal` (`deal-id`) and report the stored status. List the open activities still on the deal and tell the user to close or cancel them in Pipedrive; this tool set cannot mark activities done or delete them.
**Rules & Guidelines:**
* Call `pipedrive-update-deal` exactly once. Do not change the value, stage, owner or close date.
* Do not call `pipedrive-update-activity` to hide the leftover activities.
**Validation:**
* If no open deal matches, say so and stop. If the deal is already won or lost, say which and stop.Who it's for
One answer, three teams that use it
Sales reps
Close deals properly in one message
Mark a deal won or lost with the note and reason in one go, and see what follow-ups are still open.
Mark the Contoso expansion deal as won in Pipedrive.
Sales managers
Get a reason on every lost deal
A lost reason is required every time, so win-loss reports reflect what really happened.
Close the Northwind Traders pilot deal as lost, the budget was cut.
Sales operations
Keep the pipeline tidy
Open activities left on a closed deal are listed, so they can be cleared before they go overdue.
Close the Fabrikam services deal as lost to a competitor and show me what activities are still open.
How it works
What PopdockAI does when you ask
You name the deal and whether it was won or lost, and your AI assistant prepares the close. Nothing is written until you confirm, and value, stage, owner and close date are never touched.
01
Ask
You name the deal and whether it was won or lost, with a reason if lost.
02
Check
It finds the open deal and lists the activities still open on it.
03
Confirm
You see the status change, the closing note and what stays open.
04
Close
It updates the status, adds the note and reads the deal back.
What PopdockAI provides
The tools behind the answer
Ready made tools for Pipedrive and one secure connection to your AI tool. No code, no exports.
pipedrive-get-deal
pipedrive-get-activity
pipedrive-update-deal
pipedrive-add-note
pipedrive-add-activity
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
Every deal closed with a reason and a clear note
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)
