# Lead statuses

A lead always has exactly one status. New, contacted, qualified and opportunity are open: the lead is still being worked on. Disqualified, won and lost are outcomes: the lead is closed.

<div class="table-scroll"><table><thead><tr><th>Status</th><th>Name in the app</th><th>What it means</th><th>A person can move it to</th></tr></thead><tbody><tr><th scope="row"><code style="white-space:nowrap">new</code></th><td>New</td><td>The lead has arrived and nobody has been in touch yet.</td><td>Contacted, Qualified, Disqualified</td></tr><tr><th scope="row"><code style="white-space:nowrap">contacted</code></th><td>Contacted</td><td>Someone has been in touch with the person.</td><td>Qualified, Disqualified</td></tr><tr><th scope="row"><code style="white-space:nowrap">qualified</code></th><td>Qualified</td><td>The lead is a real prospect for what you sell.</td><td>Opportunity, Won, Lost, Disqualified</td></tr><tr><th scope="row"><code style="white-space:nowrap">disqualified</code></th><td>Disqualified</td><td>The lead is not a prospect. A reason is asked for.</td><td>Nothing: it is an outcome</td></tr><tr><th scope="row"><code style="white-space:nowrap">opportunity</code></th><td>Opportunity</td><td>A concrete deal is being worked on, for example a quote.</td><td>Won, Lost</td></tr><tr><th scope="row"><code style="white-space:nowrap">won</code></th><td>Won</td><td>A sale is recorded for the lead.</td><td>Nothing: it is an outcome</td></tr><tr><th scope="row"><code style="white-space:nowrap">lost</code></th><td>Lost</td><td>The deal did not happen. A reason is asked for.</td><td>Nothing: it is an outcome</td></tr></tbody></table></div>

The first column is the value used in the API, in files and by assistants. The last column is what a person may choose next in the app.

## How a person moves a lead

Open the lead from **Leads**. The card **Move the lead on** shows one button for each allowed step, named for what it does: **Mark contacted**, **Mark qualified**, **Disqualify**, **Make opportunity**, **Mark won**, **Mark lost**. It takes the `manage_leads` ability; see [roles and permissions](https://heymysocial.com/docs/reference/roles-and-permissions).

- **Disqualify** and **Mark lost** ask for a reason. A short reason is what later shows which leads were worth the effort.
- **Mark won** asks for the real amount of the sale and what the amount is: booked, invoiced or collected. A lead cannot be won without its sale. Recording a sale on the card **Opportunities and sales** marks a qualified lead or an opportunity won the same way, unless you untick **Also mark the lead as won**.
- A step to contacted, qualified or opportunity can carry a next step and a due date.

A step that is not in the table is refused: a lead cannot go from new straight to won, and a closed lead does not move on. If the recorded status is simply wrong, correct it instead (below).

An assistant does the same with [update_lead_status](https://heymysocial.com/docs/assistant/tools/update-lead-status) when you tell it what happened, and records the amount with [record_sale](https://heymysocial.com/docs/assistant/tools/record-sale). Someone without a login can report an outcome through a client status link, made on the lead's page or with [create_status_link](https://heymysocial.com/docs/assistant/tools/create-status-link); they see a masked label, never the contact details.

## How a report from outside moves a lead

Events from the API, the signed webhook, a CRM and file imports carry a status too: `lead_contacted`, `lead_qualified`, `sale_won` and the rest of the [event types](https://heymysocial.com/docs/reference/event-types). They follow a looser rule than a person does, because another system has already decided:

- A report may skip steps forward. A new lead that is reported as an opportunity becomes an opportunity.
- A report never moves a lead backward, and never reopens a closed lead. Such a report is stored and changes no status.
- A late `lead_contacted` for a lead that is already further on only sets the time of first contact, when it is the earliest known.
- `sale_won` records the sale and marks the lead won. A lead imported from a file as won, without a sale, becomes an opportunity until the sale is imported.

## Correcting a status

**Correct the status** on the same card sets the status that should have been recorded, with a reason. The earlier status stays in the history, the new entry is marked as a correction, and the event log gets a new event that names the one it corrects. Nothing is erased.

A correction back to an open status clears the closing time and the outcome reason. Through an assistant, `update_lead_status` takes `"correction": true` with a `reason`; it does not accept `won` as a correction, because a won lead needs its sale.

```json
{
  "name": "update_lead_status",
  "arguments": {
    "lead_id": "01jd3x0v9k2m4n6p8q0r2s4t6v",
    "status": "qualified",
    "correction": true,
    "reason": "Marked lost by mistake; the customer is still deciding."
  }
}
```

## What is kept with every change

Each change writes one line of history: the status before and after, who or what made it (a person, an API key, a CRM, a file), the reason, the next step and the time. The lead's page shows it under **History**. The same change is an event in the event log and an entry in the audit log. Free-text reasons stay out of the event log, because a reason can name a person.

Three times are derived from the changes and used in reports:

- the first contact: the earliest move to contacted or qualified;
- the qualification: the first time the lead reached qualified, opportunity or won;
- the closing: when the lead became disqualified, won or lost.

## What the statuses are used for

- **Results.** Qualified leads, won sales and the share of leads with a known outcome are counted from these statuses and times. A lead marked as a duplicate of an earlier one is kept but not counted again.
- **Follow-up.** A new lead that nobody has contacted within the workspace's follow-up time becomes a task.
- **Your CRM.** When status push is switched on for a CRM connection, a change made here is sent to the CRM; a status that just arrived from the CRM is not echoed back. See [the outbound webhook](https://heymysocial.com/docs/webhooks/crm-outbound).
