Каталог · Изменение
Каталог · Товары · Импорт · Генерация · Соответствие полей
catalog_products_import_generate_mapping
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Каталог / Товары / Импорт / Генерация / Соответствие полей». Для изменения нужны fileUrl, itemType. Покажи объект и ожидаемый эффект до выполнения.
- fileUrl
- Параметр
- itemType
- Параметр
- model
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Каталог / Товары / Импорт / Генерация / Соответствие полей» с параметром itemType = product. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- itemType
- product
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Каталог / Товары / Импорт / Генерация / Соответствие полей» по исходному ответу. Покажи состояние, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Use the existing company aiBridge to propose a bounded CSV/JSON source-to-product mapping. The native Edge sampler reads only this company file, and the proposed fields are validated before durable storage. This Action never imports products; review with catalog_products_import_preview before commit. Recover an uncertain model call with catalog_products_get_import_mapping_result using the original requestId.
Параметры запроса
- fileUrl
- Existing CSV or JSON object in this company's native Ingridients bucket, as supabase://Ingridients/<companyId>/<path>. обязательно по схеме · string · до символов 1200
- itemType
- Native product row type to import. обязательно по схеме · string · варианты product, ingrid, modif
- model
- Optional model configured for this company; omit for the existing aiBridge default. необязательно · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- state
- The mapping result was saved durably. обязательно по схеме · string
- result
- Reviewed candidate plan; no product was imported. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"fileUrl": {
"type": "string",
"minLength": 35,
"maxLength": 1200,
"pattern": "^supabase:\\/\\/Ingridients\\/[A-Za-z0-9_-]+\\/(?:[^./][^/]*\\/)*[^./][^/]*\\.(?:csv|json)$",
"description": "Existing CSV or JSON object in this company's native Ingridients bucket, as supabase://Ingridients/<companyId>/<path>."
},
"itemType": {
"type": "string",
"enum": [
"product",
"ingrid",
"modif"
],
"description": "Native product row type to import."
},
"model": {
"description": "Optional model configured for this company; omit for the existing aiBridge default.",
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,79}$"
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable ID for this exact mapping request; never change it to resend an uncertain provider call."
}
},
"required": [
"fileUrl",
"itemType",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"const": "completed",
"description": "The mapping result was saved durably."
},
"result": {
"type": "object",
"properties": {
"mapping": {
"type": "object",
"properties": {
"mapping": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Exact source column name."
},
"target": {
"type": "string",
"enum": [
"name",
"short_description",
"description",
"price",
"available",
"available_in_app",
"unit_of_measurement",
"brand",
"photos",
"category",
"category_ingredients",
"production_area",
"type_tax"
],
"description": "Supported native product field."
},
"transform": {
"description": "Native conversion such as number, normalizeUnit or matchDict:<table>.",
"type": "string",
"maxLength": 100
},
"lang": {
"description": "Language of the imported text.",
"type": "string",
"enum": [
"ru",
"en",
"es",
"uk"
]
}
},
"required": [
"source",
"target"
],
"additionalProperties": false
},
"description": "Reviewed source-to-native product field mapping."
},
"defaultValues": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Reviewed native defaults; identity and company fields are rejected by the backend."
}
},
"required": [
"mapping",
"defaultValues"
],
"additionalProperties": false,
"description": "AI-proposed mapping that must be reviewed and passed to catalog_products_import_preview."
},
"rowCount": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000,
"description": "Number of source rows seen by the native sampler."
},
"columns": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string"
},
"description": "Native source columns available for mapping."
},
"model": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Actual model reported by aiBridge."
}
},
"required": [
"mapping",
"rowCount",
"columns",
"model"
],
"additionalProperties": false,
"description": "Reviewed candidate plan; no product was imported."
}
},
"required": [
"state",
"result"
],
"additionalProperties": false
}