Pancakes-Labs/astrbot_plugin_proactive_chat

一个能让 Bot 在私聊和群聊中发起主动消息的插件,拥有上下文感知、持久化数据、动态情绪、免打扰时段和 TTS 集成。还有独立 WebUI,可进行个性化配置。 An AstrBot plugin that enables Bot to send proactive messages in private and group chats, featuring context awareness, persistent data, dynamic emotions, do-not-disturb periods, and TTS integration. It also boasts an independent WebUI for personalized.

What it solves

This plugin for AstrBot enables AI bots to initiate conversations proactively rather than just responding to user messages. It solves the problem of "silent" bots that only react, making them feel more human-like and providing emotional companionship by breaking silence in private and group chats after a period of inactivity.

How it works

The plugin monitors user silence based on a configurable time range. When a session remains inactive for a set duration, the plugin triggers a proactive message. It uses a combination of custom prompts, session-specific personas, and context awareness (referencing either LLM conversation history or real-time platform message logs) to generate a natural, persona-consistent response. To avoid being intrusive, it includes features like "quiet hours" and a maximum limit on unanswered messages before the bot stops bothering the user.

Who it’s for

Users of the AstrBot framework who want to create more immersive, human-like AI companions or active community managers for their chat platforms (supporting various platforms like QQ, Telegram, Feishu, etc.).

Highlights

  • Context-Aware Proactivity: Can reference previous chat history or real-time platform logs to continue old topics or start new ones naturally.
  • - Dynamic Emotions: Uses an "unanswered counter" that can be integrated into prompts to let the bot express feelings like longing or slight disappointment if ignored.
  • Multi-Session Isolation: Supports independent configurations, personas, and timers for multiple private and group chats simultaneously.
  • Natural Delivery: Includes a segmented reply system that splits long texts into multiple short messages with simulated typing intervals.
  • Comprehensive Management: Features a dedicated WebUI console for monitoring task countdowns, managing sessions, and adjusting configurations in real-time.
  • TTS Integration: Supports generating voice messages for proactive interactions via configured TTS services.

Related

  • Project
  • Project
  • Project
  • Project
  • Project