返回一个话术的信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
outboundbot:DescribeScript |
get |
*Instance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID |
38d2e8ed-04e9-4dac-83b5-a8e57642ef13 |
| ScriptId |
string |
是 |
话术 ID |
bee7e5b1-5d9a-4389-aa7e-bbbee5353a16 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 状态码 |
200 |
| RequestId |
string |
请求 ID |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
是否成功 |
true |
| Code |
string |
接口状态码 |
OK |
| Message |
string |
接口提示消息 |
Success |
| Script |
object |
话术 |
{} |
| Status |
string |
话术状态 |
DRAFTED |
| UpdateTime |
integer |
更新时间。使用 Unix 时间戳,单位为毫秒。 |
1578881227000 |
| ChatbotId |
string |
对话机器人 ID |
d31794e2a51f47d2901b4094d88311d7 |
| ScriptId |
string |
话术 ID |
810b5872-57f0-4b27-80ab-7b3f4d8a6374 |
| IsDebugDrafted |
boolean |
调试版本是否为草稿态 |
true |
| Industry |
string |
行业 |
金融 |
| ScriptDescription |
string |
话术描述 |
催收话术 |
| MiniPlaybackEnable |
boolean |
语气承接配置开关 |
true |
| IsDrafted |
boolean |
是否是草稿状态 |
true |
| TtsConfig |
string |
话术的 TTS 配置 |
{ "appKey": "oQDVNlE6fZ5mg46X", "engine": "ali", "engineXunfei": "", "globalInterruptible": true, "closingStatementInterruptible": false, "openingPromptInterruptible": false, "nlsServiceType": "Managed", "pitchRate": "0", "speechRate": "0", "voice": "zhiyuan", "volume": "50" } |
| DebugStatus |
string |
调试话术的状态 |
DRAFTED |
| AsrConfig |
string |
ASR 配置 |
{ "appKey": "oQDVNlE6fZ5mg46X", "engine": "ali", "engineXunfei": "", "globalMaxEndSilence": 700, "globalMaxEndSilenceEnable": true, "maxEndSilence": "500", "nlsServiceType": "Managed", "silenceTimeout": "5000", "speechNoiseThreshold": "0" } |
| Scene |
string |
场景 |
催收 |
| ScriptName |
string |
话术名字 |
催收话术 |
| NewBargeInEnable |
boolean |
优雅打断配置开关 |
true |
| LongWaitEnable |
boolean |
智能断句配置开关 |
true |
| EmotionEnable |
boolean |
情绪识别配置开关 |
true |
| AgentId |
integer |
机器人业务空间访问 Key |
1218333 |
| AgentKey |
string |
机器人业务空间访问 Key |
14791f5f226b4878b3d9b676a0291234 |
| AgentLlm |
boolean |
机器人业务空间是否大模型业务空间 |
true |
| ChatConfig |
string |
通话配置 |
{"silenceConfig":{"silenceReplyTimeout":499,"silenceTimeoutMaxCount":10,"silenceTimeoutMaxCountEnable":true},"hangupConfig":{"aiHangupEnable":false,"delayHangup":0,"hangupMaxRounds":20,"hangupMaxRoundsBroadcast":"感谢您的接听,祝您生活愉快,再见!","hangupMaxRoundsEnable":false},"securityInterceptConfig":{"broadcast":"您说的这个问题我不能回答您,您可以尝试询问其他问题。"},"specialInterceptConfig":{"specialInterceptEnable":false,"specialIntercepts":[{"code":"voiceAssistant"},{"code":"extensionNumberTransfer"}]},"transitionConfig":{"transitionSwitch":false}} |
| NluEngine |
string |
Nlu 引擎(仅大模型场景适用)
|
Prompts |
| NluProfile |
object |
函数计算服务模式配置 |
|
| FcFunction |
string |
函数服务名称 |
sanfang_test |
| FcRegion |
string |
函数服务地域 |
cn-shanghai |
| FcHttpTriggerUrl |
string |
函数服务触发器 |
http://sanfang_test-xxxxxx.cn-shanghai-vpc.fcapp.run |
| SupportBeebotPrompts |
boolean |
是否支持小蜜 Prompts。true 表示支持,false 表示不支持。 |
|
| LabelConfig |
string |
自定义标签配置 |
{\"labels\":[{\"description\":\"\",\"name\":\"能否到岗\",\"valueList\":\"[\\\"能到岗\\\",\\\"不能到岗\\\"]\"}]} |
| NlsConfig |
string |
已作废 |
none |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"Code": "OK",
"Message": "Success",
"Script": {
"Status": "DRAFTED",
"UpdateTime": 1578881227000,
"ChatbotId": "d31794e2a51f47d2901b4094d88311d7",
"ScriptId": "810b5872-57f0-4b27-80ab-7b3f4d8a6374",
"IsDebugDrafted": true,
"Industry": "金融",
"ScriptDescription": "催收话术",
"MiniPlaybackEnable": true,
"IsDrafted": true,
"TtsConfig": "{\n\t\"appKey\": \"oQDVNlE6fZ5mg46X\",\n\t\"engine\": \"ali\",\n\t\"engineXunfei\": \"\",\n\t\"globalInterruptible\": true,\n \"closingStatementInterruptible\": false, \"openingPromptInterruptible\": false,\n\t\"nlsServiceType\": \"Managed\",\n\t\"pitchRate\": \"0\",\n\t\"speechRate\": \"0\",\n\t\"voice\": \"zhiyuan\",\n\t\"volume\": \"50\"\n}",
"DebugStatus": "DRAFTED",
"AsrConfig": "{\n\t\"appKey\": \"oQDVNlE6fZ5mg46X\",\n\t\"engine\": \"ali\",\n\t\"engineXunfei\": \"\",\n\t\"globalMaxEndSilence\": 700,\n\t\"globalMaxEndSilenceEnable\": true,\n\t\"maxEndSilence\": \"500\",\n\t\"nlsServiceType\": \"Managed\",\n\t\"silenceTimeout\": \"5000\",\n\t\"speechNoiseThreshold\": \"0\"\n}",
"Scene": "催收",
"ScriptName": "催收话术",
"NewBargeInEnable": true,
"LongWaitEnable": true,
"EmotionEnable": true,
"AgentId": 1218333,
"AgentKey": "14791f5f226b4878b3d9b676a0291234",
"AgentLlm": true,
"ChatConfig": "{\"silenceConfig\":{\"silenceReplyTimeout\":499,\"silenceTimeoutMaxCount\":10,\"silenceTimeoutMaxCountEnable\":true},\"hangupConfig\":{\"aiHangupEnable\":false,\"delayHangup\":0,\"hangupMaxRounds\":20,\"hangupMaxRoundsBroadcast\":\"感谢您的接听,祝您生活愉快,再见!\",\"hangupMaxRoundsEnable\":false},\"securityInterceptConfig\":{\"broadcast\":\"您说的这个问题我不能回答您,您可以尝试询问其他问题。\"},\"specialInterceptConfig\":{\"specialInterceptEnable\":false,\"specialIntercepts\":[{\"code\":\"voiceAssistant\"},{\"code\":\"extensionNumberTransfer\"}]},\"transitionConfig\":{\"transitionSwitch\":false}}",
"NluEngine": "Prompts",
"NluProfile": {
"FcFunction": "sanfang_test",
"FcRegion": "cn-shanghai",
"FcHttpTriggerUrl": "http://sanfang_test-xxxxxx.cn-shanghai-vpc.fcapp.run",
"SupportBeebotPrompts": true
},
"LabelConfig": "{\\\"labels\\\":[{\\\"description\\\":\\\"\\\",\\\"name\\\":\\\"能否到岗\\\",\\\"valueList\\\":\\\"[\\\\\\\"能到岗\\\\\\\",\\\\\\\"不能到岗\\\\\\\"]\\\"}]}"
},
"NlsConfig": "none"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | 内部错误。建议重试,如果多次重试报错请提交工单。 |
| 404 | NotExist.Instance | The specified Instance does not exist. | 指定的实例不存在。 |
| 404 | NotExist.Script | The specified Script does not exist. | 指定的话术不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。