openai-on-wechat logo

openai-on-wechat

Free

171

FreeFree tier
Inputs: textOutputs: text, image
Type
Open Source

About openai-on-wechat

OpenAI-on-WeChat is an open-source chatbot project implemented in Go that integrates OpenAI's API with the WeChat messaging platform. It allows users to deploy a personal WeChat bot capable of responding to text messages in private chats and group conversations using OpenAI's GPT-3.5-turbo model. The project emphasizes ease of deployment, distributing a single binary executable for Linux x86/64 systems, and leverages the desktop WeChat protocol (via openwechat) to bypass typical login restrictions. Beyond text dialogue, the bot supports image generation based on textual descriptions and can maintain context for continuous conversations over a configurable time window. Users can set trigger keywords to activate the bot, and it can also respond to messages sent by the account owner. The project is hosted on GitHub and provides configuration files for API keys, trigger words, and memory duration.

Key Features

Text dialogue using OpenAI's GPT-3.5-turbo model
Image generation from text descriptions
Support for private and group chat messages
Configurable trigger keywords to activate bot responses
Continuous conversation with configurable memory duration
Single binary executable deployment (Linux x86/64)
Uses desktop WeChat protocol to avoid login restrictions

Pros & Cons

Pros
  • Open-source and free to use
  • Simple deployment with a single binary executable
  • Supports both private and group chat interactions
  • Configurable trigger words and conversation memory
  • Image generation capability adds versatility
Cons
  • Requires a Linux server for deployment
  • Dependence on OpenAI API, which may have usage costs and access restrictions in some regions
  • WeChat account may be subject to platform policies regarding automated bots
  • Limited to GPT-3.5-turbo; newer models may require code updates
  • Documentation and community support primarily in Chinese

Best For

Automated customer support via WeChatPersonal AI assistant integrated into WeChatGroup chat moderation and information provisionCreative image generation from text promptsEducational tool for interactive Q&A within WeChat

FAQ

Do I need an OpenAI API key to use this bot?
Yes, the bot requires an OpenAI API key to function. You will need to obtain one from OpenAI and configure it in the config.json file.
Can I run this bot on Windows or macOS?
The precompiled binary is provided for Linux x86/64. For other operating systems, you would need to compile the source code yourself.
Does the bot support continuous conversation?
Yes, the bot can maintain context for continuous conversations in both private and group chats. The memory duration is configurable in the settings.
Is it possible to use a proxy for the OpenAI API?
The project documentation mentions that users may need to solve API access issues in certain regions and provides suggestions for setting up a proxy.
Can I customize the trigger keyword for the bot?
Yes, you can set a custom trigger prefix in the configuration file. Messages must start with this prefix to activate the bot.