RunMarketingInformationExtract

Updated at:

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.

Try it

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.

OperationAccess levelResource typeCondition keyDependent action
quanmiaolightapp:RunMarketingInformationExtractnone
*All Resources
*
    None
None

Request syntax

POST /{workspaceId}/quanmiao/lightapp/runMarketingInformationExtract HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringNo

Path parameter, workspace ID

w-08a4a3ba7104917c
modelIdstringNo

Large language model (LLM) ID.

qwen-max qwen-plus
extractTypestringNo

Extraction type

point-product selling points introduce-elements of product introduction article-elements of marketing copy comment-elements of product opinions feature-feature
customPromptstringNo

Extraction instruction

You are a product advertising designer. Based on the following product introduction, generate one sentence to describe the product's selling points.
sourceMaterialsarrayNo

The content to extract

stringNo

The content of the article to extract

ps5 is sony's new generation game console, with its innovative...

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

endboolean

Indicates whether the operation has ended

{'TimeZone': 'Asia/Shanghai', 'DateTime': '2024-03-07T17:00:09+08:00'}
headerobject

The header of the response

eventstring

The event name

result-generated
eventInfostring

The event description

Optional
requestIdstring

The request ID

F08C71C0-9399-548C-838B-1DA01DE211B0
sessionIdstring

The sessionId, which can be used to identify a conversation

121dlsga4o7golrl1hojazg0u9lvytjc17ebgzzj2u4zukgh122tfg7wj1e6a1vcowy1ewzinauxriai9atcr6r323mm9ddbr0bg5m61ij8hxnf8664tstlfkfol6m8luc4shs3gums7l46uauyy0xndqmhdjtdon6coyhb4x17bo762bg9e3tb2geufg2
taskIdstring

The task ID

12826092918145
traceIdstring

The log trace ID

2150432017236011824686132ecdbc
payloadobject

The payload of the response, a JSON structure that varies by event

outputobject

The information displayed on the page

textstring

The extracted content returned

playstation 5's new generation...
usageobject

Token usage

inputTokenslong

The number of input tokens

100
outputTokenslong

The number of output tokens

100
totalTokenslong

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.