[{"data":1,"prerenderedAt":224},["ShallowReactive",2],{"\u002F06_":3,"surround-\u002F06_":213},{"id":4,"title":5,"body":6,"categories":189,"date":191,"description":16,"draft":192,"extension":193,"image":194,"meta":195,"navigation":198,"path":199,"permalink":194,"published":194,"readingTime":200,"recommend":194,"references":194,"seo":205,"sitemap":206,"stem":207,"tags":208,"type":211,"updated":194,"__hash__":212},"content\u002Fposts\u002F06_将讯飞星火大模型接入企业微信.md","将讯飞星火大模型接入企业微信",{"type":7,"value":8,"toc":175},"minimark",[9,13,17,20,25,41,44,52,55,59,62,74,78,89,93,96,104,108,116,120,126,129,132,135,138,141,144,152,155,169,172],[10,11,12],"h1",{"id":12},"前言",[14,15,16],"p",{},"企业微信是一款企业级的通讯和办公软件，功能强大且完全免费。讯飞星火是科大讯飞推出的AI大模型，拥有出色的中文理解和生成能力。本文介绍如何将讯飞星火大模型接入企业微信。",[10,18,19],{"id":19},"准备工作",[21,22,24],"h2",{"id":23},"讯飞星火api","讯飞星火API",[26,27,28,32,35,38],"ol",{},[29,30,31],"li",{},"访问讯飞开放平台",[29,33,34],{},"注册账号并登录",[29,36,37],{},"创建应用",[29,39,40],{},"获取 AppID、APIKey、APISecret",[21,42,43],{"id":43},"企业微信",[26,45,46,49],{},[29,47,48],{},"拥有企业微信管理员权限",[29,50,51],{},"创建一个自建应用",[10,53,54],{"id":54},"开始配置",[21,56,58],{"id":57},"_1-获取企业微信凭证","1. 获取企业微信凭证",[14,60,61],{},"登录企业微信管理后台，获取：",[63,64,65,68,71],"ul",{},[29,66,67],{},"corpId（企业ID）",[29,69,70],{},"agentId（应用AgentId）",[29,72,73],{},"secret（应用Secret）",[21,75,77],{"id":76},"_2-下载企业微信中间件","2. 下载企业微信中间件",[79,80,86],"pre",{"className":81,"code":83,"language":84,"meta":85},[82],"language-bash","git clone https:\u002F\u002Fgithub.com\u002FWangRongsheng\u002FWeChatBot.git\ncd WeChatBot\n","bash","",[87,88,83],"code",{"__ignoreMap":85},[21,90,92],{"id":91},"_3-配置讯飞星火","3. 配置讯飞星火",[14,94,95],{},"编辑.env文件：",[79,97,102],{"className":98,"code":100,"language":101,"meta":85},[99],"language-env","XFYUN_APP_ID=你的AppID\nXFYUN_API_KEY=你的APIKey\nXFYUN_API_SECRET=你的APISecret\nWX_CORP_ID=你的企业ID\nWX_AGENT_ID=应用AgentId\nWX_SECRET=应用Secret\n","env",[87,103,100],{"__ignoreMap":85},[21,105,107],{"id":106},"_4-配置nginx反向代理","4. 配置Nginx反向代理",[79,109,114],{"className":110,"code":112,"language":113,"meta":85},[111],"language-nginx","server {\n    listen 443 ssl;\n    server_name your-domain.com;\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:8080;\n    }\n}\n","nginx",[87,115,112],{"__ignoreMap":85},[21,117,119],{"id":118},"_5-启动服务","5. 启动服务",[79,121,124],{"className":122,"code":123,"language":84,"meta":85},[82],"pip install -r requirements.txt\npython main.py\n",[87,125,123],{"__ignoreMap":85},[10,127,128],{"id":128},"功能说明",[21,130,131],{"id":131},"私聊功能",[14,133,134],{},"用户可以添加企业微信机器人为好友，直接发送消息进行对话。",[21,136,137],{"id":137},"群聊功能",[14,139,140],{},"将机器人添加到群聊，@机器人并发送消息即可进行对话。",[21,142,143],{"id":143},"命令功能",[63,145,146,149],{},[29,147,148],{},"@机器人 帮助 - 获取帮助信息",[29,150,151],{},"@机器人 清除 - 清除对话上下文",[10,153,154],{"id":154},"安全建议",[26,156,157,160,163,166],{},[29,158,159],{},"保护API密钥，不要提交到代码仓库",[29,161,162],{},"限制调用频率",[29,164,165],{},"添加日志审计",[29,167,168],{},"定期更新密钥",[10,170,171],{"id":171},"总结",[14,173,174],{},"通过以上步骤，你已经成功将讯飞星火大模型接入了企业微信。可以用于智能客服、内部问答助手、办公自动化等场景。",{"title":85,"searchDepth":176,"depth":176,"links":177},4,[178,180,181,182,183,184,185,186,187,188],{"id":23,"depth":179,"text":24},2,{"id":43,"depth":179,"text":43},{"id":57,"depth":179,"text":58},{"id":76,"depth":179,"text":77},{"id":91,"depth":179,"text":92},{"id":106,"depth":179,"text":107},{"id":118,"depth":179,"text":119},{"id":131,"depth":179,"text":131},{"id":137,"depth":179,"text":137},{"id":143,"depth":179,"text":143},[190],"Study","2025-06-15 09:23:46",false,"md",null,{"slug":196,"slots":197},"b7e4d2",{},true,"\u002F06_",{"text":201,"minutes":202,"time":203,"words":204},"3 min read",2.12,127200,424,{"title":5,"description":16},{"loc":199},"posts\u002F06_将讯飞星火大模型接入企业微信",[43,209,210],"讯飞星火","AI","tech","tq15jgMdWKlUW22KYRr_x-zKTfZpTTQ2sO53RXHfbfQ",[214,219],{"title":215,"path":216,"stem":217,"date":218,"type":211,"children":-1},"Typora+lsky Pro 优雅的写博客以及图片自动上传","\u002F07_typora+lsky_pro_","posts\u002F07_Typora+lsky_Pro_优雅的写博客以及图片自动上传","2025-02-25 15:42:46",{"title":220,"path":221,"stem":222,"date":223,"type":211,"children":-1},"chatgpt_on_wechat项目插件推荐","\u002F08_chatgpt_on_wechat","posts\u002F08_chatgpt_on_wechat项目插件推荐","2025-07-20 14:15:46",1777890742276]