tencent cloud

Cloud Contact Center

Announcement
What's New
Cloud Contact Center Terminology Update
What is Tencent Cloud Contact Center
Overview
Feature List
Terms Introduction
Handling Firewall Restrictions
AI Voicebot
Billing Guide
Voice Call Billing Overview
Desk Billing Overview
View Billing
Refund Policy
New User Guide
Voice Guide
Desk Guide
Use Case
Inbound: Customer Experience
Outbound: Telemarketing
Auto Dialer: Voice Notification
Integration Use Case (SDK)
Administrator Guide
Voice Guide
Desk Guide
Member Guide
Voice Guide
Desk Guide
AI Voice Agent Guide
Introducing AI Voice Agent
AI Voice Agent Practical Tutorial
Set Up Your AI Voice Agent
Activate AI Voice Agent Call
AI Voice Agent Call Logs
Developer Guide
SDK Development Guide
Data Push
Voice API Reference
History
Introduction
API Category
Making API Requests
Agent APIs
Skill Group APIs
Number APIs
Dual Call APIs
Predictive Outbound Call APIs
SIP Phone APIs
Call Service Record APIs
Billing APIs
Other APIs
Outbound Call APIs
Speech Intelligent Agent APIs
Data Types
Error Codes
Desk API Reference
API Reference
Callback Configuration
FAQs
Data Deletion Guide
Legal
Privacy Policy
Data Processing And Security Agreement
Service Level Agreements
TENCENT CLOUD CONTACT CENTRE TERMS OF USE
Glossary
Contact Us

Agent Transfer

Mode fokus
Ukuran font
Terakhir diperbarui: 2025-04-07 11:11:24

API Call Description

App admins can use this API to transfer users to live agent.

Sample Request URL

https://console.tim.qq.com/v4/desk_http_svc/transfer_to_human?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/desk_http_svc/transfer_to_human
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
Generated signature of 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.

Sample Request Packet

{ "SessionId": "fd8a2e30-54de-4e40-bcaf-02718409c5cf", "AgentIdList": ["test_agent@qq.com"] , "AgentGroupId": 2473 }

Request Packet Fields

Field
Type
Required
Description
SessionId
String
Required
Session ID.
AgentIdList
Array
Optional.
Specified customer service. Empty by default.
AgentGroupId
Integer
Optional.
Specified agent group. If left blank, customer service will be assigned according to the default policy.
SendTipIfNoAgentOnline
Integer
Optional.
Whether to send a failure prompt for transferring to human customer service if no customer service is online. 0 means not to send, and 1 means to send. The default is 0.

Response Package Example

{
"ActionStatus": "OK",
"ErrorInfo": "",
"ErrorCode": 0,
"AgentId": "test_agent@qq.com"
}

Response Packet Fields

Field
Type
Description
ErrorCode
Integer
Error Code:
0 indicates success.
Non-zero indicates failure.
ErrorInfo
String
Error message.
ActionStatus
String
Result of request processing.
AgentId
String
Assigned live agent.
IsInQueue
Integer
Whether the assigned user is queuing.
0 means not queuing.
1 means queuing.

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 represented by ErrorCode and ErrorInfo in the response packet body. For common error codes (60000 to 79999), please refer to the Error Code document. The private error codes of this API are as follows:
Error Code
Description
90001
JSON format parsing failed. Check whether the request package conforms to the JSON Specification.
90002
The MsgBody in the JSON format request packet does not match the message format description, or the MsgBody is not an Array type. See the definition of TIMMsgElement object.
90005
The JSON format request body lacks the MsgRandom field or the MsgRandom field is not of Integer type.
90007
The MsgBody type in the JSON format request body is not an Array type. Change it to an Array type.
90009
Request requires App administrator permissions.
90010
The JSON format request packet does not match the message format description. See the definition of TIMMsgElement object.
93000
The JSON data packet is excessively long. The message body should not exceed 12k.
141000
Applications that are not desks are not allowed to call this API.
141001
Failed to assign a live agent. No available agents online.
141002
Internal system error, please retry.
141003
This session cannot be transferred to a human agent.
141004
Illegal request parameters, please check and retry.
141005
The session does not exist.
141006
Illegal SessionId.

API Debugging Tools

Debug this interface using the REST API online debugging tool.

References

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

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan