Connectors

/

HubSpot

/

Move a HubSpot deal to a new stage
Write

Move HubSpot deals with the reason on record

For sales reps who want deal stage changes made correctly and explained, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Move a HubSpot deal to a new stage
Move the Contoso platform deal to Closed won, the contract was signed today, and set the close date to 7 October.
The Contoso platform deal can move to Closed won in New business. - From: Negotiation - To: Closed won - Close date: 7 October - Note: Contract signed today Shall I make this change?
HubSpot
Sample figures. Your results come from your own account.
hubspot-get-deals
hubspot-get-deal-pipelines
hubspot-get-deal-pipeline-stages
hubspot-update-deal
hubspot-add-deal-note

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

HubSpot

HubSpot
Run it on your own HubSpot data.

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

Try PopdockAI free

The problem

Deal moves happen with no reason on record

Moving a HubSpot deal looks simple, but each pipeline has its own stages, a wrong stage breaks reporting, and the reason is rarely written down. Backwards moves and closed won with no amount slip through.

Without PopdockAI

  • Find the deal and its pipeline
  • Pick the stage from the right pipeline
  • Forget to note why it moved
  • Miss a backwards move or a missing amount

With PopdockAI

  • The stage is matched within the deal's own pipeline
  • Backwards moves, no change and no amount wins are warned
  • You see the change and the note before anything is saved
  • Only the stage and close date change, and the stage 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:** Move the deal `{deal-name}` to the stage `{target-stage}`, record `{reason}` as a note, and set close date `{close-date}` when given.

**Step 1: Find the deal**

Call `hubspot-get-deals` with `deal-name.contains` = `{deal-name}`. If none or several match, list them and stop. Note the current stage, pipeline, amount and close date.

**Step 2: Resolve the stage**

Call `hubspot-get-deal-pipelines` with `label` = the deal's `pipeline-name` to get its pipeline-id, then `hubspot-get-deal-pipeline-stages` with that pipeline-id. Find the stage whose `label` matches `{target-stage}` (exact first, then contains). If none matches, list the pipeline's stages and stop. Do not pick a stage from another pipeline.

**Step 3: Sanity checks**

* If the deal is already in that stage, say so and stop.
* If the target is Closed won and the deal has no amount, warn the user.
* If the move goes backwards in `display-order`, point that out.

**Step 4: Confirm**

Show: deal, current stage to target stage, close date change if any, and the note text. Wait for an explicit yes.

**Step 5: Write**

Call `hubspot-update-deal` once with `id` = the deal's record-id, `deal-stage` = the stage-id, and `close-date` only when `{close-date}` is given. Pass no other fields. Then call `hubspot-add-deal-note` once with `deal-id` = the record-id and `note` = "Moved to <stage label>: {reason}".

**Step 6: Verify**

Call `hubspot-get-deals` with `record-id` = the deal's id and confirm the stage reads back as the target.

**Rules & Guidelines:**

* Only `hubspot-update-deal` and `hubspot-add-deal-note` may write, each once, after confirmation.
* Do NOT call any other write tool: `hubspot-add-contact`, `hubspot-add-company`, `hubspot-add-deal`, `hubspot-add-ticket`, `hubspot-update-contact`, `hubspot-update-company`, `hubspot-update-ticket`, `hubspot-add-contact-note`, `hubspot-add-company-note`, `hubspot-add-ticket-note`.
* Never pass an empty value for a field you are not changing; an empty value clears it.

**Validation:**

* If the update fails, report the error and do not add the note.

Who it's for

One answer, three teams that use it

Account executives

Move deals as soon as things change

Update the stage in one message with the reason noted, so the pipeline keeps up with the deal.

Move the Fabrikam Expansion deal to Negotiation, they asked for revised terms today.

Sales managers

Know why each deal moved

Every stage change carries a note with the reason, so reviews start from facts.

Move the Northwind Traders deal back to Discovery because the champion left, and note why.

Revenue operations

Stop bad wins reaching the report

Closing won with no amount gets a warning, so reports are not skewed by empty deals.

Mark the Contoso renewal deal Closed won with a close date of today, the order form was signed.

How it works

What PopdockAI does when you ask

You name the deal, the stage and the reason, and your AI assistant checks the move makes sense. Nothing is saved until you have seen the change and the note and said yes.

01

Ask

You name the deal, the target stage, the reason and optionally a close date.

Your AI tool

02

Check

It matches the stage in the deal's pipeline and warns on backwards or no-amount moves.

hubspot-get-deals
hubspot-get-deal-pipelines
hubspot-get-deal-pipeline-stages

03

Confirm

You see the change and the note, and say yes.

No items found.

04

Update

It changes only the stage and close date, adds the note and reads the stage back.

Your AI tool

What PopdockAI provides

The tools behind the answer

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

get-data

hubspot-get-deals

Returns deals from HubSpot CRM, with amount, stage, pipeline, close date, owner and associated company and contact from the HubSpot connector. Filter by pipeline name, close date, deal stage name, deal type, record id, company id, deal name, amount, deal owner.
get-data

hubspot-get-deal-pipelines

Returns deal pipelines defined in HubSpot from the HubSpot connector. Filter by archived, label.
get-data

hubspot-get-deal-pipeline-stages

Returns the stages of each deal pipeline, in display order from the HubSpot connector. Filter by label, pipeline id.
run-action

hubspot-update-deal

Changes an existing HubSpot deal. Only the fields you pass are changed; pass an empty value to clear a field. Requires id. Optional: deal name, deal type, amount, deal stage, owner id, pipeline, description, close date.
run-action

hubspot-add-deal-note

Adds a note to a HubSpot deal's timeline. Requires note, deal id.
Read only.Nothing in HubSpot 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

A pipeline you can trust, with reasons on record

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