调用CreateVoiceAppraise开通实例的语音满意度。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String CreateVoiceAppraise

系统规定参数。取值:CreateVoiceAppraise

ContactFlowVersionId String EX9Q_1EATgHX

联系流版本ID

Content String [{"nodeId":1,"nodeDescript":"开始","nextNodeId":2,"nodeType":"start","variables":["varDescript":"","varName":"satisfaction","varType":"string","varInitial":""}]

语音满意度内容。

1. Content中需要注意设置的按键信息与提示音要对应。

2. 按键信息与url.pressKeyMapping中的mapping中的内容要对应。

InstanceId String d278629c-c687-4aa3-b044-4fe9b012e7ef

待获取电话号码的呼叫中心实例ID

AccessKeyId String xxx

您的AccessKey ID

IsAppraise Boolean true

是否开启语音满意度,默认开启(true)。

返回数据

名称 类型 示例值 描述
Code String OK

响应码

HttpStatusCode Integer 200

HTTP状态码

Message String

响应信息。

RequestId String B06B3244-1B44-481B-90C4-F2F92E59D6B5

请求ID

Success Boolean true

是否成功

示例

请求示例


http(s)://ccc.cn-hangzhou.aliyuncs.com/?Action=CreateVoiceAppraise
&ContactFlowVersionId=EX9Q_1EATgHX
&Content=[{"nodeId":1,"nodeDescript":"开始","nextNodeId":2,"nodeType":"start","variables":[{"varDescript":"","varName":"satisfaction","varType":"string","varInitial":""},{"varDescript":"","varName":"result","varType":"string","varInitial":""},{"varDescript":"","varName":"_press_key","varType":"string","varInitial":""}]},{"nodeId":2,"nodeDescript":"answer","userHangUpOutput":999,"failureOutput":999,"nodeType":"answer","answerSuccess":3},{"individualization":false,"playSuccess":4,"selectPlayFile":"","maxLen":1,"playType":"value","repeat":"5","resultEncryption":false,"playFile":"PUBLIC-satisfaction_part1.wav","receiveOutputValue":"satisfaction","nodeId":3,"minLen":1,"nodeDescript":"一级收号","repeatIntervalTime":"3","inputTimeOut":"3","inputPlayFile":"","userHangUpOutput":999,"keyTimeOut":999,"nodeType":"getdigits"},{"nodeDescript":"一级条件判断","nodeId":4,"branchingRules":[{"name":"satisfaction = 1","descript":"按1-满意","ruleExp":"${satisfaction}===1","output":5},{"name":"satisfaction = 2","descript":"按2-一般","ruleExp":"${satisfaction}===2","output":5},{"name":"satisfaction = 3","descript":"按3-不满意","ruleExp":"${satisfaction}===3","output":21}],"ruleMismatchOutput":3,"nodeType":"branching"},{"nodeDescription":"一级http","nodeId":5,"timeoutType":"value","successOut":998,"resultString":"result","failureOutput":999,"requestType":"get","nodeType":"http","urlType":"value","url":"http://pre.intermediary.ccc.aliyun.com/callcenter/api.json?input={\"pressKey\":\"${satisfaction}\",\"acid\":\"${_JOBID}\",\"source\":\"inner\",\"type\":\"Appraise\",\"pressKeyMapping\":{\"mapping\":{\"1\":\"满意\",\"2\":\"一般\",\"3\":\"不满意\"}}}&action=Appraise","timeout":3},{"nodeDescription":"一级http不满意","nodeId":21,"timeoutType":"value","successOut":22,"resultString":"result","failureOutput":999,"requestType":"get","nodeType":"http","urlType":"value","url":"http://pre.intermediary.ccc.aliyun.com/callcenter/api.json?input={\"pressKey\":\"${satisfaction}\",\"acid\":\"${_JOBID}\",\"source\":\"inner\",\"type\":\"Appraise\",\"pressKeyMapping\":{\"mapping\":{\"1\":\"满意\",\"2\":\"一般\",\"3\":\"不满意\"}}}&action=Appraise","timeout":3},{"individualization":false,"playSuccess":23,"selectPlayFile":"","maxLen":1,"playType":"value","repeat":"5","resultEncryption":false,"playFile":"25f37645-f067-4bb1-8ed3-762708a0b696.wav","receiveOutputValue":"satisfaction","nodeId":22,"minLen":1,"nodeDescript":"二级收号不满意","repeatIntervalTime":"3","inputTimeOut":"3","inputPlayFile":"","userHangUpOutput":999,"keyTimeOut":999,"nodeType":"getdigits"},{"nodeDescript":"二级条件判断不满意","nodeId":23,"branchingRules":[{"name":"satisfaction = 4","descript":"按4-业务不熟","ruleExp":"${satisfaction}===4","output":24}],"ruleMismatchOutput":22,"nodeType":"branching"},{"nodeDescription":"二级http不满意","nodeId":24,"timeoutType":"value","successOut":998,"resultString":"result","failureOutput":999,"requestType":"get","nodeType":"http","urlType":"value","url":"http://pre.intermediary.ccc.aliyun.com/callcenter/api.json?input={\"pressKey\":\"${satisfaction}\",\"acid\":\"${_JOBID}\",\"source\":\"inner\",\"type\":\"Feedback\",\"pressKeyMapping\":{\"mapping\":{\"4\":\"业务不熟\"},\"parentNote\":\"不满意\"}}&action=Appraise","timeout":3},{"playSuccess":999,"individualization":false,"nodeDescript":"感谢评价","nodeId":998,"inputPlayFile":"","userHangUpOutput":999,"selectPlayFile":"","allowInterrupt":false,"playType":"value","nodeType":"play","playFile":"PUBLIC-satisfaction_part2.wav"},{"nodeId":999,"nodeDescript":"结束","nextNodeId":"","nodeType":"Hangup"}]
&InstanceId=d278629c-c687-4aa3-b044-4fe9b012e7ef
&<公共请求参数>

正常返回示例

XML 格式

<CreateVoiceAppraiseResponse>
      <HttpStatusCode>200</HttpStatusCode>
      <RequestId>B06B3244-1B44-481B-90C4-F2F92E59D6B5</RequestId>
      <Success>true</Success>
      <Code>OK</Code>
</CreateVoiceAppraiseResponse>

JSON 格式

{
	"HttpStatusCode":200,
	"RequestId":"B06B3244-1B44-481B-90C4-F2F92E59D6B5",
	"Success":true,
	"Code":"OK"
}

错误码

访问错误中心查看更多错误码。