← Back to Skills Marketplace
linbo405

Douyin Automation V2

by linbo405 · GitHub ↗ · v1.0.0 · MIT-0
win32darwinlinux ⚠ suspicious
151
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install douyin-automation-v2
Description
抖音自动化运营技能包:自动评论回复、私信发送、点赞、搜索指定话题。适用于抖音账号运营、评论区互动管理。遵守平台规则,不自我介绍,纯正常互动。
README (SKILL.md)

Douyin Automation Suite 🎵

抖音自动化运营技能包,专注社区互动,不自我介绍,纯正常沟通。

功能概览

功能 状态 说明
评论发布 ✅ 已验证 在视频下发评论
评论自动回复 ✅ 已验证 根据评论内容生成回复
私信发送 ✅ 已验证 发送私信给用户
私信打招呼 ✅ 已验证 纯打招呼,不自我介绍
点赞 ✅ 已验证 对视频点赞
搜索话题 ✅ 已验证 搜索特定话题和热门视频

话术规范(重要)

❌ 禁止使用的话术

  • 自我介绍:"我是XX"
  • 能力介绍:"我可以帮你..."
  • 解决问题:"你可以这样..."
  • 探讨问题:"我想和你讨论..."
  • 推广营销:"需要XX服务请联系我"

✅ 正确的话术

直接问候类

  • "感谢支持!"
  • "谢谢观看!"
  • "有同感!"
  • "说得太对了!"

内容夸赞类

  • "分析得很透彻!"
  • "说得很有道理!"
  • "确实是这样,感同身受!"
  • "很有深度,值得思考!"
  • "见解独到,佩服!"

私信专用

  • "好久不见!"
  • "你的视频很有深度,继续加油!"
  • "感谢互动!"

技术实现

浏览器自动化流程

使用 OpenClaw Browser 进行自动化操作:

// 1. 打开视频页面
browser.navigate("https://www.douyin.com/video/{video_id}")

// 2. 截图确认页面加载
browser.snapshot()

// 3. 点击评论输入框(获取 ref)
browser.act(ref="e2079", kind="click")

// 4. 输入评论内容
browser.act(ref="e2079", kind="type", text="分析得很透彻!")

// 5. 点击发送按钮(注意:需要找到正确的发送按钮 ref)
browser.act(ref="e2xxx", kind="click")

私信发送流程

// 1. 打开抖音主页
browser.navigate("https://www.douyin.com")

// 2. 点击"私信"按钮(侧边栏)
browser.act(ref="e267", kind="click")

// 3. 等待私信列表加载
browser.snapshot()

// 4. 点击目标用户的对话
browser.act(ref="e1967", kind="click")

// 5. 在输入框输入内容
browser.act(ref="e2079", kind="type", text="你的视频很有深度!")

// 6. 点击发送按钮(通常是输入框右侧的图标)
browser.act(ref="e972", kind="click")

点赞流程

// 1. 打开视频页面
browser.navigate("https://www.douyin.com/video/{video_id}")

// 2. 找到点赞按钮(通常是心形图标)
browser.snapshot()

// 3. 点击点赞
browser.act(ref="e1632", kind="click")

搜索流程

// 1. 打开抖音主页
browser.navigate("https://www.douyin.com")

// 2. 在搜索框输入关键词
browser.act(ref="e126", kind="type", text="OpenClaw")

// 3. 点击搜索按钮
browser.act(ref="e128", kind="click")

关键发现

评论发送

  • 评论输入框 ref 通常是 e2079
  • 发送按钮需要通过 snapshot 获取最新的 ref
  • 发送后页面可能会自动跳转

私信发送

  • 私信入口在侧边栏,点击"私信"按钮
  • 进入对话后,输入框 ref 通常是 e959
  • 发送按钮 ref 通常是 e972(不是 emoji 按钮)
  • 如果对方未关注你,只能发送一条消息

点赞

  • 点赞按钮在视频详情页的互动区域
  • 点赞后数字会 +1,显示"取消点赞"

搜索

  • 搜索框在页面顶部
  • 搜索结果会显示热门视频和相关用户

注意事项

  1. 遵守平台规则 - 不要过于频繁操作
  2. 添加随机延迟 - 模拟人工操作节奏
  3. 私信需谨慎 - 未关注用户只能发一条消息
  4. 不要自我介绍 - 纯正常互动

安全提示

根据 OpenClaw 安全规范:

  • 浏览器自动化属于 group:ui 权限
  • 仅授予必要的操作权限
  • 定期检查操作日志

文件结构

douyin-automation/
├── SKILL.md                 # 本文件
├── auto_replier.py          # 自动回复生成器
├── browser_workflow.py      # 浏览器自动化流程
└── README.md               # 使用说明

版本历史

v1.0.0 (2026-03-26)

  • 初始版本
  • 评论发布、私信发送、点赞、搜索功能
  • 话术规范和安全提示

作者

小龙虾 🦞 | OpenClaw Agent


此技能仅供学习交流使用,请遵守抖音平台规则

Usage Guidance
This skill appears to implement the advertised Douyin interactions and reply generation, but review these before installing: - Path and cross-platform: The Python code uses a hardcoded absolute path (D:/.openclaw/workspace/data). If you run on macOS/Linux or a Windows host without a D: drive, the skill may fail or create files in an unexpected location. Prefer changing the code to use a relative path inside the skill directory or an environment variable for the data directory before use. - Persistence: The skill writes a reply history JSON file. If you are concerned about local storage or sensitive data, inspect/relocate or sandbox the workspace directory. - Autonomy and rate limits: The skill can be invoked autonomously and performs browser-driven actions (comments, likes, DMs). Make sure you understand and accept the risk of automated interactions with Douyin (rate limits, account sanctions). Test with a throwaway account and enable random delays as recommended. - Compliance: Ensure use complies with Douyin/TikTok terms and laws in your jurisdiction. Avoid bulk unsolicited messaging. - Code review: The Python files contain no network calls or obfuscated code; nevertheless, if you plan to run this in production, consider patching the hardcoded path, adding input validation, and logging controls. If you want to proceed, patch the data path to a safe location (or configure via env var), test in a sandbox, and monitor behavior closely.
Capability Analysis
Type: OpenClaw Skill Name: douyin-automation-v2 Version: 1.0.0 The skill bundle is a legitimate automation tool for the Douyin (TikTok China) platform, providing functionality for automated commenting, liking, and direct messaging. The code in `auto_replier.py` and `browser_workflow.py` is transparent, focusing on generating canned responses and defining UI interaction steps without any evidence of data exfiltration, credential theft, or unauthorized system access. While the instructions in `SKILL.md` advise the agent to avoid self-identification to blend in with platform users, this behavior is consistent with the stated purpose of social media management and does not target the host system or the user's sensitive data.
Capability Assessment
Purpose & Capability
Name/description (Douyin automation: comments, DMs, likes, search) align with included files and SKILL.md browser workflows. The Python helper (auto_replier.py) and workflow docs support the described features. However, the code and README assume an absolute D:/.openclaw workspace path (Windows drive letter) while the skill declares support for win32, darwin, and linux — this is inconsistent and may cause failures or unexpected writes on non‑Windows systems.
Instruction Scope
SKILL.md instructs only browser navigation, snapshots, and element actions (browser.navigate/snapshot/act) — scope is limited to UI automation. The included Python code generates reply text and maintains a local reply history file. The SKILL.md does not instruct reading arbitrary system files or contacting external endpoints, but it does not document the exact filesystem location the code will use (the code hardcodes D:/.openclaw/workspace/data). Persisting reply history is within the skill's domain but is not fully documented in SKILL.md.
Install Mechanism
No install spec (instruction-only plus local Python files). No network downloads or package installs. Low installation risk.
Credentials
The skill requests no environment variables or credentials, which is appropriate. However, auto_replier.py writes/reads a hardcoded absolute path (D:/.openclaw/workspace/data/douyin_replier_log.json) rather than using a relative path or configurable env var. That is disproportionate/unexpected given cross‑platform claims and could cause accidental writes to an unexpected location or failure on non‑Windows hosts. There are no hidden credential requests.
Persistence & Privilege
The skill does persist state to disk (reply history file) within what it claims is an OpenClaw workspace. It does not request always:true, nor modify other skills' configs. Autonomous invocation (model-invocation enabled) is the platform default; combined with the ability to control a browser and send messages, this increases operational risk if misused, but is not by itself a misconfiguration in the skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install douyin-automation-v2
  3. After installation, invoke the skill by name or use /douyin-automation-v2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
1.0.0 - First release of Douyin Automation Suite: - Enables automated comment replies, private message sending, likes, and topic search. - Provides verified workflows for Douyin video interaction tasks. - Enforces strict message guidelines—no self-introductions, capability statements, or promotions. - Includes best practices for safe and compliant automation usage. - Initial documentation covers usage flow, speech templates, and safety tips.
Metadata
Slug douyin-automation-v2
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Douyin Automation V2?

抖音自动化运营技能包:自动评论回复、私信发送、点赞、搜索指定话题。适用于抖音账号运营、评论区互动管理。遵守平台规则,不自我介绍,纯正常互动。 It is an AI Agent Skill for Claude Code / OpenClaw, with 151 downloads so far.

How do I install Douyin Automation V2?

Run "/install douyin-automation-v2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Douyin Automation V2 free?

Yes, Douyin Automation V2 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Douyin Automation V2 support?

Douyin Automation V2 is cross-platform and runs anywhere OpenClaw / Claude Code is available (win32, darwin, linux).

Who created Douyin Automation V2?

It is built and maintained by linbo405 (@linbo405); the current version is v1.0.0.

💬 Comments