Connectors

/

HubSpot

/

Update HubSpot company details
Write

Update HubSpot company records exactly as intended

For sales and ops teams who want company edits made safely, with old values kept, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Update HubSpot company details
Update Northwind Traders in HubSpot: domain northwind.com, industry Wholesale, 250 employees.
Here are the changes for Northwind Traders. No other company uses northwind.com. - Domain: northwindtraders.com to northwind.com - Industry: Retail to Wholesale - Employees: 180 to 250 Shall I save these? The old values will be kept in a note.
HubSpot
Sample figures. Your results come from your own account.
hubspot-get-companies
hubspot-update-company
hubspot-add-company-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

Company edits can clear fields and lose old values

Editing a HubSpot company record by hand risks clearing fields by accident, giving it a domain another company already uses, or changing values with no record of what they were before.

Without PopdockAI

  • Open the company and edit fields by hand
  • Hope no other company uses the new domain
  • Clear a field by accident
  • Lose the old values with no record

With PopdockAI

  • Each change is mapped to a field, and ones it cannot change are named
  • A new domain is checked against other companies
  • You see current and new values before saving
  • Only changed fields are sent, old values are noted and 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:** Apply `{changes}` to the HubSpot company `{company-name}`, changing nothing else.

**Step 1: Find the company**

Call `hubspot-get-companies` with `company-name.contains` = `{company-name}`. If none or several match, list them and stop.

**Step 2: Map the changes**

Map each change to a `hubspot-update-company` parameter: `name`, `domain`, `phone`, `city`, `state`, `country`, `description`, `lifecycle-stage`, `owner-id`. Anything else cannot be changed by this tool; say so and leave it out.

**Step 3: Check**

* If `domain` changes, call `hubspot-get-companies` with `company-domain-name` = the new domain and stop if another company already has it.
* If `lifecycle-stage` moves backwards, warn that HubSpot may refuse it.

**Step 4: Confirm**

Show a table: field, current value, new value. Wait for an explicit yes.

**Step 5: Update and log**

Call `hubspot-update-company` once with `id` = the record-id and only the changed fields. Then call `hubspot-add-company-note` once listing what changed and the old values.

**Step 6: Verify**

Re-read with `hubspot-get-companies` by `record-id` and report the stored values.

**Rules & Guidelines:**

* Only `hubspot-update-company` and `hubspot-add-company-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-deal`, `hubspot-update-ticket`, `hubspot-add-contact-note`, `hubspot-add-deal-note`, `hubspot-add-ticket-note`.
* Never send a field you are not changing; an empty value clears it.
* Do not set `owner-id`. No tool maps a person's name to a HubSpot owner ID, so leave ownership unchanged unless the user gives you a numeric owner ID.

**Validation:**

* If `{changes}` is ambiguous, ask before mapping it.

Who it's for

One answer, three teams that use it

Account managers

Update an account after a call

Record a new domain, size or industry in one message, with the old values kept on record.

Update Contoso in HubSpot: 1,200 employees, industry Manufacturing, city Chicago.

CRM administrators

Avoid domain clashes

A new domain is checked against other companies, so records do not end up sharing one.

Change Fabrikam's domain in HubSpot to fabrikam.io, but check no other company uses it.

Sales operations

Keep a trail of what changed

Every update adds a note with the previous values, so changes can be traced or reversed.

Set Northwind Traders' lifecycle stage to customer and annual revenue to 40 million in HubSpot.

How it works

What PopdockAI does when you ask

You describe the changes and your AI assistant maps them to the company's fields and checks for clashes. Nothing is saved until you have seen current and new values and said yes.

01

Ask

You name the company and describe the changes.

Your AI tool

02

Check

It maps each change to a field, checks a new domain and warns on backwards stages.

hubspot-get-companies

03

Confirm

You see current and new values side by side and say yes.

No items found.

04

Update

It sends only the changed fields, notes the old values and reads it 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-companies

Returns company records from HubSpot CRM, with domain, industry, lifecycle stage, owner, location and revenue from the HubSpot connector. Filter by record id, company domain name, industry, lifecycle stage, annual revenue, state region, company owner, company name, create date, country region.
run-action

hubspot-update-company

Changes an existing HubSpot company. Only the fields you pass are changed; pass an empty value to clear a field. Requires id. Optional: lifecycle stage, name, city, state, phone, owner id, description, country, domain.
run-action

hubspot-add-company-note

Adds a note to a HubSpot company's timeline. Requires company id, note.
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

Company records change exactly as intended

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