Connectors

/

Pipedrive

/

Close a Pipedrive deal as won or lost
Write

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.

Try PopdockAI free
Get a live demo
Close a Pipedrive deal as won or lost
Close the Fabrikam renewal deal in Pipedrive as lost, they went with a cheaper vendor.
Fabrikam renewal, Negotiation stage, 24,000, is ready to close as lost. - Lost reason: went with a cheaper vendor - Closing note: lost, 24,000, cheaper vendor, 7 October 2026 - Still open: 2 activities, which you can tidy afterwards Shall I close the deal?
Pipedrive
Sample figures. Your results come from your own account.
pipedrive-get-deal
pipedrive-get-activity
pipedrive-update-deal
pipedrive-add-note
pipedrive-add-activity

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Pipedrive

Pipedrive
Run it on your own Pipedrive data.

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

Try PopdockAI free

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.

Prompt
**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.

Your AI tool

02

Check

It finds the open deal and lists the activities still open on it.

pipedrive-get-deal
pipedrive-get-activity

03

Confirm

You see the status change, the closing note and what stays open.

No items found.

04

Close

It updates the status, adds the note and reads the deal back.

Your AI tool

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.

get-data

pipedrive-get-deal

Returns Pipedrive deals with stage, pipeline, value, probability, owner and expected close date. Filter by status, stage, owner, organization, value range, expected close date range or title.
get-data

pipedrive-get-activity

Returns Pipedrive activities (calls, meetings, tasks, deadlines). Filter by due date range, type, done, assigned user, person, deal or subject text.
run-action

pipedrive-update-deal

Changes an existing Pipedrive deal: moves it to another stage, marks it won or lost with a reason, or changes its title, value, owner or expected close date.
run-action

pipedrive-add-note

Adds a note to a Pipedrive deal, person or organization.
run-action

pipedrive-add-activity

Schedules an activity (call, meeting, task, email and more) in Pipedrive with a subject, type, due date, time and note, optionally linked to a deal, person or organization.
Read only.Nothing in Pipedrive 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

Every deal closed with a reason and a clear note

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