修改话术信息。

调试

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

请求参数

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

系统规定参数。取值:ModifyScript

InstanceId String c6320d3c-fa45-4011-b3b1-acdfabe3a8c6

实例id

ScriptId String c153d0d8-ba04-41c0-8632-453944c9dd0b

话术id

ScriptName String 续费提醒

话术名字

ScriptDescription String 返工回访话术

话术描述

Industry String 电商

行业

Scene String 回访

场景信息

ChatbotId String chatbot-cn-iFZfi7eq6e

机器人id

AsrConfig String {\"AppKey\":\"kknxKIhTTUcpCzYX\"}

asr配置

TtsConfig String {\"voice\":\"siyue\",\"volume\":\"50\",\"speechRate\":\"-150\",\"pitchRate\":\"0\"}

tts配置信息

ScriptContent.N String 您好,您昨晚在李佳琦直播间下单的娜薇诗椰子水二代精华2支装还未付款,超时未支付会自动关闭订单,活动错过不再有奥。

通知类实例,传入话术列表。

已作废。

ScriptWaveform.N String

通知类实例,传入话术声音列表。

已作废。

NewBargeInEnable Boolean true

优雅打断配置开关

LongWaitEnable Boolean true

智能断句配置开关

MiniPlaybackEnable Boolean true

承接语配置开关

MiniPlaybackConfigListJsonString String

语气承接配置,暂时不支持自定义,默认无需传递该参数。(已作废)

NlsConfig String

已作废

EmotionEnable Boolean true

情绪识别配置开关

返回数据

名称 类型 示例值 描述
HttpStatusCode Integer 200

http状态码

RequestId String 254EB995-DEDF-48A4-9101-9CA5B72FFBCC

请求id

Success Boolean true

是否成功

Code String OK

接口状态

Message String Success

响应信息

Script Object

话术信息

Status String PUBLISHED

话术状态

UpdateTime Long 1578881227000

更新时间

Industry String 政务

行业

ScriptDescription String 返工回访话术

话术描述

IsDrafted Boolean true

是否是草稿

DebugStatus String DRAFTED

话术调试状态

ScriptId String c153d0d8-ba04-41c0-8632-453944c9dd0b

话术id

IsDebugDrafted Boolean true

是否是调试的草稿

ScriptName String 回访话术

话术名字

Scene String 回访

场景

示例

请求示例

http(s)://[Endpoint]/?Action=ModifyScript
&InstanceId=c6320d3c-fa45-4011-b3b1-acdfabe3a8c6
&ScriptId=c153d0d8-ba04-41c0-8632-453944c9dd0b
&ScriptName=续费提醒
&ScriptDescription=返工回访话术
&Industry=电商
&Scene=回访
&ChatbotId=chatbot-cn-iFZfi7eq6e
&AsrConfig={\"AppKey\":\"kknxKIhTTUcpCzYX\"}
&TtsConfig={\"voice\":\"siyue\",\"volume\":\"50\",\"speechRate\":\"-150\",\"pitchRate\":\"0\"}
&ScriptContent=["您好,您昨晚在李佳琦直播间下单的娜薇诗椰子水二代精华2支装还未付款,超时未支付会自动关闭订单,活动错过不再有奥。"]
&ScriptWaveform=["无"]
&NewBargeInEnable=true
&LongWaitEnable=true
&MiniPlaybackEnable=true
&MiniPlaybackConfigListJsonString=无
&NlsConfig=无
&EmotionEnable=true
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyScriptResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>254EB995-DEDF-48A4-9101-9CA5B72FFBCC</RequestId>
    <Success>true</Success>
    <Code>OK</Code>
    <Message>Success</Message>
    <Script>
        <Status>PUBLISHED</Status>
        <UpdateTime>1578881227000</UpdateTime>
        <Industry>政务</Industry>
        <ScriptDescription>返工回访话术</ScriptDescription>
        <IsDrafted>true</IsDrafted>
        <DebugStatus>DRAFTED</DebugStatus>
        <ScriptId>c153d0d8-ba04-41c0-8632-453944c9dd0b</ScriptId>
        <IsDebugDrafted>true</IsDebugDrafted>
        <ScriptName>回访话术</ScriptName>
        <Scene>回访</Scene>
    </Script>
</ModifyScriptResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "HttpStatusCode" : 200,
  "RequestId" : "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
  "Success" : true,
  "Code" : "OK",
  "Message" : "Success",
  "Script" : {
    "Status" : "PUBLISHED",
    "UpdateTime" : 1578881227000,
    "Industry" : "政务",
    "ScriptDescription" : "返工回访话术",
    "IsDrafted" : true,
    "DebugStatus" : "DRAFTED",
    "ScriptId" : "c153d0d8-ba04-41c0-8632-453944c9dd0b",
    "IsDebugDrafted" : true,
    "ScriptName" : "回访话术",
    "Scene" : "回访"
  }
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidScriptName.Duplicated The specified ScriptName already exists. 话术名称已经存在。请您更换一个名字。
404 NotExist.Instance The specified Instance does not exist. 指定的实例不存在。
404 NotExist.Script The specified Script does not exist. 指定的话术不存在。
500 InternalError An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. 内部错误。建议重试,如果多次重试报错请提交工单。

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