Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

有没有什么插件可以让机器人主动找你聊天呀???萌新发问!!!

You must be logged in to vote

Replies: 12 comments

Comment options

AstrBot 内置了主动代理(Proactive Agent)系统,不需要额外插件就可以让机器人主动找你聊天。主要有两种方式:

  1. 定时任务(FutureTask/Cron Job):你可以直接在对话中告诉机器人,比如"每天早上8点跟我聊聊今天的安排",机器人会注册一个定时任务,到时间后自动通过 send_message_to_user 工具主动给你发消息 [1]

  2. send_message_to_user 工具:这是机器人主动推送消息的核心工具,支持文本、图片、语音、视频等多种消息类型,适用于 Telegram、QQ、微信等多平台 [2]

使用方法:确保你开启了 Agent 智能体模式(需要配置 LLM),然后直接对机器人说类似"每天下午6点主动找我聊天"这样的指令,它就会自动创建定时任务并按时主动联系你。你也可以在 Web 管理面板的 Cron Job 页面手动管理这些定时任务 [3]

To reply, just mention @dosu.


Share context across your team and agents. Try Dosu.

Leave Feedback Learn about AstrBot with Dosu Add Dosu to your team

You must be logged in to vote
0 replies
Comment options

补充一下,和楼上 dosubot 说的定时任务不太一样。另外还有一个更简单的办法:

WebUI → 配置文件 → 普通配置 → 扩展功能 → 群聊上下文感知(原聊天记忆增强)

开启以下两项即可:

  1. 启用群聊上下文感知 → 打开
  2. 主动回复 → 打开

这个不需要自己设定时任务,打开后 LLM 会自动感知群里的聊天氛围,在合适的时候主动插话聊天。还可以调回复概率和设置白名单(用 /sid 获取群 ID)。

You must be logged in to vote
0 replies
Comment options

怎么配置LLM呀?有点没搞懂

You must be logged in to vote
0 replies
Comment options

我把上下文感知和主动回复都开启了,还是没有主动找我诶。。。

You must be logged in to vote
0 replies
Comment options

LLM 提供商配置在 WebUI → 配置文件 → 普通配置 → LLM 提供商,添加一个可用的模型(比如 OpenAI、MiniMax 等)并确保状态正常。然后在「助手设置」里把模式切换为 Agent 智能体模式

如果开了上下文感知和主动回复还是没反应,可以试试楼上 DosuBot 说的定时任务方案,直接对机器人说类似"每天早上8点找我聊天"这种话,它会自动帮你注册一个 cron 定时任务,到点主动发消息,这个方式是立即可见的,适合先确认整个链路通不通。

You must be logged in to vote
0 replies
Comment options

有一个叫做主动回复的插件astrbot_plugin_InitiativeDialogue,如果长时间没有跟机器人对话,就会自己找你

You must be logged in to vote
0 replies
Comment options

大佬你好,这个插件我下载了,也加入机器人的QQ号了,可是我的机器人还是不会来找我?这是为什么呀?我插件也打开了呀

You must be logged in to vote
0 replies
Comment options

之前有了解过llm吗

You must be logged in to vote
0 replies
Comment options

抱歉啊。。。没有欸

You must be logged in to vote
0 replies
Comment options

你可以进社区群,了解一下如何使用ai,就是类似deepseek,gpt,gemini,豆包这种ai,我们是把他们接入到了qq这种平台。并不是说你把astrbot跟qq配置好了之后就可以直接使用的,我们只是一个桥接器,把qq跟ai连接起来。
首先,学习一下ai对话的知识,先使用手机上或者网页上的deepseek,豆包这种网页ai。
然后查看官方文档中接入ai的部分
不知道的事情在群里问

You must be logged in to vote
0 replies
Comment options

好的,我试试,谢谢大佬

You must be logged in to vote
0 replies
Comment options

@Soulter close issue

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:plugin The bug / feature is about AstrBot plugin system. plugin-cate:automation Scheduled reminders, notifications, subscriptions, and proactive messages.(only startswith [Plugin])
3 participants
Converted from issue

This discussion was converted from issue #8550 on June 05, 2026 16:04.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.