# Pipedrive activity sync

> Exactly how Whatsable matches a WhatsApp contact to a Pipedrive person, when it creates a person, deal or lead, when it updates or reopens one, and what each activity contains.

Once a number has **Write activities** on, and at least one record type chosen, Whatsable writes that number's WhatsApp conversations into Pipedrive. This page says what Whatsable creates, what it updates, and what it never touches.

Messages your team sends from the inbox, your AI agent, a broadcast, the API or the WhatsApp Business app sync the same way as a reply you type in Pipedrive. The activity names the source, for example "You (via AI)".

## What Whatsable creates and updates

| Record | Created | Updated | Never |
|---|---|---|---|
| **Person** | When the first message comes from a number that matches nobody, and **Auto-add chat as new person** is on | Only the **WhatsApp Username** field, when the contact has a WhatsApp username | Name, phone, email, owner or any other field of an existing person. Never deleted |
| **Deal** | When **Action on new chat** says to create one: the person has no open deal or lead, or only closed deals and the closed-deal action is **Create new Deal** | **Reopened** (set back to open) when the closed-deal action is **Reopen last closed deal** | Title, stage, value, owner or pipeline of an existing deal. Never closed, moved or deleted |
| **Lead** | When **Action on new chat** says to create one, and the person has no open deal or lead | Never | Never edited, converted or archived |
| **Organization** | Never | Never | Receives an activity only when the person already belongs to one |
| **Activity** | For each message, or for each interval window, on each record type you turned on | Never. Each one is a new, done activity | Never edited or deleted |

## Match a contact to a person

Whatsable looks for the person in Pipedrive each time a message arrives, and remembers the match for that contact. If the remembered person was deleted, it searches again.

**Search by phone**

Whatsable searches Pipedrive for the contact's phone number.

**Check that it is the same number**

A search hit counts only if the digits are the same, or one number ends with the other. The shorter number needs at least 8 digits, and one leading `0` (a national trunk prefix) is ignored. So `017…` matches `+88017…`, and a match on the last 4 digits does not count.

**Pick one person**

When several persons share the number, Whatsable uses the first match that Pipedrive returns. The activity goes to that one person.

**No phone number? Search by username**

A contact with a WhatsApp username and no phone number is searched in the **WhatsApp Username** person field. Whatsable adds that field to Pipedrive when you connect, if it is missing.

### When Whatsable creates a person

A person is created only when all of these are true:

- **Auto-add chat as new person** is on for the number.
- The message is the first one that finds no matching person. A delayed interval batch never creates a person.
- The contact has a phone number or a WhatsApp username.

The new person gets the contact's WhatsApp profile name, or the phone number when there is no name, or the username, or "WhatsApp contact". The phone number is saved as the primary phone, and the **WhatsApp Username** field is filled when the contact has one. A new person has no organization.

> [!NOTE]
>
> A person that Whatsable creates counts as new in that run, so it gets its first activity at once, even with an interval. If someone deletes a person while messages for them wait in an interval, Whatsable does not create a replacement.

### When Whatsable updates a person

Only the **WhatsApp Username** field. When a matched person's contact has a WhatsApp username, Whatsable writes it into the field. Nothing else on an existing person changes.

## Choose the deal or lead

After Whatsable has the person, it looks at their deals and leads. It checks these rules in order and stops at the first that applies.

| # | The person has | What Whatsable does |
|---|---|---|
| 1 | One or more **open deals** | Adds the activity to every open deal (up to 25), and to every open lead (up to 25). Creates nothing |
| 2 | No open deal, but **won or lost deals**, and a **Closed deals** action is set | Runs the closed-deal action below |
| 3 | No open deal, but **open leads** | Adds the activity to those leads (up to 25). Creates nothing |
| 4 | No open deal or lead, or Whatsable just created the person | Runs the **No open deals or leads** action |

An open lead never hides a closed deal: a person with an open lead and only closed deals follows rule 2 first.

### No open deals or leads

| Action | What it creates |
|---|---|
| **Create new deal** | One deal in the pipeline you chose, linked to the person |
| **Create new lead** | One lead linked to the person. A lead has no pipeline |
| **Create deal and lead** | Both. The deal needs a pipeline |
| **Do nothing** | Nothing. The activity goes only to the person, and the organization if the person has one |

A deal or lead that Whatsable creates is titled with the contact's name followed by "(Via WhatsApp)". Later messages find that open deal or lead (rule 1), so one chat does not make a second one.

> [!WARNING]
>
> An action that creates a deal needs a **Pipeline**. Whatsable will not save it without one. If a pipeline is somehow missing when a message arrives, that message is skipped.

### Closed deals

This applies only to a person that already existed in Pipedrive, and only when you chose a closed-deal action.

| Action | What Whatsable does |
|---|---|
| **Create new Deal** | Creates a new deal in the pipeline you chose, linked to the person. Open leads also get the activity |
| **Continue syncing to a closed deal** | Adds the activity to the closed deals that closed most recently (up to 5). Creates and reopens nothing |
| **Reopen last closed deal, then sync messages** | Sets the most recently closed deal back to open, and adds the activity to it |

**Create new Deal** and **Reopen** act only when a message arrived after the deal closed. Messages from before the close, for example ones that waited in an interval while the deal was still open, stay on that closed deal. After a new or reopened deal exists, later messages follow rule 1 and go to it.

If you leave the closed-deal action empty, a person with only closed deals is handled like a person with no deals, and the **No open deals or leads** action applies.

## What an activity contains

<details>
<summary>One message, several activities</summary>

Whatsable writes one activity for each record type you turned on, on each record found: the person, the person's organization, each deal, and each lead. One WhatsApp message can therefore make up to four kinds of activity. A retry never duplicates one.

</details>

<details>
<summary>Subject and time</summary>

The subject reads "Whatsapp chat (2026-10-29) via Whatsable (+15551234567) on +15557654321 (Your business)". The date is in UTC. The first number is the contact. The second number is the WhatsApp number of your business, with its verified name when Meta has one. Whatsable marks the activity as done.

</details>

<details>
<summary>Activity type</summary>

With **Automatic**, Whatsable uses Email when that type is on in Pipedrive, then Task, Call, Meeting, then any other active type. If you chose a type and it is off in Pipedrive, Whatsable uses an active one until you choose another.

</details>

<details>
<summary>Note: who said what</summary>

Each line shows the speaker in bold italics, then the text. A received message shows the contact's name, or their number. A sent message shows "You", or the source: "You (via AI)", "You (via broadcast)", "You (via API)", "You (via WhatsApp Business App)" or "You (broadcast test)". A message without text shows its type, for example "[image]".

</details>

<details>
<summary>Voice notes</summary>

For a voice note from the contact, Whatsable waits briefly for the transcript, then writes "[audio transcript]" and the words. If no transcript arrives in time, it writes "[audio]".

</details>

<details>
<summary>Files</summary>

Images, documents, audio and video of up to 50 MB are attached to the activity. A file over 50 MB is left out. When one message creates several activities, the file is attached to the first one written. A file that fails to attach does not stop the sync.

</details>

## When it syncs

**Instantly**

Each message becomes its own activity within a few seconds.

**Every 10, 30 or 60 minutes**

For a person that already exists, Whatsable waits, then writes one activity per record with all the messages of that period. The messages are listed newest first, each with its time in your timezone. A person that Whatsable creates still gets the first activity at once.

A message that is waiting is retried automatically. A sync that stays stuck for about 10 minutes is queued again.

## When a message does not sync

Whatsable skips a message, and does not try it again later, in these cases:

| Reason | What to do |
|---|---|
| Pipedrive is disconnected | Connect again. Messages from the gap never sync |
| The plan stopped including Pipedrive, or a payment problem closed it | See [Plans and billing](/integration/pipedrive/reference#plans-and-billing) |
| **Write activities** is off for that number, or the number is not in **Activity sync numbers** | Turn it on |
| The number is over your plan's number limit | An owner adds it to the plan in [**Settings → Channels**](https://console.whatsable.app/settings/channels) |
| The contact has no phone number and no WhatsApp username | Nothing to match. Nothing syncs |
| No person matches and **Auto-add chat as new person** is off | Turn it on, or add the person in Pipedrive |
| A deal action is chosen but no pipeline is saved | Choose a pipeline in the settings |

When Pipedrive itself refuses a write, Whatsable retries a few times. It stops at once, without retries, when Pipedrive says the company account is not open (for example, Pipedrive's own trial ended or it has no payment details), or when it refuses every activity type.

## Chat on the deal or person

The Whatsable chat window in Pipedrive does not require sync to be on. See [Chat window](/integration/pipedrive/chat).