chatgpt-wework-robot  by sytpb

WeChat bot for ChatGPT, deployed with zero code

created 2 years ago
383 stars

Top 75.7% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a zero-code, one-click deployment solution to integrate ChatGPT into WeChat Work applications, enabling AI-powered customer service and Q&A without requiring a VPN. It targets businesses looking to leverage large language models for enhanced customer support and internal communication, offering 24/7 service capabilities to reduce costs and improve efficiency.

How It Works

The solution acts as a bridge between the ChatGPT API and WeChat Work's messaging platform. It utilizes a backend service that receives messages from WeChat Work, forwards them to the OpenAI API for processing, and then sends the ChatGPT response back to the WeChat Work application. The project offers two deployment methods: Render for quick testing and server-based (Docker or Node.js) for long-term use, emphasizing ease of integration with WeChat Work's API for message handling and user management.

Quick Start & Requirements

  • Render Deployment: Follow the detailed steps in the README to create a WeChat Work application, obtain necessary API keys (corpid, agentid, secret, token, aeskey, open-api-key), and configure the Render service. The service URL needs to be appended with /message and added to WeChat Work's trusted IPs.
  • Server/Docker Deployment: Requires a server, a domain, Node.js, and Docker. Clone the repository, install dependencies, configure environment variables (including optional OPENAI_PROXY_URL), run the service via Docker or Node.js, and set up a reverse proxy (e.g., Caddy, Nginx) with the domain.
  • Prerequisites: OpenAI API Key, WeChat Work administrator access, a registered WeChat Work application.
  • Resources: Render free tier may experience cold starts; paid upgrades or self-hosted servers are recommended for consistent performance.

Highlighted Details

  • Supports gpt-3.5-turbo and gpt-4 (though gpt-4 usage may be limited).
  • Offers xml or markdown message types for WeChat Work integration.
  • Provides guidance on domain verification and trusted IP configuration for WeChat Work compliance.
  • Includes troubleshooting steps for common deployment issues.

Maintenance & Community

The project is hosted on GitHub and appears to be actively maintained by the sytpb user. Community discussion and feature requests are encouraged via group chats, as indicated by the "新功能调查" section.

Licensing & Compatibility

The repository does not explicitly state a license in the README. Users should verify licensing terms before commercial use or integration into closed-source projects.

Limitations & Caveats

Render's free tier is subject to service suspension after periods of inactivity, requiring re-initialization. WeChat Work's security checks may necessitate a company-owned domain and server for full compliance, potentially blocking direct Render deployments or requiring specific configurations. Some users may encounter issues with trusted IP configurations if not using a self-owned server.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.