{"id":28445110,"url":"https://github.com/wechaty/ngnext-hackthon-2020-conversational-ai","last_synced_at":"2026-01-30T11:18:16.710Z","repository":{"id":75350740,"uuid":"295354585","full_name":"wechaty/ngNext-hackthon-2020-Conversational-AI","owner":"wechaty","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-03T08:31:46.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T10:11:37.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wechaty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-14T08:35:15.000Z","updated_at":"2020-11-18T07:12:48.000Z","dependencies_parsed_at":"2023-06-06T05:45:41.187Z","dependency_job_id":null,"html_url":"https://github.com/wechaty/ngNext-hackthon-2020-Conversational-AI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wechaty/ngNext-hackthon-2020-Conversational-AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2FngNext-hackthon-2020-Conversational-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2FngNext-hackthon-2020-Conversational-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2FngNext-hackthon-2020-Conversational-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2FngNext-hackthon-2020-Conversational-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wechaty","download_url":"https://codeload.github.com/wechaty/ngNext-hackthon-2020-Conversational-AI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2FngNext-hackthon-2020-Conversational-AI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262662923,"owners_count":23344959,"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":[],"created_at":"2025-06-06T10:11:21.141Z","updated_at":"2026-01-30T11:18:16.671Z","avatar_url":"https://github.com/wechaty.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngNext-hackthon-2020\n\n本项目是 [NG+ Next 2020新生代开发者大赛 -- NG+ Next Hackathon](http://ngplus.world/#hackathon) 中 Conversational AI 主题的学习资料。\n\n## 关于 NG+ Next Hackathon\n\n[NG+ Next 2020新生代开发者大赛 -- NG+ Next Hackathon](http://ngplus.world/#hackathon)在[NG+ 开发者大会 2020](http://ngplus.world/) 期间举办，意在为青年开发者提供展示自己的舞台。参与比赛即有机会! 在比赛中展示你的才华，发现编程的魅力，结交志同道合的伙伴!\n\n大赛通过 [HackHub 网站](https://event.hackhub.cn/event/ng2020) 进行报名，按赛事要求经过海选和专家评比，最终获胜者将得到在 NG+ 开发者大会 2020 上分享的机会，并赢得丰厚的奖励。[HackHub 网站](https://event.hackhub.cn/event/ng2020) 上有详细的大赛主题、参赛对象、大赛安排、评分标准、赛事奖励、活动组织单位的介绍，可点击链接查看详细内容。\n\n本届大赛包括4个主题：\n\n- Angular\n- TensorFlow.js\n- Conversational AI\n- XR\n\n## Conversational AI 学习资料\n\n- [Wechaty](#wechaty)\n- [Conversational AI](#conversational-ai)\n- [Wechaty + Conversational AI 实战](#wechaty--conversational-ai-实战)\n\n人工智能的发展带动了对话式交互领域研究的深入，Chatbot 的应用场景越来越丰富。本次大赛希望参赛队伍发挥想象力和创新精神，发掘出多样的 Chatbot 人工智能落地应用，参赛项目将由 [Wechaty](https://wechaty.js.org/) 提供社区支持，[句子互动](https://www.juzibot.com/) 提供云服务的支持。\n\n### Wechaty\n\n![wechaty-logo](https://camo.githubusercontent.com/d9a57af0493282f9599725857ae7bcd85297a43c/68747470733a2f2f776563686174792e6a732e6f72672f696d672f776563686174792d6c6f676f2e737667)\n\n[Wechaty](https://github.com/wechaty/wechaty) 是一个针对 Chatbot 开发者提供的 Conversational SDK, 开发者通过6行代码即可快速搭建一个聊天机器人，支持[微信个人号](https://github.com/wechaty/wechaty-puppet-padplus)、[微信公众号](https://github.com/wechaty/wechaty-puppet-official-account)、钉钉、抖音、[WhatsApp](https://github.com/wechaty/wechaty-puppet-whatsapp)、[Gitter](https://github.com/wechaty/wechaty-puppet-gitter) 等各大主流IM平台。项目支持 [JavaScript](https://github.com/Wechaty/wechaty), [Python](https://github.com/Wechaty/python-wechaty/), [Go](https://github.com/Wechaty/go-wechaty/), [Java](https://github.com/Wechaty/java-wechaty/) 等10种语言，同时可跨平台支持[Linux, Windows, MacOS](https://github.com/wechaty/wechaty/actions?query=workflow%3ANPM) 和 [Docker](https://github.com/wechaty/wechaty/actions?query=workflow%3ADocker).\n\n#### 相关介绍\n\n:octocat: \u003chttps://github.com/Wechaty/wechaty\u003e  \n:beetle: \u003chttps://github.com/Wechaty/wechaty/issues\u003e  \n:book: \u003chttps://github.com/Wechaty/wechaty/wiki\u003e  \n:whale: \u003chttps://hub.docker.com/r/wechaty/wechaty\u003e  \n\n值得注意的是，微信个人号功能非常强大和灵活，是一个非常适合用来做ChatBot的载体。它可以灵活不受限制的发送语音短信、视频、图片和文字，支持多人群聊。但是使用微信个人微信号作为ChatBot，需要通过非官方的第三方库接入微信。因为截至2018年底，微信尚无任何官方的ChatBot API发布。  \n\n在GitHub上可以找到很多支持微信个人号接入的第三方类库，其中大多都是基于Web Wechat的API来实现的，如基于Python的WeixinBot，基于Node.js的Wechaty等。少数支持非Web协议的库，大多是商业私有闭源的，Wechaty是少有的开源项目支持非Web协议的类库。\n\n只需要6行代码，你就可以 通过个人号 搭建一个 微信机器人功能 ，用来自动管理微信消息。\n\n```ts\nimport { Wechaty } from 'wechaty'\n\nWechaty.instance()\n.on('scan',        qrcode  =\u003e console.log('扫码登录：' + qrcode))\n.on('login',       user    =\u003e console.log('登录成功：' + user))\n.on('message',     message =\u003e console.log('收到消息：' + message))\n.on('friendship',  friendship =\u003e console.log('收到好友请求：' + friendship))\n.on('room-invite', invitation =\u003e console.log('收到入群邀请：' + invitation))\n.start()\n```\n\n更多功能包括：\n\n- 消息处理：关键词回复\n- 群管理：自动入群，拉人，踢人\n- 自动处理好友请求\n- 智能对话：通过简单配置，即可加入智能对话系统，完成指定任务\n- ... 请自行开脑洞\n\n#### 更多资料\n\n- 英文文档(英文文档比中文文档更全): \u003chttps://wechaty.js.org/docs/introduction/README\u003e\n- 中文文档：\u003chttps://wechaty.js.org/v/zh/\u003e\n- 主项目地址：\u003chttps://github.com/wechaty/wechaty\u003e\n- 快速开始：\u003chttps://github.com/wechaty/wechaty-getting-started\u003e\n- 多语言版本（NodeJs 为主要维护语言，NodeJs 版本相对其他语言更强大）：\n  - Java地址（社区维护）：\u003chttps://github.com/wechaty/java-wechaty\u003e\n  - Python地址（社区维护）：\u003chttps://github.com/wechaty/python-wechaty\u003e\n  - Go地址（社区维护）：\u003chttps://github.com/wechaty/go-wechaty\u003e\n  - Scala地址（社区维护）：\u003chttps://github.com/wechaty/scala-wechaty\u003e\n  - donet地址（社区维护）：\u003chttps://github.com/wechaty/dotnet-wechaty\u003e\n  - php地址（社区维护）：\u003chttps://github.com/wechaty/php-wechaty\u003e\n- 官方主页：\u003chttps://wechaty.js.org/\u003e\n- 新闻：\u003chttps://wechaty.js.org/news/\u003e\n- 博客：\u003chttps://wechaty.js.org/blog/\u003e\n- 获取Token 方式--句子互动的云服务支持：\u003chttps://github.com/juzibot/Welcome/wiki/Everything-about-Wechaty\u003e\n- 个人微信接入：\u003chttps://github.com/juzibot/donut-tester\u003e\n- 企业微信接入：\u003chttps://github.com/juzibot/wxwork-tester\u003e\n- 视频\n  - [Wechaty 開源故事 (Azure Show 第一期), @huan, May 19, 2020](https://www.youtube.com/watch?v=YZ130iwcNSE\u0026list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh\u0026index=13)\n  - [Wechaty项目和社区生态介绍, @huan, May 30, 2020](https://www.youtube.com/watch?v=tfGZXoe_aA4\u0026feature=youtu.be\u0026list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh\u0026t=385)\n  - [How to getting started with Multi-language Wechaty, @huan, Jun 19, 2020](https://www.youtube.com/watch?v=fluenDIHZec\u0026list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh\u0026index=17\u0026t=6170)\n  - [Wechaty 快速开始 (Live Coding), @lijiarui, Jul 18, 2018](https://www.youtube.com/watch?v=KO23WAlnPHg\u0026list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh\u0026index=2)\n\n### Conversational AI\n\n人工智能对话作为未来人机交互的入口，必然会成为未来一个非常大的热点，也会成为AI中发展的一个基础设置，通知能够为企业与其客户之间的自动对话提供动力。这些对话可以是基于文本或基于音频的，可以在任何消息传递或基于语音的通信平台上进行。\n\n人工智能技术已经发展到可以非常准确地模仿人类对话的水平。它们使用自然语言处理(NLP)来为这些类似人类的对话加油。它帮助它们理解语音、文本和意图，破译不同的语言，并像人类一样做出反应。比如当它遇到订阅酒店的询问时，它会问：“请问酒店的地点在哪里？”，“请问您准备什么时候入住？”等问题。此外一些对话AI技术非常先进，甚至可以理解上下文并给出个性化对话。\n\n但是，对话式人工智能的目的是什么?\n\n对话型人工智能的主要目的是自动化对话和客户互动，以提供准确的、24小时的支持，比如企业可以将这项技术用于内部各种自动化的流程中，能够减少人工成本，办事效率等。然而，这并不是对话式人工智能技术的唯一用途，还有更多的应用等着在未来得到验证。\n\n#### 相关资料\n\n- [如何编写聊天机器人，Jul 13, 2017](https://wechaty.js.org/2017/07/13/how-to-build-a-chatbot/)\n- [陆奇：Chatbot将成为未来的基础设施和重要的人机交互窗口](https://pre-angel.com/juzibot-chatbot-0-1/)\n- [AI与人，“替代”还是 “共生”](https://pre-angel.com/lijiarui-chatbot-0-1/)\n- [《Chatbot从0到1：对话式交互设计实践指南》](https://item.jd.com/12630213.html)\n\n### Wechaty + Conversational AI 实战\n\nWechaty如何与人工智能对话结合起来呢？其实非常简单。同样只需要简单的几行代码就可以完成一个智能对话机器人。\n\n在此次案例当中，我们使用的是微软QnaMaker服务，快速搭建一个QA对话机器人。示例代码如下，详细内容请看[wechaty-qnamaker](https://github.com/wechaty/wechaty-qnamaker)：\n\n```typescript\nimport { WechatyQnAMaker } from 'wechaty-qnamaker'\n\nconst config = {\n  mention: true, // default true: require mention the bot in room.\n  room: true,\n  contact: true, // enable direct message.\n\n  /**\n   * Language of Questions \u0026 Score of Answers\n   */\n  language: 'english',\n  scoreThreshold: 50,   // minimum score for the answer\n\n  /**\n   * QnAMaker Service API\n   */\n  endpointKey: '705a3468-12bb-4e10-a314-7daa947f18d6',\n  knowledgeBaseId: '254e33ad-ca6d-405d-980d-dbd3615e2605',\n  resourceName: 'wechaty',\n}\n\nconst QnAMakerPlugin = WechatyQnAMaker(config)\n\nconst wechaty = new Wechaty()\nwechaty.use(QnAMakerPlugin)\n```\n\n上述代码中，使用的是wechaty社区中的一个插件，外加简单的配置即可完成与微软QnaMaker服务的连接。关于如何使用QnaMaker服务，可在[官网](https://www.qnamaker.ai/)查看详细使用文档。\n\n由此，一个简单的Wechaty + Covnersation AI 实践案例即可完成，是不是非常简单呢 ？ 感兴趣的同学和朋友们可去[wechaty](https://wechaty.js.org/)和[AnaMaker.ai](https://www.qnamaker.ai/)官网查看详细使用文档。\n\n#### 资料\n\n- wechaty-qnamaker plugin： \u003chttps://github.com/wechaty/wechaty-qnamaker\u003e\n- wechaty qnamaker 实践项目： \u003chttps://github.com/juzibot/rui-bot\u003e\n- 视频资料\n  - [Global AI Bootcamp 2019 - Beijing - 如何从0到1搭建 Chatbot, @lijiarui, Dec 22, 2019](https://www.youtube.com/watch?v=bdq8VNuHvVo\u0026list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh\u0026index=2)\n  - [Wechaty 從零開始 Live Coding with QnAMaker.ai (Azure Show第一期), @lijiarui, May 19, 2020](https://www.youtube.com/watch?v=ZYjYAT2g-1Q\u0026list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh\u0026index=14)\n- 文章资料\n  - [如何用 QnAMaker.ai 构建一个投融资聊天机器人 - Azure Show](https://wechaty.js.org/2020/05/19/qnamaker-juzi-bot-for-investors-rui/)\n  - [MicroSoft Tech Summit-快速搭建一个聊天机器人 Luis.AI 和 Wechaty 实战](https://wechaty.js.org/2018/10/21/microsoft-hol/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechaty%2Fngnext-hackthon-2020-conversational-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwechaty%2Fngnext-hackthon-2020-conversational-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechaty%2Fngnext-hackthon-2020-conversational-ai/lists"}