直接調用本地 AI 服務的 /chat_direct API,無需瀏覽器自動化。支援單次查詢與批次執行,速度更快、更穩定。
shuttle-cli-YYYYMMDD,方便追蹤# 單次查詢
shuttle-ai-chatbot query "SB860R8 spec" --output text
shuttle-ai-chatbot query "DL30N vs DL40N" # 產品比較
shuttle-ai-chatbot batch queries.txt --output json
DL30N
DL40N
SB860R8
P55U
| 參數 | 說明 | 預設值 |
|---|---|---|
| ------ | ------ | -------- |
query | 單次查詢文字 | - |
batch | 批次查詢檔案路徑(每行一筆) | - |
--url | 本地 AI 服務 URL | http://192.168.100.98:8888 |
--output | 輸出格式:json 或 text | json |
--lang | 回覆語言:zh 或 en | zh |
{
"query": "p55u?",
"response": "產品規格表內容...",
"url": "http://192.168.100.98:8888",
"elapsed": "2.34s",
"timestamp": "2026-03-18T11:30:00+08:00",
"sessionId": "shuttle-cli-20260318"
}
🔍 查詢:p55u?
🆔 Session:shuttle-cli-20260318
⏱️ 耗時:2.34s
📅 時間:2026-03-18T11:30:00+08:00
📋 回應內容:
產品規格表內容...
shuttle-cli-YYYYMMDD(當天日期){ question, session_id, lang }curl 發送 POST 到 {url}/chat_directresult 或 response 欄位192.168.100.98:8888curl 命令(系統內建)從 ClawHub 安裝:
clawhub install shuttle-ai-chatbot
或手動複製到 ~/.openclaw/workspace/skills/ 目錄。
shuttle-ai-chatbot query "DL30N spec"
shuttle-ai-chatbot query "P55U?"
shuttle-ai-chatbot query "Compare DL30N and DL40N"
shuttle-ai-chatbot query "DL30N vs DL40N" --output text
建立 queries.txt:
DL30N
DL40N
SB860R8
P55U
執行:
shuttle-ai-chatbot batch queries.txt --output json > results.json
shuttle-ai-chatbot query "p25n" --url http://10.0.0.5:8888
shuttle-ai-chatbot query "NA20H specifications" --lang en
192.168.100.98:8888)已啟動且可訪問shuttle-qc-ai-chatbot 改名為 shuttle-ai-chatbotshuttle-cli-YYYYMMDD 格式--timeout、--headless 等瀏覽器相關參數--lang 參數: 可指定回覆語言(zh/en)/v1 改為根路徑 /作者: Shuttle AI
來源: https://clawhub.com/skills/shuttle-ai-chatbot
共 1 个版本