简要描述:

查询机器人详情信息
查询机器人下的机器人信息、场景信息、意图信息、词典信息、触发器信息

接口版本:

版本号 制定人 制定日期 修订日期
1.0 王力 2019-04-23 2019-04-23

接口说明:

请求方式 接口地址 Content-Type
GET /bot/read/xxx none

请求参数说明:

名称 提交 必填 数据类型 参数说明
id /bot/read/xxx N String 机器人ID

请求参数示例:

/bot/read/4b30611b-87c0-4b0e-9fa4-9441bfad715c

返回参数说明:

参数名 必填 类型 说明
errorCode int 错误码(0表示成功)
errorMsg string 描述信息
customerId json N String
botId json N String
appName json N String
description json N String
attribute 数组 机器人的基本信息
actions 数组 触发器信息,参照ActionModel表
intentScenarios 数组 会话场景信息,参照intentScenario表
intentScenarios.intents 数组 意图信息,参照IntentModel表
entities 数组 词典信息,参照EntityModel表

返回示例:

正确时返回

{
    "intentDetectionThreshold": 1,
    "robotType": "INTEL_ROBOT",
    "faqId": "",
    "appName": "智能问答机器4号",
    "createTime": "2019-04-23 14:36:52",
    "actions": [
        {
            "createTime": "2019-04-24 13:29:41",
            "method": "GET",
            "expireTime": "3600",
            "name": "选配查看",
            "_id": "76cb8428-3d6f-47e3-a94b-797d1bfccd6f",
            "url": "http://10.10.10.10/getdata",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-24 13:32:20",
            "method": "GET",
            "expireTime": "3600",
            "name": "查看位置",
            "_id": "c4eef6ad-fc9e-4259-87af-39e99fab82d1",
            "url": "http://10.10.10.10/getdata",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-24 13:32:28",
            "method": "GET",
            "expireTime": "3600",
            "updateTime": "2019-04-24 13:35:25",
            "name": "查看状态222222333",
            "updateBy": "12345",
            "_id": "1b548c0a-4c45-488f-b608-dbdfb5578d2e",
            "url": "http://10.10.10.10/getdata",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-24 13:47:46",
            "name": "选配查看复制350",
            "expireTime": "3600",
            "method": "GET",
            "_id": "828415c6-e8c7-4e7d-8b5f-8203960e48ac",
            "url": "http://10.10.10.10/getdata",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        }
    ],
    "appLevel": "PRIVATE",
    "autoIntentParamConfig": false,
    "terminal": true,
    "_id": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
    "intentScenarios": [
        {
            "createTime": "2019-04-23 15:36:47",
            "intents": [
                {
                    "createTime": "2019-04-23 19:28:09",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "01 递送菜单",
                    "_id": "bd26e107-d55a-4ac4-9d1b-4646f9558e63",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:29:48",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "02 翻阅菜单",
                    "_id": "16b87fd7-4a60-43c5-b66b-3ea6dda40c5f",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:48:08",
                    "responses": [],
                    "updateTime": "2019-04-23 19:50:25",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "templates": [
                        "预备点菜拉",
                        "预备点菜拉1",
                        "预备点菜拉2"
                    ],
                    "name": "03 预备点菜",
                    "eventNameList": [],
                    "_id": "a4ea865c-529b-4421-afb4-8c4001be2154",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:25:56",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房",
                    "_id": "2068ecc6-fa2c-469b-8c74-313909224f35",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:27:03",
                    "responses": [],
                    "updateTime": "2019-04-24 10:41:04",
                    "scenarioId": "3d7cf5fc-8345-435d-9183-089d4bbbbf9e",
                    "name": "04 下单到厨房复制511移动380移动329移动872移动305移动839",
                    "eventNameList": [],
                    "updateBy": "12345",
                    "_id": "5c531e64-e8b8-4bc0-95d7-88738dd91980",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:37:00",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房复制511复制497",
                    "_id": "85cbe2d5-eb36-4277-a743-72139129fa49",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                }
            ],
            "description": "订餐",
            "updateTime": "2019-04-23 15:58:31",
            "ceateBy": "12345",
            "name": "开始订餐",
            "updateBy": "12345",
            "_id": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-23 15:46:22",
            "intents": [
                {
                    "createTime": "2019-04-23 19:28:09",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "01 递送菜单",
                    "_id": "bd26e107-d55a-4ac4-9d1b-4646f9558e63",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:29:48",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "02 翻阅菜单",
                    "_id": "16b87fd7-4a60-43c5-b66b-3ea6dda40c5f",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:48:08",
                    "responses": [],
                    "updateTime": "2019-04-23 19:50:25",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "templates": [
                        "预备点菜拉",
                        "预备点菜拉1",
                        "预备点菜拉2"
                    ],
                    "name": "03 预备点菜",
                    "eventNameList": [],
                    "_id": "a4ea865c-529b-4421-afb4-8c4001be2154",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:25:56",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房",
                    "_id": "2068ecc6-fa2c-469b-8c74-313909224f35",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:27:03",
                    "responses": [],
                    "updateTime": "2019-04-24 10:41:04",
                    "scenarioId": "3d7cf5fc-8345-435d-9183-089d4bbbbf9e",
                    "name": "04 下单到厨房复制511移动380移动329移动872移动305移动839",
                    "eventNameList": [],
                    "updateBy": "12345",
                    "_id": "5c531e64-e8b8-4bc0-95d7-88738dd91980",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:37:00",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房复制511复制497",
                    "_id": "85cbe2d5-eb36-4277-a743-72139129fa49",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                }
            ],
            "description": "下单",
            "name": "开始下单",
            "_id": "b8d4b5d9-65b9-4dbc-b554-77e7c86c0bb1",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-23 15:46:37",
            "intents": [
                {
                    "createTime": "2019-04-23 19:28:09",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "01 递送菜单",
                    "_id": "bd26e107-d55a-4ac4-9d1b-4646f9558e63",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:29:48",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "02 翻阅菜单",
                    "_id": "16b87fd7-4a60-43c5-b66b-3ea6dda40c5f",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:48:08",
                    "responses": [],
                    "updateTime": "2019-04-23 19:50:25",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "templates": [
                        "预备点菜拉",
                        "预备点菜拉1",
                        "预备点菜拉2"
                    ],
                    "name": "03 预备点菜",
                    "eventNameList": [],
                    "_id": "a4ea865c-529b-4421-afb4-8c4001be2154",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:25:56",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房",
                    "_id": "2068ecc6-fa2c-469b-8c74-313909224f35",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:27:03",
                    "responses": [],
                    "updateTime": "2019-04-24 10:41:04",
                    "scenarioId": "3d7cf5fc-8345-435d-9183-089d4bbbbf9e",
                    "name": "04 下单到厨房复制511移动380移动329移动872移动305移动839",
                    "eventNameList": [],
                    "updateBy": "12345",
                    "_id": "5c531e64-e8b8-4bc0-95d7-88738dd91980",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:37:00",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房复制511复制497",
                    "_id": "85cbe2d5-eb36-4277-a743-72139129fa49",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                }
            ],
            "description": "结账",
            "name": "结账",
            "_id": "ee09b293-d46b-434d-8c5a-675b42b3c537",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-23 16:07:53",
            "intents": [
                {
                    "createTime": "2019-04-23 19:28:09",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "01 递送菜单",
                    "_id": "bd26e107-d55a-4ac4-9d1b-4646f9558e63",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:29:48",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "02 翻阅菜单",
                    "_id": "16b87fd7-4a60-43c5-b66b-3ea6dda40c5f",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:48:08",
                    "responses": [],
                    "updateTime": "2019-04-23 19:50:25",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "templates": [
                        "预备点菜拉",
                        "预备点菜拉1",
                        "预备点菜拉2"
                    ],
                    "name": "03 预备点菜",
                    "eventNameList": [],
                    "_id": "a4ea865c-529b-4421-afb4-8c4001be2154",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:25:56",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房",
                    "_id": "2068ecc6-fa2c-469b-8c74-313909224f35",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:27:03",
                    "responses": [],
                    "updateTime": "2019-04-24 10:41:04",
                    "scenarioId": "3d7cf5fc-8345-435d-9183-089d4bbbbf9e",
                    "name": "04 下单到厨房复制511移动380移动329移动872移动305移动839",
                    "eventNameList": [],
                    "updateBy": "12345",
                    "_id": "5c531e64-e8b8-4bc0-95d7-88738dd91980",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:37:00",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房复制511复制497",
                    "_id": "85cbe2d5-eb36-4277-a743-72139129fa49",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                }
            ],
            "description": "订餐",
            "ceateBy": "12345",
            "name": "开始订餐复制560",
            "_id": "3d7cf5fc-8345-435d-9183-089d4bbbbf9e",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "intents": [
                {
                    "createTime": "2019-04-23 19:28:09",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "01 递送菜单",
                    "_id": "bd26e107-d55a-4ac4-9d1b-4646f9558e63",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:29:48",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "02 翻阅菜单",
                    "_id": "16b87fd7-4a60-43c5-b66b-3ea6dda40c5f",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-23 19:48:08",
                    "responses": [],
                    "updateTime": "2019-04-23 19:50:25",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "templates": [
                        "预备点菜拉",
                        "预备点菜拉1",
                        "预备点菜拉2"
                    ],
                    "name": "03 预备点菜",
                    "eventNameList": [],
                    "_id": "a4ea865c-529b-4421-afb4-8c4001be2154",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:25:56",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房",
                    "_id": "2068ecc6-fa2c-469b-8c74-313909224f35",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:27:03",
                    "responses": [],
                    "updateTime": "2019-04-24 10:41:04",
                    "scenarioId": "3d7cf5fc-8345-435d-9183-089d4bbbbf9e",
                    "name": "04 下单到厨房复制511移动380移动329移动872移动305移动839",
                    "eventNameList": [],
                    "updateBy": "12345",
                    "_id": "5c531e64-e8b8-4bc0-95d7-88738dd91980",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                },
                {
                    "createTime": "2019-04-24 10:37:00",
                    "scenarioId": "4b26a59e-2d87-4b7c-b05d-d7fdfa32794a",
                    "name": "04 下单到厨房复制511复制497",
                    "_id": "85cbe2d5-eb36-4277-a743-72139129fa49",
                    "status": "Normal",
                    "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
                }
            ],
            "description": "测试",
            "name": "测试",
            "_id": "5cbec3e288b08a80fc28055b",
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        }
    ],
    "entities": [
        {
            "createTime": "2019-04-25 11:28:06",
            "count": 3,
            "name": "迎宾踏板",
            "entityType": "PRIVATE",
            "_id": "2cd896b9-c561-4349-a9b9-08833448383d",
            "entries": [
                {
                    "value": "迎宾踏步",
                    "synonyms": []
                },
                {
                    "value": "LED迎宾踏步",
                    "synonyms": []
                },
                {
                    "value": "",
                    "synonyms": []
                }
            ],
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-25 11:28:37",
            "count": 4,
            "name": "前大灯装饰色",
            "entityType": "PRIVATE",
            "_id": "99667b22-f8ef-45eb-8bd7-4074086fd170",
            "entries": [
                {
                    "value": "原色",
                    "synonyms": []
                },
                {
                    "value": "恶魔红",
                    "synonyms": []
                },
                {
                    "value": "天使蓝",
                    "synonyms": []
                },
                {
                    "value": "",
                    "synonyms": []
                }
            ],
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        },
        {
            "createTime": "2019-04-25 11:29:08",
            "updateTime": "2019-04-25 13:07:38",
            "count": 3,
            "updateBy": "12345",
            "name": "方向盘加热22222222222",
            "entityType": "PRIVATE",
            "_id": "86df9a79-6003-4180-b801-9932a5f3703c",
            "entries": [
                {
                    "value": "带方向盘加热",
                    "synonyms": []
                },
                {
                    "value": "无方向盘加热",
                    "synonyms": []
                },
                {
                    "value": "",
                    "synonyms": []
                }
            ],
            "status": "Normal",
            "appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac"
        }
    ],
    "botId": "c794f6a0-b4fd-4402-b1fb-0880b7be7e9b",
    "customerId": "1234",
    "defaultResponses": [],
    "sessionResetTime": 3600,
    "wechatAuth": false,
    "attribute": {},
    "description": "智能问答机器44444444444人",
    "appKey": "fb988a2a-1c06-4cbd-a22f-68e924bfc61d",
    "headUrl": "",
    "errorCode": 0,
    "errorMsg": "请求成功",
    "status": "Normal",
    "actionTimeoutTime": 3600
}

错误时返回

{
    "errorCode": 100,
    "errorMsg": "系统错误"
}

备注:

  • 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2019-04-25 15:08   作者:王力