RunMarketingInformationExtract
Extract e-commerce retail content entities.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information of the API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is prefixed.
- For operations that do not support resource-level authorization, All Resources is used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:RunMarketingInformationExtract | none | *All Resources * |
| None |
Request syntax
POST /{workspaceId}/quanmiao/lightapp/runMarketingInformationExtract HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | No | Path parameter, workspace ID | w-08a4a3ba7104917c |
| modelId | string | No | Large language model (LLM) ID. | qwen-max qwen-plus |
| extractType | string | No | Extraction type | point-product selling points introduce-elements of product introduction article-elements of marketing copy comment-elements of product opinions feature-feature |
| customPrompt | string | No | Extraction instruction | You are a product advertising designer. Based on the following product introduction, generate one sentence to describe the product's selling points. |
| sourceMaterials | array | No | The content to extract | |
| string | No | The content of the article to extract | ps5 is sony's new generation game console, with its innovative... |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| end | boolean | Indicates whether the operation has ended | {'TimeZone': 'Asia/Shanghai', 'DateTime': '2024-03-07T17:00:09+08:00'} |
| header | object | The header of the response | |
| event | string | The event name | result-generated |
| eventInfo | string | The event description | Optional |
| requestId | string | The request ID | F08C71C0-9399-548C-838B-1DA01DE211B0 |
| sessionId | string | The sessionId, which can be used to identify a conversation | 121dlsga4o7golrl1hojazg0u9lvytjc17ebgzzj2u4zukgh122tfg7wj1e6a1vcowy1ewzinauxriai9atcr6r323mm9ddbr0bg5m61ij8hxnf8664tstlfkfol6m8luc4shs3gums7l46uauyy0xndqmhdjtdon6coyhb4x17bo762bg9e3tb2geufg2 |
| taskId | string | The task ID | 12826092918145 |
| traceId | string | The log trace ID | 2150432017236011824686132ecdbc |
| payload | object | The payload of the response, a JSON structure that varies by event | |
| output | object | The information displayed on the page | |
| text | string | The extracted content returned | playstation 5's new generation... |
| usage | object | Token usage | |
| inputTokens | long | The number of input tokens | 100 |
| outputTokens | long | The number of output tokens | 100 |
| totalTokens | long | The total number of tokens | 200 |
Examples
Success response
JSON format
{
"end": true,
"header": {
"event": "result-generated",
"eventInfo": "可空",
"requestId": "F08C71C0-9399-548C-838B-1DA01DE211B0",
"sessionId": "121dlsga4o7golrl1hojazg0u9lvytjc17ebgzzj2u4zukgh122tfg7wj1e6a1vcowy1ewzinauxriai9atcr6r323mm9ddbr0bg5m61ij8hxnf8664tstlfkfol6m8luc4shs3gums7l46uauyy0xndqmhdjtdon6coyhb4x17bo762bg9e3tb2geufg2",
"taskId": 12826092918145,
"traceId": "2150432017236011824686132ecdbc"
},
"payload": {
"output": {
"text": "playstation 5新一代的..."
},
"usage": {
"inputTokens": 100,
"outputTokens": 100,
"totalTokens": 200
}
}
}
Error codes
Visit Error Center for more error codes.