返回一个作业的对话数据

调试

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

请求参数

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

系统规定参数。取值:DescribeJob

InstanceId String af81a389-91f0-4157-8d82-720edd02b66a

实例id

JobId String c8a2b7f2-ad1a-4865-b872-d0080d9802d9

作业id

返回数据

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

http状态码

Code String OK

接口状态码

Message String Success

接口提示信息

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

请求id

Success Boolean true

是否成功

Job Object

作业信息

Status String Succeeded

作业状态

ActualTime Long 1640068026385

作业实际执行时间

Priority Integer 5

作业优先级

DsReport String -

任务命中标签情况

NextExecutionTime Long 1640068026385

任务下次执行的时间

FailureReason String NoAnswer

作业失败原因

SystemPriority Integer 1

作业系统优先级

InstanceId String d5971d98-7312-4f0e-a918-a17d67133e28

实例id

CalledNumber String 137****7777

被叫号码

ReferenceId String d5971d98-7312-4f0e-a918-a17d67133e28

作业第三方系统的id

JobGroupId String fce6c599-8ede-40e3-9f78-0928eda7b4e8

作业组id

ScenarioId String ade80092-03d9-4f4d-ad4f-ab8a247d3150

场景id

StrategyId String c8a2b7f2-ad1a-4865-b872-d0080d9802d9

策略id

EndReason Integer 1

任务完结原因

JobId String b72425bd-7871-4050-838e-033d80d754b7

作业id

Contacts Array of Contact

联系人信息

PhoneNumber String 1358****8888

电话号码

State String Available

联系人状态

ContactId String db3db762-e421-44c9-9a01-cb423470757c

联系人id

Honorific String 张先生

联系人尊称

JobId String 72dcd26b-f12d-4c27-b3af-18f6aed5b160

作业id

ContactName String 张三

联系人名字

Role String *

联系人角色

ReferenceId String 2fa6bac3-06da-4315-82ab-72d6fd3a6f34

联系人的第三方id

Extras Array of KeyValuePair

业务参数

Key String djrq

业务参数名字

Value String 2019-08-21 09:49:59.0

业务参数值

Summary Array of Summary

对话摘要数据

SummaryName String score

摘要名字

Category String {}

对话摘要类别

Content String 5

摘要内容

Tasks Array of Task

任务列表

Status String Succeeded

任务状态

PlanedTime Long 1579068424883

计划拨打时间

ChatbotId String 1234

对话的机器人id

ActualTime Long 1579068424883

任务实际执行时间

CalledNumber String 135****8888

被叫号码

EndTime Long 1579068424883

外呼任务实际结束的时间

ScenarioId String ade80092-03d9-4f4d-ad4f-ab8a247d3150

场景id

EndReason String FINISHED

完结原因

JobId String b72425bd-7871-4050-838e-033d80d754b7

作业id

CallId String 1528189846043

呼叫id

CallingNumber String 0571****3106

主叫号码

Brief String 1

业务结果

Duration Integer 120

对话持续时间

TaskId String ff44709e-39a6-43ba-959b-20fcabe3e496

任务id

Conversation Array of ConversationDetail

任务的对话文本列表

ActionParams String {}

指令参数

Action String Broadcast

指令

Timestamp Long 1579068424883

摘要创建时间

Speaker String Robot

对话是谁说的,Robot 机器人 ,Contact 联系人

Script String 你好,我是**客服

对话文本

Summary Array of Summary

对话摘要数据

SummaryName String score

摘要名字

Category String {}

对话摘要类别

Content String 5

摘要内容

Contact Object

任务的拨打的联系人信息

PhoneNumber String 1351****8888

电话号码

State String Available

联系人状态

ContactId String db3db762-e421-44c9-9a01-cb423470757c

联系人id

Honorific String 张先生

联系人尊称

JobId String b72425bd-7871-4050-838e-033d80d754b7

作业id

ContactName String 张三

联系人名字

Role String *

联系人角色

ReferenceId String 2fa6bac3-06da-4315-82ab-72d6fd3a6f34

联系人第三方系统id

HangUpDirection String client

挂断方

CallingNumbers Array of String ["0571****3106"]

主叫号码列表

示例

请求示例

正常返回示例

XML格式

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

<DescribeJobResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <Code>OK</Code>
    <Message>Success</Message>
    <RequestId>254EB995-DEDF-48A4-9101-9CA5B72FFBCC</RequestId>
    <Success>true</Success>
    <Job>
        <Status>Succeeded</Status>
        <ActualTime>1640068026385</ActualTime>
        <Priority>5</Priority>
        <DsReport>-</DsReport>
        <NextExecutionTime>1640068026385</NextExecutionTime>
        <FailureReason>NoAnswer</FailureReason>
        <SystemPriority>1</SystemPriority>
        <InstanceId>d5971d98-7312-4f0e-a918-a17d67133e28</InstanceId>
        <CalledNumber>137****7777</CalledNumber>
        <ReferenceId>d5971d98-7312-4f0e-a918-a17d67133e28</ReferenceId>
        <JobGroupId>fce6c599-8ede-40e3-9f78-0928eda7b4e8</JobGroupId>
        <ScenarioId>ade80092-03d9-4f4d-ad4f-ab8a247d3150</ScenarioId>
        <StrategyId>c8a2b7f2-ad1a-4865-b872-d0080d9802d9</StrategyId>
        <EndReason>1</EndReason>
        <JobId>b72425bd-7871-4050-838e-033d80d754b7</JobId>
        <Contacts>
            <PhoneNumber>1358****8888</PhoneNumber>
            <State>Available</State>
            <ContactId>db3db762-e421-44c9-9a01-cb423470757c</ContactId>
            <Honorific>张先生</Honorific>
            <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5b160</JobId>
            <ContactName>张三</ContactName>
            <Role>*</Role>
            <ReferenceId>2fa6bac3-06da-4315-82ab-72d6fd3a6f34</ReferenceId>
        </Contacts>
        <Extras>
            <Key>djrq</Key>
            <Value>2019-08-21 09:49:59.0</Value>
        </Extras>
        <Summary>
            <SummaryName>score</SummaryName>
            <Category>{}</Category>
            <Content>5</Content>
        </Summary>
        <Tasks>
            <Status>Succeeded</Status>
            <PlanedTime>1579068424883</PlanedTime>
            <ChatbotId>1234</ChatbotId>
            <ActualTime>1579068424883</ActualTime>
            <CalledNumber>135****8888</CalledNumber>
            <EndTime>1579068424883</EndTime>
            <ScenarioId>ade80092-03d9-4f4d-ad4f-ab8a247d3150</ScenarioId>
            <JobId>b72425bd-7871-4050-838e-033d80d754b7</JobId>
            <CallId>1528189846043</CallId>
            <CallingNumber>0571****3106</CallingNumber>
            <Brief>1</Brief>
            <Duration>120</Duration>
            <TaskId>ff44709e-39a6-43ba-959b-20fcabe3e496</TaskId>
            <Conversation>
                <Timestamp>1579068424883</Timestamp>
                <Speaker>Robot</Speaker>
                <Script>你好,我是**客服</Script>
                <Summary>
                    <SummaryName>score</SummaryName>
                    <Category>{}</Category>
                    <Content>5</Content>
                </Summary>
            </Conversation>
            <Contact>
                <PhoneNumber>1351****8888</PhoneNumber>
                <State>Available</State>
                <ContactId>db3db762-e421-44c9-9a01-cb423470757c</ContactId>
                <Honorific>张先生</Honorific>
                <JobId>b72425bd-7871-4050-838e-033d80d754b7</JobId>
                <ContactName>张三</ContactName>
                <Role>*</Role>
                <ReferenceId>2fa6bac3-06da-4315-82ab-72d6fd3a6f34</ReferenceId>
            </Contact>
            <HangUpDirection>client</HangUpDirection>
        </Tasks>
        <CallingNumbers>["0571****3106"]</CallingNumbers>
    </Job>
</DescribeJobResponse>

JSON格式

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

{
  "HttpStatusCode" : 200,
  "Code" : "OK",
  "Message" : "Success",
  "RequestId" : "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
  "Success" : true,
  "Job" : {
    "Status" : "Succeeded",
    "ActualTime" : 1640068026385,
    "Priority" : 5,
    "DsReport" : "-",
    "NextExecutionTime" : 1640068026385,
    "FailureReason" : "NoAnswer",
    "SystemPriority" : 1,
    "InstanceId" : "d5971d98-7312-4f0e-a918-a17d67133e28",
    "CalledNumber" : "137****7777",
    "ReferenceId" : "d5971d98-7312-4f0e-a918-a17d67133e28",
    "JobGroupId" : "fce6c599-8ede-40e3-9f78-0928eda7b4e8",
    "ScenarioId" : "ade80092-03d9-4f4d-ad4f-ab8a247d3150",
    "StrategyId" : "c8a2b7f2-ad1a-4865-b872-d0080d9802d9",
    "EndReason" : 1,
    "JobId" : "b72425bd-7871-4050-838e-033d80d754b7",
    "Contacts" : [ {
      "PhoneNumber" : "1358****8888",
      "State" : "Available",
      "ContactId" : "db3db762-e421-44c9-9a01-cb423470757c",
      "Honorific" : "张先生",
      "JobId" : "72dcd26b-f12d-4c27-b3af-18f6aed5b160",
      "ContactName" : "张三",
      "Role" : "*",
      "ReferenceId" : "2fa6bac3-06da-4315-82ab-72d6fd3a6f34"
    } ],
    "Extras" : [ {
      "Key" : "djrq",
      "Value" : "2019-08-21 09:49:59.0"
    } ],
    "Summary" : [ {
      "SummaryName" : "score",
      "Category" : "{}",
      "Content" : "5"
    } ],
    "Tasks" : [ {
      "Status" : "Succeeded",
      "PlanedTime" : 1579068424883,
      "ChatbotId" : "1234",
      "ActualTime" : 1579068424883,
      "CalledNumber" : "135****8888",
      "EndTime" : 1579068424883,
      "ScenarioId" : "ade80092-03d9-4f4d-ad4f-ab8a247d3150",
      "JobId" : "b72425bd-7871-4050-838e-033d80d754b7",
      "CallId" : "1528189846043",
      "CallingNumber" : "0571****3106",
      "Brief" : "1",
      "Duration" : 120,
      "TaskId" : "ff44709e-39a6-43ba-959b-20fcabe3e496",
      "Conversation" : [ {
        "Timestamp" : 1579068424883,
        "Speaker" : "Robot",
        "Script" : "你好,我是**客服",
        "Summary" : [ {
          "SummaryName" : "score",
          "Category" : "{}",
          "Content" : "5"
        } ]
      } ],
      "Contact" : {
        "PhoneNumber" : "1351****8888",
        "State" : "Available",
        "ContactId" : "db3db762-e421-44c9-9a01-cb423470757c",
        "Honorific" : "张先生",
        "JobId" : "b72425bd-7871-4050-838e-033d80d754b7",
        "ContactName" : "张三",
        "Role" : "*",
        "ReferenceId" : "2fa6bac3-06da-4315-82ab-72d6fd3a6f34"
      },
      "HangUpDirection" : "client"
    } ],
    "CallingNumbers" : [ "[\"0571****3106\"]" ]
  }
}

错误码

HttpCode 错误码 错误信息 描述
404 NotExist.Instance The specified Instance does not exist. 指定的实例不存在。
404 NotExist.Job The specified Job does not exist. 指定的任务不存在。
500 InternalError An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. 内部错误。建议重试,如果多次重试报错请提交工单。

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