{"id":26483862,"url":"https://github.com/chatopera/chatopera-gzh-sample","last_synced_at":"2026-03-16T08:03:17.036Z","repository":{"id":72218106,"uuid":"196909045","full_name":"chatopera/chatopera-gzh-sample","owner":"chatopera","description":"在微信公众号中使用 Chatopera 聊天机器人","archived":false,"fork":false,"pushed_at":"2019-07-15T03:16:26.000Z","size":5,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T20:20:43.182Z","etag":null,"topics":["chatbot","wechat","wechat-bot"],"latest_commit_sha":null,"homepage":"https://bot.chatopera.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chatopera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-15T02:23:42.000Z","updated_at":"2023-09-01T08:41:00.000Z","dependencies_parsed_at":"2023-04-26T19:17:53.565Z","dependency_job_id":null,"html_url":"https://github.com/chatopera/chatopera-gzh-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fchatopera-gzh-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fchatopera-gzh-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fchatopera-gzh-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fchatopera-gzh-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chatopera","download_url":"https://codeload.github.com/chatopera/chatopera-gzh-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554068,"owners_count":20471173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","wechat","wechat-bot"],"created_at":"2025-03-20T04:58:27.481Z","updated_at":"2026-03-16T08:03:16.986Z","avatar_url":"https://github.com/chatopera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chatopera-gzh-sample\n\n在微信公众号中使用 Chatopera 聊天机器人。\n\nConnect Chatopera Bot to Wechat Public Accout\n\n## Requirements\n\n- Node.js 8+\n\n## Settings\n\n### Wechat Account\n\nOpen [Wechat Public Account Platform](https://mp.weixin.qq.com/) from browser and login, enable developer mode, get `appId`, `token` and `key`.\n\n![image](https://user-images.githubusercontent.com/3538629/61193568-c049cc80-a6ee-11e9-992c-cec62fc296f2.png)\n\nFill in the Service Url with your application's URL, such as `https://wgh.xxx.com/wechat`.\n\n### Create Bot\n\nCreat a bot in [Chatopera Bot Service](https://bot.chatopera.com/), get `clientId` and `secret` in [details](https://github.com/chatopera/chatopera-sample-node#%E8%8E%B7%E5%8F%96clientid%E5%92%8Csecret).\n\n### Configure\n\nGet this demo application source code with git.\n\n```\n\ngit clone https://github.com/chatopera/chatopera-gzh-sample.git\n\n```\n\nModify environment variables in `admin/start.sh`.\n\n| KEY                 | VALUE                          |\n| ------------------- | ------------------------------ |\n| SUPERBRAIN_CLIENTID | clientId of Chatopera Bot      |\n| SUPERBRAIN_SECRET   | secret of Chatopera Bot        |\n| WECHAT_GZH_APPID    | 微信公众号开发者 ID            |\n| WECHAT_GZH_TOKEN    | 微信公众号令牌                 |\n| WECHAT_GZH_KEY      | 消息加解密密钥(EncodingAESKey) |\n\nStart your application with `admin/start.sh`.\n\n### Enable ASR in Wechat\n\n[微信公众平台怎样开启接收语音识别结果](https://jingyan.baidu.com/article/b7001fe1adc5dc0e7382dd6f.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fchatopera-gzh-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatopera%2Fchatopera-gzh-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fchatopera-gzh-sample/lists"}