CRM · Чтение
Найти клиента в CRM
Ищет доступные карточки клиентов по имени или тексту и возвращает их ID.
customers_search
Попробуйте три запроса
По имени
- Вы указываетеИмя Анна
- ПомощникПоиск в CRM
- Вы получаетеИмена и ID
Запрос в чат
Найди клиента по имени Анна. Покажи до пяти совпадений и их customerId, чтобы я выбрал нужную карточку.
- Анна К.
- DEMO-211
- Анна С.
- DEMO-218
Есть однофамильцы
- Вы указываетеФамилия
- ПомощникПроверка совпадений
- Вы получаетеВыбор клиента
Запрос в чат
Найди карточки по фамилии Орлова. Если есть несколько совпадений, перечисли их отдельно и попроси меня выбрать.
- Орлова А.
- DEMO-221
- Орлова И.
- DEMO-229
Продолжить
- Вы указываетеИмя и курсор
- ПомощникЧтение страницы
- Вы получаетеСледующие карточки
Запрос в чат
Продолжи тот же поиск клиентов по Анне с nextCursor из предыдущего ответа. Выведи новые совпадения.
Страница 1Уже прочитана
Страница 2По nextCursor
Пример вызова через sabsus_action_call
{
"name": "customers_search",
"arguments": {
"query": "Анна",
"limit": 5
}
}Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Search existing customer profiles in this workspace and allowed locations. Results use stable document-ID pagination; query is a name/text filter, not a global fuzzy index. Use returned customerId for details and contact selection. Does not return employee access settings or financial accounts.
Параметры запроса
- 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": {
"customerId": {
"type": "string",
"description": "Canonical top-level users document identifier for this customer."
},
"displayName": {
"type": "string",
"description": "Customer display name from the existing profile."
},
"firstName": {
"type": "string",
"description": "Stored customer first name."
},
"lastName": {
"type": "string",
"description": "Stored customer last name."
},
"locationId": {
"description": "Canonical establishment identifier assigned to this profile, or null if unassigned.",
"type": [
"string",
"null"
]
},
"language": {
"type": "string",
"description": "Stored language selection; an empty string means it was not set."
},
"blocked": {
"type": "boolean",
"description": "Whether the existing profile is blocked."
},
"note": {
"type": "string",
"description": "Customer profile Comment; does not include employee permissions, account details or credentials."
}
},
"required": [
"customerId",
"displayName",
"firstName",
"lastName",
"locationId",
"language",
"blocked",
"note"
],
"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
}