← 返回
AI智能 中文

Chat Ask

Chat and ask functionality for OpenClaw
OpenClaw的聊天与提问功能。
xander-art
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 448
下载
💾 5
安装
1
版本
#latest

概述

Chat/Ask Skill

A simple skill for handling chat conversations and Q&A with OpenClaw.

Description

This skill provides tools for:

  • Chat conversations with OpenClaw
  • Asking questions and getting answers
  • Managing chat history
  • Simple conversation analysis

Tools

chat

Start or continue a chat conversation.

Parameters:

  • message (string): The message to send in chat
  • context (string, optional): Additional context for the conversation

Example:

{
  "message": "Hello, how are you?",
  "context": "Just checking in"
}

ask

Ask a question to OpenClaw.

Parameters:

  • question (string): The question to ask
  • detailed (boolean, optional): Whether to provide a detailed answer (default: false)

Example:

{
  "question": "What is the weather like?",
  "detailed": true
}

chat-history

Manage chat history.

Parameters:

  • action (string): Action to perform - 'get', 'clear', or 'summary'
  • limit (number, optional): Number of messages to retrieve (default: 10)

Example:

{
  "action": "get",
  "limit": 5
}

Usage

  1. Start a chat:

```

Use the chat tool to start a conversation

```

  1. Ask questions:

```

Use the ask tool for specific questions

```

  1. Manage history:

```

Use chat-history to review or clear conversations

```

How to Call Tools

chat tool

python3 scripts/chat_tool.py '<message>' '[context]'

Example:

python3 scripts/chat_tool.py 'Hello, how are you?' 'Just checking in'

ask tool

python3 scripts/ask_tool.py '<question>' [detailed]

Example:

python3 scripts/ask_tool.py 'What is OpenClaw?' true

chat_history tool

python3 scripts/chat_history_tool.py '<action>' [limit]

Examples:

# Get last 10 messages
python3 scripts/chat_history_tool.py 'get' 10

# Clear history
python3 scripts/chat_history_tool.py 'clear'

# Get summary
python3 scripts/chat_history_tool.py 'summary'

Response Format

All tools return JSON with:

  • status: "success" or "error"
  • timestamp: ISO format timestamp
  • tool: Tool name that was called
  • Additional tool-specific fields

chat response

{
  "status": "success",
  "response": "I received your message...",
  "timestamp": "2026-03-16T14:30:00.000Z",
  "tool": "chat"
}

ask response

{
  "status": "success",
  "answer": "OpenClaw is a self-hosted AI assistant...",
  "detailed": true,
  "timestamp": "2026-03-16T14:30:00.000Z",
  "tool": "ask"
}

chat_history response

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

Configuration

No special configuration required. The skill works out of the box.

Notes

  • Chat history is stored in memory during the session
  • For persistent storage, consider integrating with a database
  • The skill is designed for simple conversational interactions

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 09:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,370
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,216
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,135