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

# manage_sales_agent

> Assign leads to a Sales Agent, or stop the Sales Agent working a lead.

> [!WARNING]
>
> **WRITE** · 2 operations · may change data

Assign leads to a Sales Agent, or stop the Sales Agent working a lead. Assigning is also how you resume a stopped lead; it takes a capacity slot again. Sales Agent settings are read-only here — read the channel switches with [`search_sales_agent`](https://developer.lofty.com/mcp/tools/search-sales-agent) `kind: "current"` and change settings in the Lofty CRM.

```js theme={null}
manage_sales_agent({
  action: "assign" | "stop",
  lead_ids?, lead_id?, sales_agent?, confirm_token?
})
```

| `action` | Required | Notes |
| - | - | - |
| `assign` | `lead_ids` (plural) | Backed by a genuine batch endpoint — accepts up to 100 leads per call, unlike the [10-record cap](https://developer.lofty.com/mcp/guides/bulk-writes.md) that applies elsewhere. Confirms past 10 leads — replay with the returned `confirm_token`. Optional `sales_agent` (`personal` or `team`) hands every lead to that Sales Agent; omit it to pick by lead ownership. Refused when you have no such Sales Agent. |
| `stop` | `lead_id` (singular) | Stops follow-up on the lead, the same as stopping it in the CRM. The response's `success` field reports whether the request was accepted. |

The `assign` response lists `succeededLeads`, `failedLeads` (each with a `reason` code) and `remainingQuota`. A lead that a Sales Agent already works counts as succeeded (`alreadyWorking: true`), uses no capacity and stays with that Sales Agent. See [Assign leads to Sales Agent](https://developer.lofty.com/api-reference/sales-agents/assign-working-leads.md) for the reason codes and rate limits.

> [!NOTE]
>
> `unmute` and `ai_number_sms` were removed in December 2026 and return an error: resume a lead with `assign`, and text an agent with [`notify_agent`](https://developer.lofty.com/mcp/tools/notify-agent) `channel: "sms"`. `ai_assistant_id` is no longer accepted; use `sales_agent`. See the [December 2026 changelog](https://developer.lofty.com/changelog/2026-12).


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