A user-friendly tool to collect, analyze, and send messages on WeChat using Wechaty and GPT.
中文版见此处
- Host a WeChat bot that can save all your text messages into a CSV file.
- Summarize group chat's history using GPT.
- Install Docker (https://docs.docker.com/engine/install/) and Wechaty (https://github.com/wechaty/python-wechaty).
- Generate a UUID (https://www.uuid.online/) and request a token from http://pad-local.com/#/tokens.
- Modify the related values in
start.sh
andbot.py
with the obtained token.
- Start the Wechaty service:
If you are using Linux/MacOS,
sh start.sh
If you are using Windows, check https://wechaty.js.org/2021/05/18/win10-use-docker-build-web-protocol-server-develop-bot/.
- Launch the bot after changing the line including:
if to_contact.payload.name != "please change to your own wechat alias":
python bot.py
- After collecting the messages, use
summary.py
to generate a merged version of a group chat history and summarize it. Make sure to set the file you want to process.
python summary.py
Enjoy using WeChatHelper to manage and analyze your WeChat messages!