tencent cloud

Cloud Contact Center

Update Chatbot Small Talk Library Similar Questions

フォーカスモード
フォントサイズ
最終更新日: 2025-03-31 20:13:31

API Call Instructions

App admin proactively invokes RESTful APIs to update similar questions in the robot small talk library.
Caution:
Take effect directly on the live network after being set via the REST API (set and published in the management console).

Sample Request URL

https://xxxxxx/v4/openim_console_http_svc/update_chitchat_similar?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json

Request Parameters

The following table only lists the parameters involved in modification when calling this API and their descriptions. For more details about the parameters, please refer to REST API Introduction.
Parameter
Description
v4/openim_console_http_svc/update_chitchat_similar
Request API.
sdkappid
Assigned SDKAppID in the IM console when creating an application.
identifier
Must be an App administrator account. For more details, see App administrator.
usersig
Signature generated by the App administrator account. For specific operations, see Generate UserSig.
random
Enter a random 32-bit unsigned integer in the range of [0,4294967295].
contenttype
The request format has a fixed value of json.

Maximum Calling Frequency

5 times/second.

Sample Request Packet

{
"StandardQuestionId": "1500086040-@RBT#DeskDefaultRobot-qJLb9mKIA4bmdv9j",
"SimilarQuestions": [
"Similar question 1"
]
}

Request Packet Fields

Field
Type
Description
CategoryId
Integer
Category ID to be deleted.

Response Packet Body Example

{
"ActionStatus": "OK",
"ErrorInfo": "",
"ErrorCode": 0
}

Response Packet Fields

Field
Type
Description
StandardQuestionId
String
Standard question ID.
SimilarQuestions
Array
Similar question list after update. If necessary, you can pass an empty array to clear similar questions.

Error Code Description

Unless a network error (for example, 502 error) occurs, the HTTP return code of this API is 200. The actual error code and error information are indicated by ErrorCode and ErrorInfo in the response packet body.
For common error codes (60000 to 79999), see Error Code document.
The private error codes of this API are as follows:
Error Code
Description
-7
Parameter parsing failed. Check whether the request packet meets the JSON Specification or the request parameters meet requirements.
-14
Exceeds the maximum rate limit allowed by this API.
-20
Request requires App administrator permissions.
-50003
Desk resource is invalid.
-50040
Number of Suggestions: Return to 'n' matches each time guided.
-50011
Delete system predefined classification.

API Debugging Tool

Debug this interface through the REST API online debugging tool.

References

Query one-to-one chat messages (v4/openim/admin_getroammsg)

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック