ChatGPT-Feishu  by bestony

Feishu bot for interacting with ChatGPT

created 2 years ago
1,149 stars

Top 34.3% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a ChatGPT bot for Feishu (Lark), enabling users to interact with ChatGPT directly within their Feishu workspace. It targets Feishu users who want to leverage AI capabilities for communication and productivity.

How It Works

The bot utilizes Feishu's Open Platform APIs to receive messages and OpenAI's API to process them with ChatGPT. It's designed to be deployed on AirCode, a serverless platform, simplifying backend management. The core logic involves receiving events from Feishu, forwarding the user's query to OpenAI, and then sending the ChatGPT response back to Feishu.

Quick Start & Requirements

  • Install/Run: Deploy event.js to AirCode (Node.js v16).
  • Prerequisites:
    • Feishu Open Platform App (APPID, Secret)
    • OpenAI API Key
    • AirCode account
  • Dependencies: @larksuiteoapi/node-sdk, axios
  • Setup: Requires configuring Feishu app permissions, AirCode environment variables (APPID, SECRET, BOTNAME, KEY), and deploying the code.
  • Docs: Video Tutorial, Bilibili Tutorial

Highlighted Details

  • Seamless integration with Feishu for AI-powered conversations.
  • Serverless deployment via AirCode for ease of use.
  • Supports both private chats and group mentions.

Maintenance & Community

  • Open to contributions via issues and pull requests.
  • Community communication channel mentioned (group chat).

Licensing & Compatibility

  • License: GPL-3.0
  • Compatibility: GPL-3.0 is a strong copyleft license. Commercial use or linking with closed-source applications may require careful consideration of license obligations.

Limitations & Caveats

The project notes that AirCode environment variables do not support Chinese characters, which can cause deployment failures if the Feishu bot name is in Chinese. It also mentions that encrypting data is not currently supported for event subscriptions.

Health Check
Last commit

6 months ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.