CRM · Чтение
Найти лид в CRM
Ищет обращения в доступных данных CRM и возвращает leadId.
leads_search
Попробуйте три запроса
Получить данные
- Вы указываетеСтрока поиска
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Найти лид в CRM» выполни чтение по выбранной записи (строка поиска). Выведи кратко: список позиций, следующая страница.
- items
- Список позиций
- nextCursor
- Следующая страница
Следующая страница
- Вы указываетеПредыдущий ответ
- ПомощникПродолжение
- Вы получаетеСледующая страница
Запрос в чат
Продолжи «Найти лид в CRM» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Найти лид в CRM» объясни список позиций, следующая страница. Отметь отсутствующие значения.
- items
- Список позиций
- nextCursor
- Следующая страница
Пример вызова через sabsus_action_call
{
"name": "leads_search",
"arguments": {
"query": "доставка",
"limit": 5
}
}Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Search existing company CRM leads. Scope follows the linked customer or order for location-limited staff; leads without verifiable location links are unavailable to those staff. Use leadId for details or notes.
Параметры запроса
- query
- Поисковое выражение для этой операции. необязательно · string · до символов 120
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- cursor
- Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string · до символов 236
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array
- nextCursor
- Курсор для получения следующей страницы. обязательно по схеме · string / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"query": {
"description": "Case-insensitive name or text filter within the paginated result. Continue using nextCursor to search later records.",
"type": "string",
"maxLength": 120
},
"limit": {
"default": 20,
"description": "Maximum matching records returned, from 1 to 50. Large records may produce a shorter page; continue with nextCursor.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"cursor": {
"description": "Opaque continuation cursor returned by this same action and workspace. Do not construct one.",
"type": "string",
"maxLength": 236
}
},
"required": [
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"leadId": {
"type": "string",
"description": "Canonical Companies/{company}/Leads document identifier."
},
"title": {
"type": "string",
"description": "Stored lead title, document.name_lid."
},
"customerId": {
"description": "Linked canonical users identifier, if one is stored.",
"type": [
"string",
"null"
]
},
"pipelineId": {
"description": "Linked canonical company pipeline identifier.",
"type": [
"string",
"null"
]
},
"firstName": {
"type": "string",
"description": "Lead first name."
},
"lastName": {
"type": "string",
"description": "Lead last name."
},
"source": {
"type": "string",
"description": "Stored lead acquisition source."
},
"managerId": {
"description": "Assigned user identifier; assignment does not grant permissions.",
"type": [
"string",
"null"
]
},
"comment": {
"type": "string",
"description": "Lead comment text."
},
"createdAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "Stored event time represented in UTC, or null when absent."
},
"tags": {
"type": "array",
"items": {
"type": "string",
"description": "Stored CRM tag text."
},
"description": "Stored tags, limited to 30."
}
},
"required": [
"leadId",
"title",
"customerId",
"pipelineId",
"firstName",
"lastName",
"source",
"managerId",
"comment",
"createdAt",
"tags"
],
"additionalProperties": false
},
"description": "Accessible matching records in this page; tenant and location restrictions have already been applied."
},
"nextCursor": {
"description": "Continuation cursor, or null when no later records remain. An empty page can still have a cursor because inaccessible records are omitted.",
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextCursor"
],
"additionalProperties": false
}