企业AI知识库

轻易云AI知识库是一个为企业量身打造的智能解决方案,它能够进行机器人角色设定、知识库训练、发布/分享机器人,同时还带有AI智能对话功能,可以设定多种AI行业场景。适用于企业智能客服、企业智能文档、专家顾问助理等多种企业级商业场景,具有较大的商业使用价值。

了解更多,请访问轻企AI知识库官网

AI智能体

AI智能体是轻易云知识库的核心组成部分,它通过录入文档或问答来创建知识库,让机器人学习。根据机器人训练情况,企业可以实时删除或替换文档,以保持知识库的更新和准确性。AI智能体支持多种角色设定,如客服、销售、培训师、营销人员、行业专家等,以满足不同业务需求。

了解更多,请访问轻易云知识库体验中心

有成报销连接器获取及方案配置

本文将介绍如何获取有成报销的连接器信息及配置有成报销的请求方案和写入方案
开发文档:https://bbs.qeasy.cloud/d/12960-you-cheng-bao-xiao-pei-zhi-zhi-nan
一、建立连接器

  1. 使用有管理员权限的账号登录有成报销,如果是钉钉账户授权的,需要从钉钉进入
  2. 在系统管理-开发者中心中,获取appkeyappSecret

    将参数填入连接器中,host固定为https://www.h3yun.com/OpenApi/Invokeenginecode填入appKeyenginesecret填入appSecret

二、配置请求适配器

  1. 请求适配器:\Adapter\Ycbg\YcbgQueryAdapter
  2. 获取单据code
    调用/reimburse/base/getTemplateList.rjson这个接口,来查请求单据列表所需要的相关字段,以下为请求调度者源数据,进行一次性的查询,并保留原始的返回参数,后续配置过程中需要用到。其中templateCode为各单据的单据code。
    {
      "api": "/reimburse/base/getTemplateList.rjson",
      "type": "RESTful",
      "effect": "QUERY",
      "method": "POST",
      "number": "templateName",
      "id": "templateCode",
      "name": "id",
      "idCheck": true,
      "request": [],
      "otherRequest": [],
      "response": [
        {
          "field": "code",
          "label": "code",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "codeRYSmj",
          "title": "code-code",
          "key": "codeRYSmj"
        },
        {
          "field": "configureObject",
          "label": "configureObject",
          "type": "object",
          "value": "",
          "describe": "_autoFillResponse",
          "id": "configureObject4J88x",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "children": [
            {
              "field": "valueRule",
              "label": "valueRule",
              "type": "string",
              "value": "",
              "id": "configureObjectVwpjM",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "valueRule-valueRule",
              "key": "configureObjectVwpjM"
            },
            {
              "field": "editable",
              "label": "editable",
              "type": "string",
              "value": "",
              "id": "configureObjecthO9Et",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "editable-editable",
              "key": "configureObjecthO9Et"
            },
            {
              "field": "textType",
              "label": "textType",
              "type": "string",
              "value": "",
              "id": "configureObjectjyUFP",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "textType-textType",
              "key": "configureObjectjyUFP"
            },
            {
              "field": "optional",
              "label": "optional",
              "type": "string",
              "value": "",
              "id": "configureObjectZkH91",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "optional-optional",
              "key": "configureObjectZkH91"
            },
            {
              "field": "label",
              "label": "label",
              "type": "string",
              "value": "",
              "id": "configureObjectRF2Kg",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "label-label",
              "key": "configureObjectRF2Kg"
            },
            {
              "field": "placeholder",
              "label": "placeholder",
              "type": "string",
              "value": "",
              "id": "configureObjectdgqjO",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "placeholder-placeholder",
              "key": "configureObjectdgqjO"
            },
            {
              "field": "maxLength",
              "label": "maxLength",
              "type": "string",
              "value": "",
              "id": "configureObjectktUip",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "maxLength-maxLength",
              "key": "configureObjectktUip"
            },
            {
              "field": "destruction",
              "label": "destruction",
              "type": "string",
              "value": "",
              "id": "configureObjectGHJv9",
              "formModel": {
                "enable": false
              },
              "physicalModel": {
                "enable": false
              },
              "tableModel": {
                "enable": false
              },
              "describe": "_autoFillResponse",
              "title": "destruction-destruction",
              "key": "configureObjectGHJv9"
            }
          ],
          "title": "configureObject-configureObject",
          "key": "configureObject4J88x"
        },
        {
          "field": "label",
          "label": "label",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "labelwYl1h",
          "title": "label-label",
          "key": "labelwYl1h"
        },
        {
          "field": "name",
          "label": "name",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "nameRgILx",
          "title": "name-name",
          "key": "nameRgILx"
        },
        {
          "field": "orderTemplateType",
          "label": "orderTemplateType",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "orderTemplateTypeNi2wO",
          "title": "orderTemplateType-orderTemplateType",
          "key": "orderTemplateTypeNi2wO"
        },
        {
          "field": "require",
          "label": "require",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "require3p3RP",
          "title": "require-require",
          "key": "require3p3RP"
        },
        {
          "field": "subformComponentList",
          "label": "subformComponentList",
          "type": "object",
          "value": "",
          "describe": "_autoFillResponse",
          "id": "subformComponentListiw3YF",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "children": [],
          "title": "subformComponentList-subformComponentList",
          "key": "subformComponentListiw3YF"
        },
        {
          "field": "templateCode",
          "label": "templateCode",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "templateCodelz3rz",
          "title": "templateCode-templateCode",
          "key": "templateCodelz3rz"
        },
        {
          "field": "templateName",
          "label": "templateName",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "templateNamebt0pp",
          "title": "templateName-templateName",
          "key": "templateNamebt0pp"
        },
        {
          "field": "templateType",
          "label": "templateType",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "templateTypeQLjtF",
          "title": "templateType-templateType",
          "key": "templateTypeQLjtF"
        },
        {
          "field": "type",
          "label": "type",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "typeQxaZk",
          "title": "type-type",
          "key": "typeQxaZk"
        }
      ],
      "otherResponse": [
        {
          "id": "65be8c25-24e5-3163-a8e4-91835b58f61e",
          "field": "statusKey",
          "label": "statusKey",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "result",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "statusKey-statusKey",
          "key": "65be8c25-24e5-3163-a8e4-91835b58f61e"
        },
        {
          "id": "7feeba0d-38b2-3a89-a291-2f34790d49fb",
          "field": "statusValue",
          "label": "statusValue",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "100",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "statusValue-statusValue",
          "key": "7feeba0d-38b2-3a89-a291-2f34790d49fb"
        },
        {
          "id": "c97bc60c-eb2b-3d31-8592-ba6528369c33",
          "field": "dataKey",
          "label": "dataKey",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "data",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "dataKey-dataKey",
          "key": "c97bc60c-eb2b-3d31-8592-ba6528369c33"
        },
        {
          "id": "bcfd3482-b286-3bc9-a917-7b7e90960888",
          "field": "pageKey",
          "label": "pageKey",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "page",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "pageKey-pageKey",
          "key": "bcfd3482-b286-3bc9-a917-7b7e90960888"
        }
      ],
      "buildModel": false,
      "autoFillResponse": true
    }
    1. 找到单据类型
      在有成的基础设置-自定义单据中找到对应的单据类型,1. 报销单 2.借款单 3.付款单 4.费用类型 5. 申请单 6. 合同 7. 项目 8.收款单
    2. 配置列表查询方案
      将刚才获取到的单据类型和单据code填入请求调度者参数中。

三、写入调度者配置

  1. 写入适配器:\Adapter\Ycbg\YcbgExecuteAdapter
  2. 查询单据模板
    手工在有成做对应的单据,并把他查出来,以下为源数据,而后通过找中文的方式,找到对应字段的key。
    {
      "api": "/reimburse/order/getOrderList.rjson",
      "type": "RESTful",
      "effect": "QUERY",
      "method": "POST",
      "number": "{{random}}",
      "id": "{{random}}",
      "name": "id",
      "idCheck": true,
      "request": [
        {
          "id": "b5e2fa99-9bba-3b53-b308-56118051dd25",
          "field": "type",
          "label": "type",
          "type": "string",
          "is_required": false,
          "describe": "暂无描述",
          "value": "3",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "type-type",
          "key": "b5e2fa99-9bba-3b53-b308-56118051dd25"
        },
        {
          "id": "17a97526-8a4a-3bea-b46b-4c697fc240af",
          "field": "page",
          "label": "page",
          "type": "int",
          "is_required": false,
          "describe": "暂无描述",
          "value": "1",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "page-page",
          "key": "17a97526-8a4a-3bea-b46b-4c697fc240af"
        },
        {
          "id": "275db7a2-570d-3b05-b049-b6b3abe0456a",
          "field": "pageSize",
          "label": "pageSize",
          "type": "int",
          "is_required": false,
          "describe": "暂无描述",
          "value": "10",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "pageSize-pageSize",
          "key": "275db7a2-570d-3b05-b049-b6b3abe0456a"
        },
        {
          "id": "bf1f8107-27e7-317d-94b2-e7c2cd9f8630",
          "field": "beginTime",
          "label": "beginTime",
          "type": "string",
          "is_required": false,
          "describe": "暂无描述",
          "value": "2021-10-11 19:32:27",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "beginTime-beginTime",
          "key": "bf1f8107-27e7-317d-94b2-e7c2cd9f8630"
        },
        {
          "id": "1cfee916-edc9-3931-9282-c0b4adc47e53",
          "field": "dateType",
          "label": "dateType",
          "type": "int",
          "is_required": false,
          "describe": "暂无描述",
          "value": "0",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "dateType-dateType",
          "key": "1cfee916-edc9-3931-9282-c0b4adc47e53"
        }
      ],
      "otherRequest": [],
      "response": [
        {
          "field": "completeTime",
          "label": "completeTime",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "completeTimen4txe",
          "title": "completeTime-completeTime",
          "key": "completeTimen4txe"
        },
        {
          "field": "contractPlanInfoList",
          "label": "contractPlanInfoList",
          "type": "object",
          "value": "",
          "describe": "_autoFillResponse",
          "id": "contractPlanInfoListWJAXk",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "children": [],
          "title": "contractPlanInfoList-contractPlanInfoList",
          "key": "contractPlanInfoListWJAXk"
        },
        {
          "field": "orderCode",
          "label": "orderCode",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "orderCodebBuqg",
          "title": "orderCode-orderCode",
          "key": "orderCodebBuqg"
        },
        {
          "field": "orderDate",
          "label": "orderDate",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "orderDatendpDI",
          "title": "orderDate-orderDate",
          "key": "orderDatendpDI"
        },
        {
          "field": "orderName",
          "label": "orderName",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "orderName7jBfW",
          "title": "orderName-orderName",
          "key": "orderName7jBfW"
        },
        {
          "field": "payAccountInfo",
          "label": "payAccountInfo",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "payAccountInfo5vIbj",
          "title": "payAccountInfo-payAccountInfo",
          "key": "payAccountInfo5vIbj"
        },
        {
          "field": "payAmount",
          "label": "payAmount",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "payAmountYQCzA",
          "title": "payAmount-payAmount",
          "key": "payAmountYQCzA"
        },
        {
          "field": "submitDate",
          "label": "submitDate",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "submitDateJljtt",
          "title": "submitDate-submitDate",
          "key": "submitDateJljtt"
        },
        {
          "field": "templateInsName",
          "label": "templateInsName",
          "value": "",
          "type": "string",
          "describe": "_autoFillResponse",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "id": "templateInsNameoUo0V",
          "title": "templateInsName-templateInsName",
          "key": "templateInsNameoUo0V"
        },
        {
          "field": "userBankInfoList",
          "label": "userBankInfoList",
          "type": "object",
          "value": "",
          "describe": "_autoFillResponse",
          "id": "userBankInfoListQ44GU",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "children": [],
          "title": "userBankInfoList-userBankInfoList",
          "key": "userBankInfoListQ44GU"
        },
        {
          "field": "writeOffList",
          "label": "writeOffList",
          "type": "object",
          "value": "",
          "describe": "_autoFillResponse",
          "id": "writeOffListAe4Kz",
          "formModel": {
            "enable": false
          },
          "physicalModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "children": [],
          "title": "writeOffList-writeOffList",
          "key": "writeOffListAe4Kz"
        }
      ],
      "otherResponse": [
        {
          "id": "65be8c25-24e5-3163-a8e4-91835b58f61e",
          "field": "statusKey",
          "label": "statusKey",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "result",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "statusKey-statusKey",
          "key": "65be8c25-24e5-3163-a8e4-91835b58f61e"
        },
        {
          "id": "7feeba0d-38b2-3a89-a291-2f34790d49fb",
          "field": "statusValue",
          "label": "statusValue",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "100",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "statusValue-statusValue",
          "key": "7feeba0d-38b2-3a89-a291-2f34790d49fb"
        },
        {
          "id": "c97bc60c-eb2b-3d31-8592-ba6528369c33",
          "field": "dataKey",
          "label": "dataKey",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "data.list",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "dataKey-dataKey",
          "key": "c97bc60c-eb2b-3d31-8592-ba6528369c33"
        },
        {
          "id": "bcfd3482-b286-3bc9-a917-7b7e90960888",
          "field": "pageKey",
          "label": "pageKey",
          "type": "string",
          "is_required": false,
          "describe": "",
          "value": "page",
          "parent_id": "00000000-0000-0000-0000-000000000000",
          "physicalModel": {
            "enable": false
          },
          "formModel": {
            "enable": false
          },
          "tableModel": {
            "enable": false
          },
          "title": "pageKey-pageKey",
          "key": "bcfd3482-b286-3bc9-a917-7b7e90960888"
        }
      ],
      "buildModel": false,
      "autoFillResponse": true
    }
  3. 配置写入调度者
    通过刚才请求出来的单据模板,用中文找到对应字段的key

热门文章

旺店通销售出库单数据抓取及初步处理指南

2021-04-08 16:00:06

聚水潭到金蝶云的高效数据同步方案

2021-08-30 03:49:49

调用吉客云API获取入库单数据的技术解析

2021-07-05 03:33:41

利用轻易云提高数据流畅度:吉客云到金蝶云星空的数据同步实战

2021-01-16 20:59:40

调用汤臣倍健营销云接口获取数据的详细步骤

2021-09-05 08:06:50

使用轻易云集成平台高效处理畅捷通T+采购数据

2021-04-23 18:19:27

技术细节:调用聚水潭·奇门接口进行销售订单数据抓取和清洗

2021-02-23 03:25:16

实现聚水潭数据到畅捷通T+对接的高效方案

2021-05-29 22:58:40

利用轻易云平台实现金蝶数据与钉钉对接:详细步骤与技术细节

2021-04-07 10:30:06

利用轻易云平台高效整合聚水潭与金蝶云星辰V2数据

2021-05-07 14:22:25

利用轻易云平台实现管易云与金蝶云星辰的高效物料数据对接

2021-01-13 07:48:59

如何调用金蝶云星空接口进行高效数据处理?

2021-03-16 07:31:29

利用executeBillQuery接口高效获取金蝶供应商数据

2021-02-23 22:50:47

案例解析:如何实现旺店通数据与金蝶云星空的无缝对接

2021-02-14 20:50:51

吉客云·奇门API接口配置与调用详解

2021-04-12 11:41:52

如何调用聚水潭/open/shops/query接口进行数据处理

2021-06-09 02:12:14

利用轻易云实现MySQL商品分类数据的高效集成

2021-01-15 12:31:54

解决方案:高效集成旺店通与金蝶云星空的最佳实践

2021-06-12 18:17:54

调用吉客云API实现数据集成与清洗的技术实现

2021-02-12 07:36:20

接口调用与数据转换:旺店通采购入库单集成金蝶云星空实战

2021-07-05 19:27:56

接口配置打通轻易云集成平台和金蝶云星空数据对接

2023-01-26 10:12:17

吉客云接口与金蝶云星空接口实现互通

2023-01-26 10:12:16

钉钉与金蝶云星空对接集成获取通讯录打通员工新增

2023-01-26 10:12:15

每刻和金蝶云星空集成接口设计

2023-01-26 10:12:14

接口配置打通积加ERP和金蝶云星空数据对接

2023-01-26 10:12:13