调用ListVoiceAppraise获取实例的语音满意度。

调试

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

请求参数

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

系统规定参数。取值:ListVoiceAppraise

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

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

AccessKeyId String xxx

您的AccessKey ID

返回数据

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

响应码

ContactFlow

返回的语音满意度的联系流,,包含最新版本信息。

AppliedVersion String 20190319160735

当前正在工作的版本。

ContactFlowDescription String SatisfactionSurvey

联系流的简单描述。

ContactFlowId String XmRB_0mcsmkj

联系流唯一ID,系统自动生成的唯一标示符。

ContactFlowName String SatisfactionSurvey

联系流名称,在一个实例内名称不能重复。

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

联系流所归属的呼叫中心实例。

PhoneNumbers

联系流绑定的电话号码列表。

PhoneNumber

联系流绑定的电话号码列表。

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

电话号码所归属的呼叫中心实例ID。

Number String 02160664656

电话号码。

PhoneNumberDescription String Ali Telecom

电话号码的简单描述。

PhoneNumberId String cc583e96-6bae-437e-9aeb-bffd5aeddb73

电话号码ID。

RemainingTime Integer 60

测试号码剩余的通话时间。单位为分钟。

Trunks Integer 30

电话号码的中继数量,即可同时支持几路通话,数据来源于大于。

Type String Mainflow

流程类型。

Versions

联系流文件的所有版本。

ContactFlowVersion

联系流文件的所有版本。

ContactFlowVersionDescription String SatisfactionSurvey-20180531144213

联系流版本的说明及注解。

ContactFlowVersionId String oEUk_1EAbkcn

联系流版本ID,关联的联系流版本。

Content String 请见返回示例。

符合ACC需求的流程文件内容。

LastModified String 2019-03-19 16:07:46

联系流版本的最后修改时间。

LastModifiedBy String cloudcallcenter

联系流版本最后由何人修改。

Status String Published

当前状态。

Version String 20190319160735

联系流版本信息,一般以日期+时间来表示。

HttpStatusCode Integer 200

HTTP状态码

Message String

响应信息

Notice String

创建默认满意度提示。

若客户自己配置语音满意度有一定难度,可参考模板创建的语音满意度进行修改。

RequestId String 0FDB996E-9A04-461C-BE0E-A7F8597526AD

请求ID

Success Boolean true

是否成功

示例

请求示例


http(s)://ccc.cn-hangzhou.aliyuncs.com/?Action=ListVoiceAppraise
&InstanceId=d278629c-c687-4aa3-b044-4fe9b012e7ef
&<公共请求参数>

正常返回示例

XML 格式

<ListVoiceAppraiseResponse>
      <HttpStatusCode>200</HttpStatusCode>
      <ContactFlow>
            <ContactFlowName>SatisfactionSurvey</ContactFlowName>
            <ContactFlowDescription>SatisfactionSurvey</ContactFlowDescription>
            <ContactFlowId>XmRB_0mcsmkj</ContactFlowId>
            <Versions>
                  <ContactFlowVersion>
                        <Status>Published</Status>
                        <ContactFlowVersionDescription>SatisfactionSurvey-20180531144213</ContactFlowVersionDescription>
                        <ContactFlowVersionId>oEUk_1EAbkcn</ContactFlowVersionId>
                        <LastModifiedBy>cloudcallcenter</LastModifiedBy>
                        <LastModified>2019-03-19 16:07:46</LastModified>
                        <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":5}],"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\":\"不满意\"}}}&amp;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"}]</Content>
                        <Version>20190319160735</Version>
                  </ContactFlowVersion>
            </Versions>
            <AppliedVersion>20190319160735</AppliedVersion>
            <Type>Mainflow</Type>
            <InstanceId>d278629c-c687-4aa3-b044-4fe9b012e7ef</InstanceId>
            <PhoneNumbers>
        </PhoneNumbers>
      </ContactFlow>
      <RequestId>0FDB996E-9A04-461C-BE0E-A7F8597526AD</RequestId>
      <Success>true</Success>
      <Code>OK</Code>
</ListVoiceAppraiseResponse>

JSON 格式

{
	"HttpStatusCode":200,
	"ContactFlow":{
		"ContactFlowName":"SatisfactionSurvey",
		"ContactFlowDescription":"SatisfactionSurvey",
		"ContactFlowId":"XmRB_0mcsmkj",
		"Type":"Mainflow",
		"AppliedVersion":"20190319160735",
		"Versions":{
			"ContactFlowVersion":[
				{
					"Status":"Published",
					"ContactFlowVersionDescription":"SatisfactionSurvey-20180531144213",
					"ContactFlowVersionId":"oEUk_1EAbkcn",
					"LastModified":"2019-03-19 16:07:46",
					"LastModifiedBy":"cloudcallcenter",
					"Version":"20190319160735",
					"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\":5}],\"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},{\"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",
		"PhoneNumbers":{
			"PhoneNumber":[]
		}
	},
	"RequestId":"0FDB996E-9A04-461C-BE0E-A7F8597526AD",
	"Success":true,
	"Code":"OK"
}

错误码

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