{"id":21259611,"url":"https://github.com/howl-anderson/weatherbot","last_synced_at":"2026-02-28T17:03:44.335Z","repository":{"id":52754135,"uuid":"138579249","full_name":"howl-anderson/WeatherBot","owner":"howl-anderson","description":"一个基于 Rasa 的中文天气情况问询机器人(chatbot), 带 Web UI 界面","archived":false,"fork":false,"pushed_at":"2019-02-27T11:22:50.000Z","size":102311,"stargazers_count":237,"open_issues_count":5,"forks_count":68,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T06:42:46.452Z","etag":null,"topics":["chatbot","chatbot-application","chinese-chatbot","chinese-nlp","task-oriented-dialogue","weather-bot"],"latest_commit_sha":null,"homepage":"http://weather_bot.xiaoquankong.ai/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/howl-anderson.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}},"created_at":"2018-06-25T10:24:18.000Z","updated_at":"2025-02-05T01:19:37.000Z","dependencies_parsed_at":"2022-08-13T02:10:11.751Z","dependency_job_id":null,"html_url":"https://github.com/howl-anderson/WeatherBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/howl-anderson/WeatherBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2FWeatherBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2FWeatherBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2FWeatherBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2FWeatherBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/howl-anderson","download_url":"https://codeload.github.com/howl-anderson/WeatherBot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2FWeatherBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275358655,"owners_count":25450442,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","chatbot-application","chinese-chatbot","chinese-nlp","task-oriented-dialogue","weather-bot"],"created_at":"2024-11-21T04:14:39.120Z","updated_at":"2025-09-16T03:45:22.673Z","avatar_url":"https://github.com/howl-anderson.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherBot\n一个使用 Rasa 技术栈 （Rasa NLU, Rasa Core, Rasa Core SDK）构建的简单的中文天气情况问询机器人(chatbot), 附带有基于 Web 的用户界面（UI）\n\n## 功能\n这个机器人可以根据你提供的城市（北京、上海等）和日期（明天、后天等），查询出相应的天气预报。\n\n## 功能截图\n\u003cimg src=\"images/weather_bot_query_interface.png\" width=\"50%\"\u003e\n\n## 特性\n使用 Frame-based 对话管理方案，如果上述两个 Slot (既城市和天气)，有任意一个用户未提供，对话管理系统会负责让你澄清相关 Slot 的值。\n\n## 能力范围\n* 受限于天气数据提供方的能力，这个机器人只能查询 **中国大陆地区市级城市** 三天以内 **（今天，明天，后天）** 的气象数据，**不能查询过去**（昨天，前天）等历史数据。\n* 受限于开发时间，这个机器人 **不提供** 诸如 **这个星期五、下个星期一** 这种需要计算才能得到日期给定方式。也 **不能提供** 诸如 **绝对日期：三月一号、六一儿童节日** 这种日期的查询能力。\n* 因为使用的是免费的天气查询接口，所以 **会有配额限制**，可能会因为 **超出调用次数** ，而在一个小时内不能用。同时网络查询接口可能存在不稳定因素，导致 **没有结果返回或者出现异常**，**尝试多次重新发送请求可解决问题**。\n\n## 动画演示\n\u003cimg src=\"images/WeatherBot_demo.webp\" width=\"50%\"\u003e\n\n## 在线演示\n[Demo for 天气预报查询机器人](http://weather_bot.xiaoquankong.ai/)\n\n## 文档说明\n本项目采用了组件相互隔离(类似于微服务的思想)来构建整个系统。\n\u003cimg src=\"images/architecture.png\" width=\"80%\"\u003e\n\n整个系统分成 4 个 APP:\n\n\n| 组件 | 仓库地址 | 说明 |\n| --- | --- | --- |\n| `User Interface` | [WeatherBot_UI](https://github.com/howl-anderson/WeatherBot_UI) | 负责提供用户 UI ，方便用户使用，Rasa Core 支持和多种即时通讯软件（IM）的整合，Rasa Core 提供了一种称之为 Channel 的特性来方便接入 API。 |\n| `Diaglog Manager` | [WeatherBot_Core](https://github.com/howl-anderson/WeatherBot_Core) | 负责管理整个对话的流程，它会主动调用 `NLU` 来解析用户的意图和提取相关的实体，在需要执行业务动作的时候会调用 `Action Server` 执行具体的业务动作。 |\n| `NLU` | [WeatherBot_NLU](https://github.com/howl-anderson/WeatherBot_NLU) | 负责理解用户的意图和提取相关的实体。 |\n| `Action Server` | [WeatherBot_Action](https://github.com/howl-anderson/WeatherBot_Action) | 负责执行自定义 Action (通常都是具体的业务动作，在本项目中是请求远程服务器以查询天气情况) |\n\n**NOTE** 4 个 APP 不在本仓库中，它们分别有独立的仓库，具体仓库地址见上面的列表。\n\n## FAQ\n* 如果在使用机器人中遇到解析失败或者 SSL 错误或者超时错误，请重试几次，数据提供商 `心知天气` 的 API 很不稳定，后续考虑替换成其他供应商\n\n## TODO\n* 使用更加 Robust 的对话管理方案,目前的方案无法处理意图切换等复杂场景.\n* 使用 [duckling](https://github.com/facebook/duckling) 做时间和日期的识别,效果将更加 Robust 和准确\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowl-anderson%2Fweatherbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhowl-anderson%2Fweatherbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowl-anderson%2Fweatherbot/lists"}