Connectors

/

HubSpot

/

Reassign open HubSpot tasks
Write

Hand over a rep's open HubSpot tasks in one pass

For sales managers who need a departing or moving rep's open tasks reassigned in HubSpot, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Reassign open HubSpot tasks
Sam Patel is leaving. Move all his open HubSpot tasks to owner ID 51234567.
Owner ID 51234567 is Lee Chen, lee@contoso.com. Sam Patel has 23 open tasks. - Call Northwind Traders about renewal, due 2026-11-03, HIGH - Send pilot pricing to Fabrikam, due 2026-11-05, MEDIUM - Plus 21 more, due between 2026-11-06 and 2026-12-18 Shall I move all 23 from Sam Patel to Lee Chen?
HubSpot
Sample figures. Your results come from your own account.
hubspot-get-users
hubspot-get-tasks
hubspot-update-task

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

Handing over a rep's tasks one at a time misses some

When a rep leaves or changes territory, their open HubSpot tasks need a new owner before anything slips. Moving them one at a time is slow, and it is easy to miss some, reassign completed ones or change more than the owner.

Without PopdockAI

  • Filter the rep's open tasks
  • Open each task and change the owner
  • Accidentally include completed tasks
  • Miss a few that keep the old owner

With PopdockAI

  • The new owner id is checked against HubSpot users
  • Only open tasks are listed, never completed ones
  • You see the count and the old and new owner first
  • Only the owner changes, and failures are reported

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Reassign every open task assigned to `{from-assignee}` to the HubSpot owner `{to-owner-id}`, optionally only tasks due before `{due-before}`.

**Step 1: Check the new owner**

`{to-owner-id}` must be a numeric HubSpot owner ID. If it is not a number, ask for the owner ID and stop. Call `hubspot-get-users` with `record-id` = `{to-owner-id}` and, if that returns a user, show their name and email; if it returns nothing, warn that the ID could not be matched to a user and ask whether to continue.

**Step 2: Find the tasks**

Call `hubspot-get-tasks` with `assigned-to` = `{from-assignee}`, `max-records` = 100, and `due-date.to` = `{due-before}` when given. Keep only tasks whose `task-status` is not COMPLETED. If none remain, say so and stop.

**Step 3: Confirm**

Show the count and a table: title, due date, priority, status, contact email. State the old and new owner. Wait for an explicit yes.

**Step 4: Reassign**

Call `hubspot-update-task` once per task with `id` = its record-id and `owner-id` = `{to-owner-id}`. Change nothing else.

**Step 5: Report**

Report how many moved and list any that failed with the error. If the first two calls fail on `owner-id`, stop and tell the user the ID is probably not a valid owner ID.

**Rules & Guidelines:**

* Only `hubspot-update-task` may write, once per task, after Step 3.
* Do NOT call any other write tool: no other hubspot-add, hubspot-update, hubspot-rename, hubspot-remove, hubspot-subscribe, hubspot-unsubscribe or hubspot-import tool.
* Never reassign completed tasks.

**Validation:**

* If more than 100 tasks match, reassign the first 100, then tell the user to run the prompt again.
* If `{from-assignee}` matches more than one person, list them and stop.

Who it's for

One answer, three teams that use it

Sales managers

Hand over a leaver's work quickly

Move every open task from a departing rep to their replacement before anything slips.

Tom Reyes is leaving. Move all his open HubSpot tasks to owner ID 61234567.

Sales operations

Rebalance territories cleanly

Reassign tasks due before a date without touching subject, notes or completed work.

Move Priya Shah's open HubSpot tasks due before December 1 to owner ID 72345678.

Customer success leads

Cover for someone on leave

Hand a colleague's open tasks to a teammate in one request, with the count shown first.

How many open tasks does Dana Whitfield have in HubSpot? Move them to owner ID 83456789.

How it works

What PopdockAI does when you ask

You name the current assignee and the new owner, and your AI assistant checks the owner and lists the open tasks. Only the owner changes, and only after you confirm.

01

Ask

You name the current assignee and give the new owner ID.

Your AI tool

02

Check

It confirms the new owner ID matches a HubSpot user.

hubspot-get-users

03

Confirm

You see the open tasks and the old and new owner, and say yes.

No items found.

04

Reassign

It changes only the owner on each task and reports any failures.

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-users

Returns HubSpot users, with name, email, job title, teams, manager and access status from the HubSpot connector. Filter by default team formerly main team, email, deactivated, last name, record id.
get-data

hubspot-get-tasks

Returns tasks in HubSpot, with title, status, priority, type, due date, assignee and related contact from the HubSpot connector. Filter by assigned to, is overdue, due date, task title, task status, task type, contact email, priority.
run-action

hubspot-update-task

Updates a task in HubSpot. Only the fields you pass are changed. Required: Task ID. Optional: Subject, Notes, Due date, Status, Priority, Type, Owner ID. Writes to HubSpot.
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

Handovers done in one pass

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