# Sales: qualifying leads

This page is for sales teams that let Lumate's agents phone leads. It covers what the call finds out and writes on the card, how a hot lead reaches a salesperson, what the reports show, and how outcomes reach your CRM. Who may be called, and when, is a separate matter: see [Security and compliance](/docs/security).

## What a call finds out

During a call the agent asks the scenario's questions, **one at a time**, in its own words, and never reads them as a form. When it knows enough, or the call is ending, it records the outcome with the `qualify_lead` tool. The agent that follows up after the call can record it too, if the call did not.

| Field | Meaning |
|---|---|
| Need, budget, timeline | What the lead said, in a sentence. Left empty when it was not said: the agent never guesses. |
| Authority | Decision maker, influences the decision, does not decide, or not known. |
| Score | 0 to 100: how ready the lead is to buy. |
| Category | **Hot** (70 and up), **warm** (40 to 69), **cold**, or **disqualified** (with a reason). |
| Reason, next step, recommended owner | Why, what should happen next, and which salesperson or role should take it. |

The result is written on the **card** (a **Qualification** section and a badge on the board and the list) and in its **history**, one entry per answer. A later call replaces the category, score, next step and owner, and keeps need, budget, timeline and authority that it did not ask again.

**The list.** Contacts → All has a **Lead category** filter (hot, warm, cold, disqualified, or not qualified yet) and **Best score first**. The same two choices are in the address (`?category=hot,warm&sort=score`).

### The questions are the scenario's

**Playground → Scenarios → a scenario → Qualifying the lead.** Each question has a key (`need`, `budget`…), a label, the words to ask, and whether it is needed. Add, reorder or remove them; **Start from BANT** fills Budget, Authority, Need, Timeline. Below them, list what **disqualifies** a lead ("student or hobby use"): the agent then records *disqualified* with the reason and ends the call politely. A scenario with no questions does not qualify. Only a company admin can change the questions and disqualifiers: they go straight into what the agent says on the call.

**How a score becomes a category.** The agent gives a score from 0 to 100 and the category follows it: **hot from 70, warm 40–69, cold below 40**, unless the lead is *disqualified*. The agent's own word for the category is not trusted. A lead is handed to a salesperson only when the score is 70 or more **and** at least two of need, budget, timeline and who decides were actually said in the conversation. A hot lead stays hot when a later call, or the agent that follows up, scores it lower (it may only add what is missing); a member changes it by hand.

### Sales packs

**Scenarios → Sales packs** adds a ready scenario for your kind of business, in Turkish or English: a script, an opening line, the questions and the disqualifiers.

| Pack | For |
|---|---|
| B2B software and IT services | Need, budget, timeline, who decides, company size |
| Real estate | Buy or rent, area, budget, when, who decides, finance |
| Clinic and health | What for, who, how urgent, insurance. Never medical advice. |
| Education and courses | Goal, learner, start, fees, who pays |
| Insurance | What to cover, current cover and renewal, budget. Never a price or a cover promised. |
| Any business (BANT) | Need, budget, timeline, authority |

A pack is added once and is yours to edit; adding it again never overwrites your changes.

## Handing a hot lead to a salesperson

A *salesperson* is a person with the role **broker** in Lumate Desk (the name of the role in the data is unchanged; in a company that uses the general pack the screens say *salesperson*).

1. The agent calls `connect_to_broker` once the lead is hot and agrees to talk. The server picks a free salesperson: Available in Lumate Desk, seen in the last 30 seconds, not on another transfer; the lead's own salesperson first, then the one with the fewest calls today.
2. The salesperson hears **one sentence** before they are connected: the lead's name, the category and score, and what they want ("Deniz Acar, hot 88/100: needs a CRM for 12 reps, can decide").
3. What the caller said (their name, the summary, the next step) is shown to the salesperson **quoted and labelled as the caller's words**, with links and other phone numbers removed and the length capped; the line about who and how hot is fixed text. The salesperson gets a **notice** (in Lumate and on the card) and a **WhatsApp message at their mobile number** with the score, the next step and the summary, while the company's WhatsApp is linked.
4. **Nobody free:** if booking is on (Appointments → Booking) the agent offers a time from the calendar (`find_free_times`, then `book_appointment`); otherwise it asks which **callback time** suits the lead. The salesperson with the fewest open cards gets the card as *Call again* and the same notice.
   **A hot lead that books** gets the next salesperson by the same rule (free now, the lead's own first, otherwise round robin): they own the booking on their Lumate calendar, get the card and a notice, and, when your Google account is connected, a Google invitation. The lead is invited as a guest only if you turn on *invite the customer* for Sales.
5. **WhatsApp calls cannot be transferred.** The agent says so and books a time or asks for a callback time instead.

## Reports and Excel

**Call center → Reports** groups the outbound calls by **scenario, campaign (call list), source (where the card came from) or day**, for the last 30 days or the dates you choose.

| Column | Meaning |
|---|---|
| Calls | Outbound calls placed |
| Connected | A person spoke and it was not a voicemail greeting |
| Voicemail | Calls marked as voicemail |
| Hot, Warm, Cold, Out | Calls by the category the call (or the agent that followed up) recorded |
| Booked, Transferred | Calls that booked a time, or connected to a salesperson |
| Conversion | Calls that booked, transferred or ended hot, out of connected calls |
| Avg. length | Average length of connected calls |
| Cost, Per call | What the calls cost, in total and per call |

Everyone in the company reads the counts; the **Cost** and **Per call** columns are for admins unless an admin turns on *Members see what calls cost* (Settings → Sales). A range is at most 366 days.

**Export cards (xlsx)** (admins; each export is written to the activity log) gives one row per card created in the range (the last 366 days unless you choose; at most 366 days). Cards that asked not to be called are left out unless you ask for them (`include_do_not_call`): contact, source, stage, category, score, need, budget, timeline, authority, next step, owner, salesperson, number of calls, last call, last outcome, booked, transferred. Text from a lead is always kept as text, never run as a formula.

**What a call costs.** The realtime model reports how many seconds it was live as the call goes; Lumate keeps the largest figure on the call and prices it when it ends at the **price per minute** in the price table (below the report). When no report arrived, the call's own minutes are used. The per-million-token figures in the table are not used: the model sends no token counts. The price is yours to keep in line with your provider's price page. Cost is not shown for a call that has no length.

## Sending outcomes to your CRM

Below the report (admins): **Send outcomes to your CRM**. Give a public `https://` address and choose the outcomes: *qualified*, *transferred to a salesperson*, *a time was booked*. Addresses inside your own network, with a user name in them, or on a port other than 443 (unless an admin lists it) are refused; the name is looked up once and the request goes to that address, so it cannot be pointed inside later. After saving, only the host is shown. Lumate queues each outcome and sends it a moment later; a failure is tried again after 1, 5, 30 minutes and 2 hours, then given up (the latest deliveries are listed; an admin can **Retry** a failed one). One push per person every 10 minutes, carrying the latest state. **Only the fields you tick are sent**: by default name, phone, email, category, score, next step and source; what the caller said in their own words is off until ticked (and is quoted when sent). People who asked not to be called (or refused İYS) are never sent. A sent push is kept 30 days (a failed one 7) and then its data is emptied; erasing a person deletes their deliveries. The same address can also take the notes of your meetings (`meeting.notes`, off until ticked): see [Lumate in Google Meet](/docs/meetings).

### Signature

Every request carries:

| Header | Value |
|---|---|
| `X-Lumate-Event` | `lead.qualified`, `lead.transferred` or `lead.booked` |
| `X-Lumate-Delivery` | A unique id (the same on a retry; use it to ignore a repeat) |
| `X-Lumate-Timestamp` | Seconds since 1970 |
| `X-Lumate-Signature` | `sha256=` and the hex HMAC-SHA256 of `<timestamp>.<body>` with your signing secret |

The secret (`whsec_…`) is shown once, when you set the push up or make a new one. Check a request like this and refuse an old timestamp:

```python
import hashlib, hmac, time

def valid(secret: str, headers: dict, body: bytes) -> bool:
    stamp = headers["X-Lumate-Timestamp"]
    if abs(time.time() - int(stamp)) > 300:
        return False
    want = "sha256=" + hmac.new(secret.encode(), stamp.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, headers["X-Lumate-Signature"])
```

### The generic body

```json
{
  "id": "0b2c…", "event": "lead.qualified", "created_at": "2026-11-21T15:42:00+00:00",
  "lead": {"id": 42 /* with only the fields you ticked: */, "name": "Deniz Acar", "phone": "+905551110001", "email": "d@example.com", "language": "tr",
           "source": "csv", "stage": "for_manager", "category": "hot", "score": 88,
           "need": "CRM for 12 reps", "budget": "10-15k", "timeline": "this quarter", "authority": "decision_maker",
           "reason": "Wants a demo", "next_step": "Demo Thursday", "recommended_owner": "Ayse", "salesperson": "Ayse Satis"},
  "call": {"session_id": 311, "duration_seconds": 120, "cost_usd": 0.14}
}
```

### HubSpot, Zoho CRM and Bitrix24

Choose the **Shape** and Lumate sends the body the vendor's *create* call takes. Put the vendor's address in **Address** and its credential in **Header the CRM needs**:

| Shape | Address | Header | Body |
|---|---|---|---|
| HubSpot contact | `https://api.hubapi.com/crm/v3/objects/contacts` | `Authorization: Bearer <private app token>` | `{"properties": {"firstname", "lastname", "phone", "email", "lumate_category", "lumate_score", "hs_lead_status", "message"}}` |
| Zoho CRM lead | `https://www.zohoapis.com/crm/v6/Leads` | `Authorization: Zoho-oauthtoken <token>` | `{"data": [{"First_Name", "Last_Name", "Phone", "Email", "Lead_Source", "Rating", "Lead_Status", "Description"}]}` |
| Bitrix24 lead | `https://<you>.bitrix24.com/rest/<user>/<webhook>/crm.lead.add.json` | none (the key is in the address) | `{"fields": {"TITLE", "NAME", "LAST_NAME", "PHONE": [{"VALUE", "VALUE_TYPE"}], "EMAIL": […], "COMMENTS", "SOURCE_ID", "STATUS_ID"}}` |

How the category maps: HubSpot `hs_lead_status` OPEN_DEAL (hot), IN_PROGRESS (warm), BAD_TIMING (cold), UNQUALIFIED (disqualified); Zoho `Rating` Hot/Warm/Cold and `Lead_Status` Pre-Qualified, Contact in Future or Not Qualified; Bitrix24 `STATUS_ID` IN_PROCESS (hot, warm), NEW (cold), JUNK (disqualified). In HubSpot, create the two contact properties `lumate_category` (text) and `lumate_score` (number) once; the rest is the standard contact. A vendor's call that creates a record creates a new one for each outcome: use a duplicate rule in the CRM (match on phone or email), or send to a small middle service (Zapier, Make, n8n) that updates instead.

The shapes follow the vendors' public documentation and have not been tried against live accounts: send one test outcome first.
