> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecorn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Track job changes in HubSpot

> Watch a HubSpot segment of champions or customers, find out when they change company or get promoted, and update HubSpot with contacts, notes, tasks and a webhook.

Your best prospects are often people who already know you: a champion who
moves to a new company, a customer contact who gets promoted. Pipecorn watches
a HubSpot segment of these people and, once a month, tells you who changed job.
It can then:

* create or update the HubSpot contact, and move it to the new company;
* leave notes on the old and the new contact;
* create a task for the rep who knows the person;
* record the change in a **Job Changes** custom object and gather the contacts
  in a segment;
* find their new email and phone number;
* send each change to a webhook, for your own routing rules.

The setup takes four steps: clean the segment in HubSpot, import it into
Pipecorn, create a **Job changes** alert on it, and choose what the alert does
with each change.

**1. HubSpot segment**

The contacts to follow, each with a LinkedIn profile URL.

**2. Pipecorn list**

The segment imported into Pipecorn, kept in sync every day.

**3. Job changes alert**

Checks every contact of the list once a month.

**4. HubSpot, webhook and email**

Each change is written to HubSpot, sent to your webhook and emailed to you.

## Before you start

* **HubSpot is connected and set up.** Contact, company and user mappings are
  filled in. See [Connect HubSpot](https://docs.pipecorn.com/integrations/hubspot.md#connect-hubspot).
* **Your plan includes alerts.** Each Job changes alert counts as one alert in
  your plan.
* **Credits.** Each job change found costs 1 credit, and the alert pauses when
  your balance runs out. On some plans job changes count toward the plan's lead
  limits instead; the alert's page says which applies to you. Finding emails and
  phones costs extra, see [Enrich the people who moved](#enrich-the-people-who-moved).

## 1. Prepare the segment in HubSpot

Pipecorn recognises each person by their LinkedIn profile, so the contacts you
want to follow need a LinkedIn profile URL in HubSpot. A contact without a
usable URL is imported but can't be tracked.

**1. Pick the LinkedIn property**

Pipecorn reads the property mapped to **Linkedin Profile Url** on the
**Contact Mapping** tab. When nothing is mapped, it tries `hs_linkedin_url`,
then `linkedin_url`, `lemlistlinkedinurl`, `linkedinprofileurl`, `linkedin`
and `hs_linkedin_bio`. If your portal has several LinkedIn properties, map
the one your team actually fills.

**2. Clean the values**

Look for values that aren't a profile URL: `NA`, `-`, text around the URL,
a LinkedIn search URL, or a profile that no longer exists. Making the
property a URL-type property in HubSpot stops new free-text values.

**3. Build the segment**

Filter your contacts with your own rules (closed-won champions, contacts
who joined more than five calls, product users…) and add **LinkedIn URL is
known**. Use an active segment if you want new contacts to be followed
automatically.

> [!TIP]
>
> Start with a test segment of about 100 contacts. You see how many Pipecorn
> can track, and what a run writes to HubSpot, before rolling it out to
> thousands of contacts.

## 2. Import the segment into Pipecorn

**1. Create the list**

In Pipecorn, create a new list, choose **Import from your CRM**, then
**Import leads**.

**2. Pick the segment**

Choose your HubSpot contact segment and click **Import leads**.

**3. Watch the segment**

Turn on **Watch the segment**, or later pick **Watch HubSpot segment** in
the list's menu.

Pipecorn imports each contact with their name, job title, email, LinkedIn URL,
company and HubSpot record ID, and links the lead to its HubSpot record. The
import doesn't use your lead extraction quota.

The job title and company imported from HubSpot are the **starting point**:
the first check compares them with each person's current job.

With **Watch the segment** on, Pipecorn reads the segment every morning, adds
the contacts that joined it and removes the ones that left. The alert tracks
whoever is on the list, so a contact added to the segment is checked from the
alert's next run. See [Watch the segment](https://docs.pipecorn.com/integrations/hubspot.md#watch-the-segment).

## 3. Create the Job changes alert

Open the list and click **Create alert**. You can also go to **Alerts → New
alert → Job changes**, pick the list under **Select Lead List** and click
**Preview results**, which shows the recent job changes on the list before you
create anything.

* **Alert name**: defaults to `Job changes - <list name>`.
* **Frequency**: job changes are checked once a month. This can't be changed:
  people take a few weeks to update their LinkedIn profile, so checking more
  often wouldn't find changes sooner.
* **Disable first run**: off by default. See below.

Click **Create alert**. The alert appears in **Alerts**, active, with the type
**Job Changes**.

### The first run

With **Disable first run** off, the alert checks the whole list right away and
reports the people whose new role started in the **last 90 days**. You catch the
recent moves straight away without being flooded with changes from years ago,
when the HubSpot data was last updated.

With **Disable first run** on, the alert only records where everyone works
today. Nothing is reported or charged, and the first changes come with the next
monthly run.

### How a change is detected

On each run, Pipecorn compares each tracked person's current job in the
Pipecorn people database with the last job it knows:

| What changed | Reported as | `hire_type` |
| - | - | - |
| The company | A company change | `new_hire` |
| The job title, at the same company | A promotion | `promoted` |

* On the first run, the last known job is the title and company imported from
  HubSpot. After that, it's what the previous run found, so each change is
  reported once.
* Company names are compared loosely: `Acme` and `Acme Inc.` are the same
  company.
* A person whose current role has no start date on their profile is skipped
  until it has one.
* A change is reported by the monthly run after it shows up on the person's
  profile, not on the day it happens.

> [!NOTE]
>
> Pipecorn compares one current role per person. Someone who adds a new current
> position while keeping the old one can be reported as having moved. Each lead
> in the webhook carries `current_positions_count`, so your workflow can hold
> back changes where it is above 1.

## Tracked and untracked contacts

The alert's **Tracked leads** tab lists every contact of the list, filtered by
**Total leads**, **Tracked** and **Untracked**.

A contact is **untracked** when Pipecorn can't match it to a LinkedIn profile.
The table labels it **No LinkedIn match**. The usual causes:

* the LinkedIn URL is empty, or isn't a profile URL (`NA`, a LinkedIn search
  URL…);
* the URL points to a profile that no longer exists, or to the wrong person;
* the person isn't in the Pipecorn people database yet.

Fix the URL in HubSpot and import the segment again. If the URL is right and
the person still isn't matched, contact [support](mailto:mathieu@pipecorn.com)
to have the profile added.

To stop following someone, click **Untrack** on their row. **Track again**
brings them back.

## Choose who is reported

The alert's **Settings** tab, under **General settings**:

* **Only qualified leads**: only qualified leads are sent to the webhook, the
  CRM and your other integrations.
* **Persona**: only report the job changes that match one of your
  [personas](https://docs.pipecorn.com/api-reference/endpoints/personas/index.md). If a contact moves to a
  sales role and your persona is marketing leaders, that change isn't sent. The
  changes that don't match stay on the alert's run, marked **Persona mismatch**,
  and are still charged. Leave it on **All job changes** to report everyone.

## Enrich the people who moved

Under **Enrichment**, turn on **Enable enrichment** and pick **Email addresses
only**, **Phone numbers only** or **Email and phone numbers**. Pipecorn then
looks for the new work email and phone of each person who moved, before
anything is sent to HubSpot or your webhook.

Enrichment is charged on top of the job change, only when something is found:
3 credits per email and 30 credits per phone number.

## Write the changes to HubSpot

Under **Integrations → CRM Integrations**, turn on **Automatically send leads to
CRM**. Each run then pushes its job changes to HubSpot. The other options shape
what is written.

### What happens by default

With only **Automatically send leads to CRM** on:

**When someone changes company**, Pipecorn:

1. finds or creates the new company in HubSpot;
2. creates a new contact for the new job, linked to the new company, with the
   properties of your contact mapping. Its owner follows your
   [user mapping](https://docs.pipecorn.com/integrations/hubspot.md#assign-owners);
3. leaves the old contact as it is, with a note:
   `[Pipecorn Job changes] Contact changed company and is now <title> at <company>`
   and a link to the new contact;
4. adds a note on the new contact:
   `[Pipecorn Job changes] Contact previously was <title> at <company>` with a
   link to the old contact.

**When someone is promoted**, Pipecorn finds their contact with the
[duplicate check](https://docs.pipecorn.com/integrations/hubspot.md#duplicate-check), updates its job title
and company, and adds a note:
`[Pipecorn Job changes] Contact was promoted to <new title> from <old title> on <date>`.
If no contact is found, it creates one.

You keep the full history this way: the old contact stays on the old company,
and the new one starts on the new company.

### Update existing contact

Turn on **Update existing contact** to keep one contact per person. On a
company change or a promotion, Pipecorn updates the HubSpot contact the person
was imported from instead of creating a new one:

* the job title and company are refreshed, unless you set them to **Don't
  change** in your mapping. The other fields follow your mapping's update rules;
* the contact is moved to the new company, which becomes its primary company.
  If HubSpot can't settle on the new company (several companies match, or it
  refuses to create one), the contact stays on its old company and keeps its
  company name;
* a note keeps the previous role on the contact:
  `[Pipecorn Job changes] Contact changed company and is now <title> at <company>`
  followed by `Previously <title> at <company>`, or the promotion note above
  for a new title at the same company.

### Require an email

Turn on **Require an email to push to CRM** if your HubSpot rules need every
contact to have an email. Only the people with a deliverable or risky email are
pushed; the others stay in Pipecorn. Turn on email enrichment as well, or most
people who moved won't have an email at their new company yet.

### Add a note

**Add a note** is on by default and writes the notes described in
[What happens by default](#what-happens-by-default) and
[Update existing contact](#update-existing-contact). Turn it off to write no
notes.

### Create a task

Turn on **Create a task** to give a rep a HubSpot task for each job change. The
task is attached to the contact and its company.

| Setting | What it does | Default |
| - | - | - |
| **When the contact changes company** | Create a task on company changes | On |
| **When the contact changes title** | Create a task on promotions | On |
| **Assign to** | **Contact owner** or **Nobody** | Contact owner |
| **Priority** | **None**, **Low**, **Medium** or **High** | None |
| **Due in (days)** | Days from the run to the due date | 1 |
| **Task title** | The task's subject | `🚀 Job change – {full_name}` |
| **Task description** | The task's body | See below |

With **Contact owner**, the task goes to the owner of the contact the change
was found on: the rep who knows the person. When that contact has no owner, it
goes to the owner of the contact Pipecorn just wrote.

The title and description take these variables: `{first_name}`, `{last_name}`,
`{full_name}`, `{new_title}`, `{new_company}`, `{previous_title}`,
`{previous_company}` and `{linkedin_url}`. A misspelled variable is left as
typed, so you spot it in the task. The default description is:

```text theme={null}
New position: {new_title} at {new_company}.
Previous position: {previous_title} at {previous_company}.
LinkedIn: {linkedin_url}
```

Tasks are the same for every change of the alert. To route them by your own
rules, for example to an account executive when the new company is a target
account and to an SDR otherwise, use the [webhook](#receive-the-changes-by-webhook)
and create the tasks from your own workflow.

### Custom Object sync

Turn on **Custom Object sync** to also add a record to a **Job Changes** custom
object for each change, linked to the contact. Pipecorn doesn't create the
object: create it in HubSpot first.

* **Object**: its plural label is `Job Changes`, or its internal name contains
  `job_change`.
* **Properties**: Pipecorn fills `name` (full name), `jobtitle` (new title),
  `company` (new company), `email` and `type` (`New hire` or `Promoted`).
  Create these properties on the object.
* **Association**: a contact-to-Job Changes association named
  `contact_to_job_changes`.

If the portal has no such object, the option does nothing.

### Push to segment

Turn on **Push to segment** to gather the contacts of each run in a static
HubSpot segment named `Pipecorn Alert - Job changes - <alert name>`. The first
run creates it and later runs add to it, so you can build HubSpot workflows or
reports on it.

## Receive the changes by webhook

Under **Integrations → Webhook**, paste your **Webhook URL**. After each run that
finds at least one change, Pipecorn POSTs the people who changed job, once
enrichment is done. A run that finds nothing sends nothing. Turn on **Enable
streaming** to receive one request per person instead.

Each lead carries the new job in `title`, `company`, `start_date_job` and
`hire_type`, and the job before the change in `previous_job`. Trimmed to its
main fields, a payload looks like this:

```json theme={null}
{
  "name": "Job changes - Champions - 2026-11-26",
  "id": "8f0c7a2e-4d1b-4e6a-9c3f-2b5d7e9a1c4f",
  "leads": [
    {
      "first_name": "Jane",
      "last_name": "Smith",
      "full_name": "Jane Smith",
      "title": "VP of Sales",
      "hire_type": "new_hire",
      "previous_job": {
        "title": "Head of Sales",
        "company_name": "Acme"
      },
      "start_date_job": "2026-10-01",
      "current_positions_count": 1,
      "status": "QUALIFIED",
      "rejection_reason": null,
      "linkedin_profile_url": "https://www.linkedin.com/in/jane-smith",
      "most_probable_email": "jane.smith@newco.com",
      "most_probable_email_status": "deliverable",
      "phones": [],
      "location": "Paris, Île-de-France, France",
      "company": {
        "name": "NewCo",
        "website": "https://newco.com",
        "linkedin_url": "https://www.linkedin.com/company/newco",
        "employee_count": 120
      }
    }
  ],
  "custom_attributes": {}
}
```

The lead has the same fields as in [People search](https://docs.pipecorn.com/api-reference/endpoints/extract/leads.md),
plus `previous_job`:

* `previous_job.title` and `previous_job.company_name` are the role the alert
  knew before the change: the one imported from HubSpot on the first run, then
  the one the previous run found. Either can be `null` when it isn't known.
* `previous_job` is `null` on every other kind of alert.

With `previous_job` and `hire_type`, your workflow can route each change on
where the person comes from and where they go. The payload doesn't carry the
HubSpot record ID: look the contact up by `linkedin_profile_url`.

Polling the run's `results_url` returns `previous_job` on each lead too.

### Test your endpoint

A Job changes alert runs once a month, so you don't have to wait for a change
to build your workflow. Click **Send test payload** under the webhook URL: it
sends one sample lead, Jane Sample, in the exact format of this alert's runs
(one lead on its own when **Enable streaming** is on), with `"test": true` at
the top level. Pipecorn then tells you what your endpoint answered.

* It uses the URL and streaming choice in the form, even before you click
  **Save changes**.
* It costs nothing and creates no run.
* Skip bodies with `"test": true` in your workflow if you don't want the
  sample to reach HubSpot or your sequences.
* Every alert has the button, and each sends a sample in its own format.

The run's page in Pipecorn has a **Resend data** button to send a run's payload
again while you build your workflow.

## Get an email

Pipecorn emails you a summary after each run that finds changes, when alert
emails are on in your notification settings. Under **Email recipients**, add up
to 10 teammates who should receive their own copy.

## Without an alert: tasks from the watched segment

A watched HubSpot list has a lighter option in its menu:

* **Update fields**: **Never**, **Every day**, or every 7, 14 or 30 days.
  Pipecorn writes what its database knows more recently (title, company,
  location…) back to the HubSpot contacts of the list, following your field
  rules.
* **Task on job change**: when an update finds a new title or company, a
  HubSpot task with the default title and description goes to the contact
  owner. Never on the first update, which only aligns the list.

It updates the existing contacts and creates tasks, nothing else: no new
contacts, notes, custom object records, segment, webhook or enrichment. Use the
Job changes alert for those.

## Set it up through the API

You can create the same alert with [`POST /alerts`](https://docs.pipecorn.com/api-reference/endpoints/alerts/create)
and `type: job_changes`, sending the contacts you read from HubSpot. Each
contact needs `linkedin_url`, or all of `first_name`, `last_name` and
`company_name`, up to 10,000 per alert.

```bash theme={null}
curl -X POST https://app.pipecorn.com/api/v2/alerts \
  -H "X-API-KEY: $PIPECORN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: champions-2026-11" \
  -d '{
    "type": "job_changes",
    "name": "Champions",
    "webhook_url": "https://your-company.com/webhooks/job-changes",
    "contacts": [
      { "linkedin_url": "https://www.linkedin.com/in/jane-smith" },
      { "first_name": "John", "last_name": "Doe", "company_name": "Acme" }
    ]
  }'
```

The `company_name` you send is the starting point of the first check, like the
company imported from HubSpot. The alert then works like one created in the
app: open it in **Alerts** to turn on the HubSpot settings above.

There are two differences with a HubSpot import:

* The contacts carry no HubSpot record ID, so Pipecorn finds each HubSpot
  contact with the duplicate check, and doesn't add the note on the old
  contact.
* The list isn't watched: create a new alert to follow new contacts.

## FAQ

> [accordion] Can the alert run every week?
>
> No. Job changes are checked once a month: people take weeks to update
> their LinkedIn profile, so a weekly check wouldn't find changes sooner.

> [accordion] How long after someone moves am I told?
>
> The change has to show up on their LinkedIn profile, then in the Pipecorn
> people database. The next monthly run after that reports it, so expect a
> delay of up to a month on top of the time the person takes to update
> their profile.

> [accordion] What happens when I run out of credits?
>
> The run delivers the changes your balance covers, and the alert is turned
> off. You get an email; turn the alert back on after topping up. The
> changes that weren't delivered are found again by the next run.

> [accordion] Why are some contacts untracked?
>
> Pipecorn couldn't match them to a LinkedIn profile, usually because of a
> missing or wrong LinkedIn URL in HubSpot. See
> [Tracked and untracked contacts](#tracked-and-untracked-contacts).

> [accordion] Can I also leave a note on the old company?
>
> Not from the alert: notes go on the contacts. Use the webhook to add one
> from your own workflow.

> [accordion] Does the alert follow the other CRMs?
>
> The write-back options on this page (new contact, notes, tasks, custom
> object, segment) are HubSpot only. With another CRM, **Automatically send
> leads to CRM** pushes the people who moved as regular contacts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.