Skip to content

机器人回复!人性化!! #8611

Closed

Description

@darkness-UI

怎么能让机器人回复不要一大段一大段的,像人一样一小句一小句的回复

Activity

  1. added
    feature:personaThe bug / feature is about astrbot AI persona system (system prompt)
    plugin-cate:dialogueEnhance chat conversation with memory, context, persona, emotional feats.(only startswith [Plugin])
    on Jun 6, 2026
  2. dosubot commented on Jun 6, 2026

    @dosubot

    可以通过两种方式实现:

    1. 修改人格系统提示词(控制回复内容风格)

    在 WebUI 的「人格管理」中,编辑系统提示词(system_prompt),加入类似这样的指令:

    你是一个普通人,回复要简短自然,像聊天一样一句一句说,不要写长段落,每次回复不超过两三句话。

    这是最直接有效的方法 [1]。社区共识是好的提示词比插件更能提升自然度 [2]。

    2. 开启分段回复(自动拆分成多条消息)

    AstrBot 内置了「分段回复」功能,可以把长回复按标点拆成多条短消息,并加上自然延迟 [3]。在配置中启用:

    "segmented_reply": {
        "enable": true,
        "only_llm_result": true,
        "interval_method": "log",
        "log_base": 2.6,
        "words_count_threshold": 150,
        "split_mode": "regex",
        "regex": ".*?[。?!~…]+|.+$"
    }

    [4]

    这样机器人会按句号、问号等标点自动分段发送,并且用对数延迟模拟打字时间。

    建议组合使用:先通过提示词让 LLM 本身回复简短,再开启分段回复让消息一条条发出来,效果最接近真人聊天。修改后可以用 /reset 清除历史上下文使其立即生效。

    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

  3. NayukiChiba commented on Jun 6, 2026

    @NayukiChiba
    Contributor

    请使用discussion讨论这个话题

  4. locked and limited conversation to collaborators on Jun 6, 2026
  5. converted this issue into a discussion #8614 on Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:personaThe bug / feature is about astrbot AI persona system (system prompt)plugin-cate:dialogueEnhance chat conversation with memory, context, persona, emotional feats.(only startswith [Plugin])

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions