文本上传AI分析
POST
/tmk/api/ai/apiUploadForText
请求参数
Header 参数
Content-Type
string
必需
默认值:
application/json
Authorization
string
token
Body 参数application/json
organizationId
number
必需
infoId
string
唯一标识
callbackUrl
string
回调地址
callbackInfo
string
回调附加信息
userId
string
用户id
clueId
string
线索id
duration
integer
沟通时长
startTime
number
必需
endTime
number
可选
asrResult
array [object {4}]
对话文本
begin
integer
必需
end
integer
必需
role
string
必需
words
string
对话内容
productList
array [object {5}]
必需
productName
string
商品名称
productPrice
number
商品价格 单位分
productId
string
商品id
productType
string
必需
categoryList
object
必需
示例
{
"organizationId": 0,
"infoId": "string",
"callbackUrl": "string",
"callbackInfo": "string",
"userId": "string",
"clueId": "string",
"duration": 0,
"startTime": 0,
"endTime": 0,
"asrResult": [
{
"begin": 0,
"end": 0,
"role": "string",
"words": "string"
}
],
"productList": [
{
"productName": "string",
"productPrice": 0,
"productId": "string",
"productType": "string",
"categoryList": {
"levelOne": "string",
"levelTwo": "string",
"levelThree": "string",
"levelFour": "string"
}
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/tmk/api/ai/apiUploadForText' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"organizationId": 0,
"infoId": "string",
"callbackUrl": "string",
"callbackInfo": "string",
"userId": "string",
"clueId": "string",
"duration": 0,
"startTime": 0,
"endTime": 0,
"asrResult": [
{
"begin": 0,
"end": 0,
"role": "string",
"words": "string"
}
],
"productList": [
{
"productName": "string",
"productPrice": 0,
"productId": "string",
"productType": "string",
"categoryList": {
"levelOne": "string",
"levelTwo": "string",
"levelThree": "string",
"levelFour": "string"
}
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
1成功 其他失败
message
string