返回一个作业的对话数据

调试

您可以在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

返回数据

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

接口状态码

HttpStatusCode Integer 200

http 状态码

Job Struct

作业信息

CallingNumbers List ["057126883106"]

主叫号码列表

Contacts Array

联系人信息

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

联系人id

ContactName String 张三

联系人名字

Honorific String 张先生

联系人尊称

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

作业id

PhoneNumber String 13581588888

电话号码

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

联系人的第三方id

Role String *

联系人角色

State String Available

联系人状态

Extras Array

业务参数

Key String djrq

业务参数名字

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

业务参数值

FailureReason String NoAnswer

作业失败原因

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

作业组id

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

作业id

Priority Integer 5

作业优先级

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

作业第三方系统的id

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

场景id

Status String Succeeded

作业状态

StrategyId String c8a2b7f2-ad1a-4865-b872-d0080d9802d9

策略id

Summary Array

对话摘要数据

Category String {}

对话摘要类别

Content String 5

摘要内容

SummaryName String score

摘要名字

SystemPriority Integer 1

作业系统优先级

Tasks Array

作业下面的任务列表,一个任务是一通通话

ActualTime Long 1579068424883

任务实际执行时间

Brief String 1

业务结果

CallId String 1528189846043

呼叫id

CalledNumber String 13512345678

被叫号码

CallingNumber String 057126883106

主叫号码

ChatbotId String 1234

对话的机器人id

Contact Struct

任务的拨打的联系人信息

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

联系人id

ContactName String 张三

联系人名字

Honorific String 张先生

联系人尊称

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

作业id

PhoneNumber String 13512345678

电话号码

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

联系人第三方系统id

Role String *

联系人角色

State String Available

联系人状态

Conversation Array

任务的对话文本列表

Script String 你好,我是**客服

对话文本

Speaker String Robot

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

Summary Array

对话摘要数据

Category String {}

对话摘要类别

Content String 5

摘要内容

SummaryName String score

摘要名字

Timestamp Long 1579068424883

摘要创建时间

Duration Integer 120

对话持续时间

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

作业id

PlanedTime Long 1579068424883

计划拨打时间

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

场景id

Status String Succeeded

任务状态

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

任务id

Message String Success

接口提示信息

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

请求id

Success Boolean true

是否成功

示例

请求示例

http(s)://[Endpoint]/?InstanceId=af81a389-91f0-4157-8d82-720edd02b66a
&JobId=c8a2b7f2-ad1a-4865-b872-d0080d9802d9
&<公共请求参数>

正常返回示例

XML 格式

<Code>OK</Code>
<HttpStatusCode>200</HttpStatusCode>
<Job>
    <Status>Succeeded</Status>
    <ScenarioId>jr-collection-first-scenario</ScenarioId>
    <Tasks>
        <Status>Succeeded</Status>
        <ChatbotId>419</ChatbotId>
        <PlanedTime>1578638554000</PlanedTime>
        <CalledNumber>135********</CalledNumber>
        <ScenarioId>jr-collection-first-scenario</ScenarioId>
        <EndTime>1578638623000</EndTime>
        <ActualTime>1578638570000</ActualTime>
        <CallId>00001051951578638555</CallId>
        <CreateTime>1578638554000</CreateTime>
        <Conversation>
            <Status>DISTINGUISH</Status>
            <Script/>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <ConversationId>2380a728-45c1-45af-853c-fb7669dc512b</ConversationId>
            <Timestamp>1578638570000</Timestamp>
            <Speaker>Contact</Speaker>
        </Conversation>
        <Conversation>
            <Status>DISTINGUISH</Status>
            <Script>您好,***有限公司,请问是王文杰王文杰女士吗</Script>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <ConversationId>2b30bd6f-be21-4330-9d2c-a6fd1c4d0128</ConversationId>
            <Timestamp>1578638571000</Timestamp>
            <Speaker>Robot</Speaker>
        </Conversation>
        <Conversation>
            <Status>DISTINGUISH</Status>
            <Script>是的</Script>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <ConversationId>bde777f0-44a1-4e10-a405-4f8aa3b885a1</ConversationId>
            <Timestamp>1578638584000</Timestamp>
            <Speaker>Contact</Speaker>
        </Conversation>
        <ContactId>8704619d-61ec-4344-a9f8-06654b795ecf</ContactId>
        <Brief>1</Brief>
        <CallingNumber>1003</CallingNumber>
        <Contact>
            <Role>1</Role>
            <Honorific>王文杰女士</Honorific>
            <ReferenceId>abc</ReferenceId>
            <PhoneNumber>135********</PhoneNumber>
            <Round>0</Round>
            <ContactId>8704619d-61ec-4344-a9f8-06654b795ecf</ContactId>
            <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
            <ContactName>王文杰</ContactName>
        </Contact>
        <LastUpdated>1578638623000</LastUpdated>
        <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
        <JobId>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobId>
    </Tasks>
    <Priority>5</Priority>
    <CreateTime>1578638543000</CreateTime>
    <StrategyId>jr-collection-oneday-strategy</StrategyId>
    <Extras>
        <Value>1870.75</Value>
        <Key>capital</Key>
    </Extras>
    <Extras>
        <Value>奥迪A4L</Value>
        <Key>carBrand</Key>
    </Extras>
    <GroupId>finance-collection-first-group</GroupId>
    <Contacts>
        <Role>1</Role>
        <Honorific>王文杰王文杰女士</Honorific>
        <ReferenceId>abc</ReferenceId>
        <PhoneNumber>135********</PhoneNumber>
        <Round>0</Round>
        <Id>8704619d-61ec-4344-a9f8-06654b795ecf</Id>
        <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
        <Name>王文杰王文杰</Name>
    </Contacts>
    <SystemPriority>1</SystemPriority>
    <Summary>
        <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
        <Content>yes</Content>
        <SummaryId>11a82ea0-ca18-4c66-8fb2-fa88cbd84784</SummaryId>
        <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
        <SummaryName>Connected</SummaryName>
    </Summary>
    <Summary>
        <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
        <Content>yes</Content>
        <SummaryId>b0a4c6b3-bfa7-488e-b77a-394a52932e0d</SummaryId>
        <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
        <SummaryName>Connected</SummaryName>
    </Summary>
    <JobId>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobId>
    <CallingNumbers>1003</CallingNumbers>
</Job>
<Success>true</Success>

JSON 格式

{
    "Code": "OK",
    "HttpStatusCode": 200,
    "Job": {
        "Status":"Succeeded",
        "ScenarioId":"jr-collection-first-scenario",
        "Tasks":[
            {
                "Status":"Succeeded",
                "ChatbotId":"419",
                "PlanedTime":1578638554000,
                "CalledNumber":"135********",
                "ScenarioId":"jr-collection-first-scenario",
                "EndTime":1578638623000,
                "ActualTime":1578638570000,
                "CallId":"00001051951578638555",
                "CreateTime":1578638554000,
                "Summaries":[

                ],
                "Conversation":[
                    {
                        "Status":"DISTINGUISH",
                        "Script":"",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"2380a728-45c1-45af-853c-fb7669dc512b",
                        "Timestamp":1578638570000,
                        "Speaker":"Contact"
                    },
                    {
                        "Status":"DISTINGUISH",
                        "Script":"您好,***有限公司,请问是王文杰王文杰女士吗",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"2b30bd6f-be21-4330-9d2c-a6fd1c4d0128",
                        "Timestamp":1578638571000,
                        "Speaker":"Robot"
                    },
                    {
                        "Status":"DISTINGUISH",
                        "Script":"是的",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"bde777f0-44a1-4e10-a405-4f8aa3b885a1",
                        "Timestamp":1578638584000,
                        "Speaker":"Contact"
                    }
                ],
                "ContactId":"8704619d-61ec-4344-a9f8-06654b795ecf",
                "Brief":"1",
                "CallingNumber":"1003",
                "Contact":{
                    "Role":"1",
                    "Honorific":"王文杰女士",
                    "ReferenceId":"abc",
                    "PhoneNumber":"135********",
                    "Round":0,
                    "ContactId":"8704619d-61ec-4344-a9f8-06654b795ecf",
                    "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                    "ContactName":"王文杰"
                },
                "LastUpdated":1578638623000,
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "JobId":"177fbde7-dafa-47b6-b996-6a96d11b44ce"
            }
        ],
        "Priority":5,
        "CreateTime":1578638543000,
        "StrategyId":"jr-collection-oneday-strategy",
        "Extras":[
            {
                "Value":"1870.75",
                "Key":"capital"
            },
            {
                "Value":"奥迪A4L",
                "Key":"carBrand"
            }
        ],
        "GroupId":"finance-collection-first-group",
        "Contacts":[
            {
                "Role":"1",
                "Honorific":"王文杰王文杰女士",
                "ReferenceId":"abc",
                "PhoneNumber":"135********",
                "Round":0,
                "Id":"8704619d-61ec-4344-a9f8-06654b795ecf",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "Name":"王文杰王文杰"
            }
        ],
        "SystemPriority":1,
        "Summary":[
            {
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "Content":"yes",
                "SummaryId":"11a82ea0-ca18-4c66-8fb2-fa88cbd84784",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "SummaryName":"Connected"
            },
            {
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "Content":"yes",
                "SummaryId":"b0a4c6b3-bfa7-488e-b77a-394a52932e0d",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "SummaryName":"Connected"
            }
        ],
        "JobId":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
        "CallingNumbers":[
            "1003"
        ]
    },
    "Success": true
}

错误码

HttpCode 错误码 错误信息 描述
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.Job The specified Job does not exist. 指定的任务不存在。

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