Xpersona
D

Douyin Comment Bot

CLAWHUB · Unverified

在抖音(douyin.com)上搜索指定关键词的热门视频并发布评论。当用户说「抖音评论」「在抖音上搜 XX 发评论」「抖音互动」「执行:抖音 XX 热门 N 条评论」等涉及抖音搜索+评论的任务时触发本 skill。 Skill: Douyin Comment Bot Owner: mars82311111 Summary: 在抖音(douyin.com)上搜索指定关键词的热门视频并发布评论。当用户说「抖音评论」「在抖音上搜 XX 发评论」「抖音互动」「执行:抖音 XX 热门 N 条评论」等涉及抖音搜索+评论的任务时触发本 skill。 Tags: automation:1.0.0, douyin:1.0.0, latest:1.0.0, social:1.0.0 Version history: v1.0.0 | 2026-03-31T12:08:38.522Z | auto - Initial release of the douyin-comment skill. - Enables automated search for specified keywords and posting of comments on popular Do

62
Rank
84
Safety
968
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 968 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ft7r4x02ndyd3z98hhdv6zn83w86s:douyin-comment
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mars82311111-douyin-comment/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

5,048 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: douyin-comment
description: 在抖音(douyin.com)上搜索指定关键词的热门视频并发布评论。当用户说「抖音评论」「在抖音上搜 XX 发评论」「抖音互动」「执行:抖音 XX 热门 N 条评论」等涉及抖音搜索+评论的任务时触发本 skill。
---

# 抖音搜索 + 评论 Skill

在托管浏览器(profile=openclaw)中完成:搜索关键词 → 选热门视频 → 发布评论。

## ⚠️ 核心原则

1. **禁止 screenshot**(无 vision 权限)
2. **最多 3-4 次 browser 调用**完成整个流程,避免超时
3. **合并操作**:用单个 evaluate 完成多步操作

## 前置条件

- 浏览器 profile `openclaw` 已启动且已登录抖音账号

## 异常处理

### Gateway 超时处理

如果 browser 工具返回 `timed out` 错误,**自动重启 Gateway**(无需询问用户):

```bash
pkill -f "node.*openclaw.*gateway" || true
sleep 3
openclaw gateway status  # 验证重启成功(RPC probe: ok)
```

然后继续执行任务。

## 精简流程(3 步完成)

### Step 1: 搜索并获取视频ID

一次调用完成搜索 + 提取视频信息:

```
browser navigate url=https://www.douyin.com/search/关键词?type=video profile=openclaw
```

然后用 **一个 evaluate** 提取视频列表:

```javascript
(() => {
  const text = document.body.innerText;
  // 提取 modal_id 或视频信息
  const videos = [];
  const cards = document.querySelectorAll('li, [class*="card"]');
  cards.forEach((c, i) => {
    const t = c.innerText;
    if (t && t.length > 20 && !t.includes('京ICP')) {
      const plays = t.match(/([\d.]+万?)\n/);
      videos.push({ idx: i, preview: t.slice(0, 80), plays: plays?.[1] });
    }
  });
  return videos.slice(0, 5);
})()
```

从返回结果中选择播放量最高的视频。

### Step 2: 进入视频详情页 + 输入评论

**直接导航到视频详情页**(比点击弹窗更稳定):

```
browser navigate url=https://www.douyin.com/video/视频ID profile=openclaw
```

等待 3-4 秒让页面完全加载,然后用 **snapshot** 获取评论输入框的 ref:

```
browser snapshot labels=false profile=openclaw
```

找到评论输入框(通常是 `combobox` 类型,内容为"留下你的精彩评论吧")。

### Step 3: 输入评论(关键:必须用 slowly type)

**⚠️ 重要:必须用 `browser act type slowly` 输入文本**

抖音评论框使用 Draft.js,普通的 evaluate/execCommand 插入文本会导致内部状态不同步,发送按钮保持禁用。

```
browser act kind=click ref=评论框ref profile=openclaw  # 先点击获得焦点
browser act kind=type ref=评论框ref text="你的评论内容" slowly=true profile=openclaw
```

### Step 4: 发送评论

输入完成后,按 **Enter** 键发送:

```
browser act kind=press ref=评论框ref key=Enter profile=openclaw
```

或者等待 Draft.js 状态同步后,发送按钮会自动启用。

## 获取视频 ID 的方法

如果从搜索结果页无法直接拿到视频 ID,点击视频后 URL 会变成:
`https://www.douyin.com/search/xxx?modal_id=7615631792858565903`

提取 `modal_id` 就是视频 ID,然后可以直接访问:
`https://www.douyin.com/video/7615631792858565903`

## 评论质量建议

- 评论应与视频内容相关,15-40 字
- 避免空泛("好看"、"不错")
- 示例:「分析到位,终于有人把 OpenClaw 讲明白了!」

_meta.json

{
  "ownerId": "kn7fqjbnftt52xn0jx866j99hx828z2y",
  "slug": "douyin-comment",
  "version": "1.0.0",
  "publishedAt": 1774958918522
}

skill-card.md

## Description:

Searches Douyin for popular videos matching a keyword and helps an agent post a comment from a logged-in Douyin account.

This skill is ready for commercial/non-commercial use.

## Publisher:

[mars82311111](https://clawhub.ai/user/mars82311111)

### License/Terms of Use:

MIT-0

## Use Case:

External users or operators use this skill to automate keyword-based Douyin discovery and submit context-relevant comments through an already authenticated browser profile.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can post public Douyin comments from a logged-in account.

Mitigation: Confirm the target video and exact comment text before allowing the agent to submit the comment.

Risk: The skill includes automatic local gateway recovery that can terminate matching gateway processes.

Mitigation: Review and approve any local process restart or termination behavior before use.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/mars82311111/skills/douyin-comment)
- [Publisher profile](https://clawhub.ai/user/mars82311111)

## Skill Output:

**Output Type(s):** [Text, Shell commands, Guidance]

**Output Format:** [Markdown with browser action instructions and inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a logged-in openclaw browser profile for Douyin actions.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Douyin Comment Bot and adjacent AI workflows.