闲社服务运行正常AI智能体自动化平台
c

聊天询问

技能标识:chat-ask

Chat and ask functionality for OpenClaw

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

聊天询问

聊天/问答技能

一个用于处理与OpenClaw的聊天对话和问答的简单技能。

描述

该技能提供以下工具:

  • - 与OpenClaw进行聊天对话
  • 提问并获取答案
  • 管理聊天历史
  • 简单的对话分析

工具

chat

开始或继续聊天对话。

参数:

  • - message(字符串):在聊天中发送的消息
  • context(字符串,可选):对话的额外上下文

示例:
json
{
message: 你好,最近怎么样?,
context: 只是打个招呼
}

ask

向OpenClaw提问。

参数:

  • - question(字符串):要提出的问题
  • detailed(布尔值,可选):是否提供详细答案(默认:false)

示例:
json
{
question: 今天天气怎么样?,
detailed: true
}

chat-history

管理聊天历史。

参数:

  • - action(字符串):要执行的操作 - get、clear或summary
  • limit(数字,可选):要检索的消息数量(默认:10)

示例:
json
{
action: get,
limit: 5
}

使用方法

  1. 1. 开始聊天:

使用chat工具开始对话

  1. 2. 提问:

使用ask工具提出具体问题

  1. 3. 管理历史:

使用chat-history查看或清除对话

如何调用工具

chat工具

bash python3 scripts/chat_tool.py [context]

示例:
bash
python3 scripts/chat_tool.py 你好,最近怎么样? 只是打个招呼

ask工具

bash python3 scripts/ask_tool.py [detailed]

示例:
bash
python3 scripts/ask_tool.py 什么是OpenClaw? true

chat_history工具

bash python3 scripts/chathistorytool.py [limit]

示例:
bash

获取最近10条消息


python3 scripts/chathistorytool.py get 10

清除历史

python3 scripts/chathistorytool.py clear

获取摘要

python3 scripts/chathistorytool.py summary

响应格式

所有工具返回JSON格式,包含:

  • - status:success或error
  • timestamp:ISO格式的时间戳
  • tool:被调用的工具名称
  • 其他工具特定的字段

chat响应

json { status: success, response: 我已收到您的消息..., timestamp: 2026-03-16T14:30:00.000Z, tool: chat }

ask响应

json { status: success, answer: OpenClaw是一个自托管的AI助手..., detailed: true, timestamp: 2026-03-16T14:30:00.000Z, tool: ask }

chat_history响应

json { status: success, action: get, history: [...], count: 5, limit: 10, total: 15 }

配置

无需特殊配置。该技能开箱即用。

备注

  • - 聊天历史在会话期间存储在内存中
  • 如需持久化存储,请考虑集成数据库
  • 该技能设计用于简单的对话交互

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 chat-ask-1776375963 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 chat-ask-1776375963 技能

通过命令行安装

skillhub install chat-ask-1776375963

下载

⬇ 下载 chat-ask v1.0.0(免费)

文件大小: 6.3 KB | 发布时间: 2026-4-17 14:18

v1.0.0 最新 2026-4-17 14:18
Initial release of chat-ask skill.

- Provides tools for chat conversations, Q&A, and chat history management for OpenClaw.
- Supports starting/continuing chats, asking questions (with optional detailed answers), and managing chat history (get, clear, summary).
- Each tool returns a structured JSON response indicating status and results.
- Designed for simple, out-of-the-box conversational functionality with no special configuration needed.
返回顶部