{"type":"doc","content":[{"type":"heading","attrs":{"id":"a5aa6023-a25b-41fc-9efe-67e5ac520806","textAlign":"inherit","indent":0,"level":1,"isHoverDragHandle":false},"content":[{"type":"text","text":"前提条件"}]},{"type":"paragraph","attrs":{"id":"677cf9cd-d3a2-481e-8793-c5c4c5e0928a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"1、已经完成腾讯会议和飞书单点登录对接,参考文档:《"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://doc.weixin.qq.com/doc/w3_AXYAyAYBABoCNaQRc5gy0S0qlfrce?scode=AJEAIQdfAAoI2Tin2fAXYAyAYBABo","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"腾讯会议OneID对接飞书"},{"type":"text","text":"》。"}]},{"type":"paragraph","attrs":{"id":"80571cf0-0ce9-4771-b4ce-79031266db46","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"2、已经完成OpenClaw部署,参考《"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/article/2624973","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"🔥🔥🔥玩转OpenClaw|云上OpenClaw最全教程合辑"},{"type":"text","text":"》或者其他OpenClaw部署教程。"}]},{"type":"paragraph","attrs":{"id":"f63c1b53-2356-4bc3-807d-5caca19a558d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"3、Web服务要部署的机器已安装 JDK 8 或更高版本。"}]},{"type":"paragraph","attrs":{"id":"889f7b01-c46d-432a-a8e3-ea68f975feb5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"4、(可选)如果希望有更好的会议体验,可以参考《"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/article/2638815","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"飞书 - 腾讯会议对接实践"},{"type":"text","text":"》,实现从飞书日程/工作台应用跳转腾讯会议客户端自动入会。"}]},{"type":"heading","attrs":{"id":"0d1f77e1-c722-403f-90c5-33c3f128e8ec","textAlign":"inherit","indent":0,"level":1,"isHoverDragHandle":false},"content":[{"type":"text","text":"业务流程介绍"}]},{"type":"paragraph","attrs":{"id":"464eabd4-daa0-48c8-8454-d9d9a2e5ba9a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"腾讯会议对接OpenClaw后业务流程如下图:"}]},{"type":"image","attrs":{"id":"26b64b02-15fa-491b-bd3f-5188f97af21d","src":"https://developer.qcloudimg.com/http-save/audit-1801755/fa607c049b440f85fb9e321d3982c310.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"2.056361","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"3e80706f-08e1-492e-8e32-764e882cc2e1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"建议Web服务和OpenClaw部署到不同的机器上,两个机器通过内网访问,防止OpenClaw拿到飞书和腾讯会议API对接的密钥等信息。"}]},{"type":"heading","attrs":{"id":"7dfecaa9-2159-4933-8cab-a5d6c1063cd5","textAlign":"inherit","indent":0,"level":1,"isHoverDragHandle":false},"content":[{"type":"text","text":"安装与部署"}]},{"type":"paragraph","attrs":{"id":"d59cb3dd-fd4d-4df3-97bc-ec4b40914709","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"前面已经完成OpenClaw的安装,接下来需要完成Web服务部署,然后让OpenClaw学会会议接口调用的skill,便可跑通整个流程。"}]},{"type":"heading","attrs":{"id":"5d11827f-dbec-49de-82ae-f10a71178504","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"Web服务部署"}]},{"type":"heading","attrs":{"id":"546c6641-5b62-4a21-a12b-b553d1d4173f","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"腾讯会议&飞书应用参数获取"}]},{"type":"paragraph","attrs":{"id":"27ebd59e-ad67-4135-9f68-d85bf83edb65","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"Web工程代码下载链接放在文章结尾,配置文件application.yml在工程的wemeet-openapi/src/main/resources路径下,需要配置腾讯会议和飞书的API对接参数,配置内容如下。"}]},{"type":"codeBlock","attrs":{"id":"c5ede3b2-af5e-45c4-9b42-db1998aa1d14","language":"yaml","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"54gf9","languageByAi":"yaml"},"content":[{"type":"text","text":"# Spring 应用配置\nspring:\n application:\n name: wemeet-openapi-service # 应用名称\n\n# 服务器配置\nserver:\n port: 8080 # 服务端口\n\n# 腾讯会议 SDK 配置\nwemeet:\n appId: \"\" # 企业 ID,可在腾讯会议官网的企业管理 > 高级 > REST API 中查看\n sdkId: \"\" # 应用 ID,可在腾讯会议官网的企业管理 > 高级 > REST API 中查看\n secretId: \"\" # Secret ID,用于 JWT 鉴权\n secretKey: \"\" # Secret Key,用于 JWT 鉴权\n\n# 飞书 API 配置\nfeishu:\n appId: \"\" # 飞书应用 ID,在飞书开发者平台创建应用后获取\n appSecret: \"\" # 飞书应用密钥,在飞书开发者平台创建应用后获取\n baseUrl: \"https://open.feishu.cn\" # 飞书 API 基础 URL"}]},{"type":"paragraph","attrs":{"id":"32a192df-1fc7-4cb1-982e-ffffb8635c45","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"创建腾讯会议自建应用参考《"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/document/product/1095/83662#4ace5245-ac42-4c68-88b6-e73decfd86c2","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"企业自建应用接入指引"},{"type":"text","text":"》,创建完成后在应用的"},{"type":"text","marks":[{"type":"bold"}],"text":"基础信息和凭证"},{"type":"text","text":"页面获取appId、sdkId、secretId和secretKey参数。"}]},{"type":"image","attrs":{"id":"562f0c44-1066-482b-b225-adf6593ce0cd","src":"https://developer.qcloudimg.com/http-save/audit-1801755/ba35ee331d7369dd58ff40eb188e4f88.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":912,"aspectRatio":"1.023569","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"paragraph","attrs":{"id":"813d690f-05b9-4d1e-abdc-8a7b13dcf1e3","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"飞书应用对接参数"},{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"在"},{"type":"text","marks":[{"type":"link","attrs":{"href":"https://cloud.tencent.com/developer/tools/blog-entry?target=https%3A%2F%2Fopen.feishu.cn%2Fapp&objectId=2638815&objectType=1&contentType=rich","target":"_blank","rel":"noopener noreferrer nofollow","class":""}}],"text":"飞书开发者后台"},{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"应用设置的"},{"type":"text","marks":[{"type":"bold"}],"text":"凭证与基础信息"},{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"页面获取,这里直接用之前部署OpenClaw创建的应用信息即可。"}]},{"type":"image","attrs":{"id":"a4b74013-5318-4437-ba6d-4b7286f61407","src":"https://developer.qcloudimg.com/http-save/audit-1801755/105247effcbd0496b471975de0a33eed.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"2.384370","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"d51dc6dc-de9b-488d-b120-b823177b8497","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"启动Web应用"}]},{"type":"paragraph","attrs":{"id":"d82e00e9-86da-4622-9a5e-ea77ed19a3c8","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"参考工程里面的README.md文件,启动Web应用。应用启动后,需要将Web应用的公网出口IP配置到腾会会议自建应用的IP白名单中,才能正常调用腾讯会议REST API接口。"}]},{"type":"image","attrs":{"id":"a75ad51b-7e35-46a9-b5c7-55a344301aca","src":"https://developer.qcloudimg.com/http-save/audit-1801755/2ad9168530fef617649d32bf4967deb9.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":979,"aspectRatio":"2.105376","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"850e1db2-9ddd-446d-9713-b2e2c769d394","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"网络安全策略配置"}]},{"type":"paragraph","attrs":{"id":"93eb98fc-07ce-4a11-b14f-d174c50b3aca","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"Web服务所在的机器需要配置安全策略,仅允许OpenClaw机器所在IP访问服务所在的端口。"}]},{"type":"image","attrs":{"id":"bdacfe70-3597-4c0b-bf5b-d24ca005e4b3","src":"https://developer.qcloudimg.com/http-save/audit-1801755/f343ef8baea67a88418f8af2620c46ae.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":1100,"aspectRatio":"4.030534","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"ba1aa259-6f99-4ad0-aeee-8e6d7fe000ae","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"OpenClaw skill学习"}]},{"type":"paragraph","attrs":{"id":"2ce6cc74-c864-49b7-b03f-e9dadbac4a21","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"将工程/skill/tencent-meeting/SKILL.md文件中的"},{"type":"text","marks":[{"type":"bold"}],"text":"localhost"},{"type":"text","text":"全部替换成Web服务实际所在的IP或者URL。然后在飞书应用的OpenClaw机器人对话框中输入SKILL.md拷贝的所有文本内容,让OpenClaw完成skill学习。"}]},{"type":"image","attrs":{"id":"a85b3a57-9d9c-4943-825c-60f2287fe18c","src":"https://developer.qcloudimg.com/http-save/audit-1801755/d65b5885add5358220612b08c37a1fb7.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":795,"aspectRatio":"0.510270","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"268513f7-53de-421c-83e2-1fe52c4f39db","textAlign":"inherit","indent":0,"level":1,"isHoverDragHandle":false},"content":[{"type":"text","text":"结果验证"}]},{"type":"paragraph","attrs":{"id":"0e04023f-ed75-45bc-814c-a47e9da51a41","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"让OpenClaw机器人创建一个会议,返回以下信息。"}]},{"type":"image","attrs":{"id":"391af775-f396-44ae-808b-49e002bb5a13","src":"https://developer.qcloudimg.com/http-save/audit-1801755/0527580242f12cbf031d436ae49c2d4b.png","extension":"png","align":"left","alt":"","showAlt":false,"href":"","boxShadow":"","width":778,"aspectRatio":"0.876126","status":"success","showText":true,"isPercentage":false,"percentage":0,"isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"30b43140-2f41-42fc-93b9-16db96e64cbc","textAlign":"inherit","indent":0,"level":1,"isHoverDragHandle":false},"content":[{"type":"text","text":"工程代码下载"}]},{"type":"paragraph","attrs":{"id":"5e493bef-564f-482b-8043-8ce0811e72f6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"link","attrs":{"href":"https://github.com/carlliu67/wemeet-openapi-sdk-java","target":"_blank","rel":"noopener noreferrer nofollow","class":null}}],"text":"https://github.com/carlliu67/wemeet-openapi-sdk-java"}]}]}