Xpersona
抖

抖音私信发送

CLAWHUB · Unverified

在抖音网页版发送私信消息。当用户想发送抖音私信、提醒续火花、或者提到"抖音发消息"、"发抖音私信"、"douyin send message"时触发。支持独立使用或配合人物关系管理技能使用。 Skill: 抖音私信发送 Owner: calvin-dean Summary: 在抖音网页版发送私信消息。当用户想发送抖音私信、提醒续火花、或者提到"抖音发消息"、"发抖音私信"、"douyin send message"时触发。支持独立使用或配合人物关系管理技能使用。 Tags: latest:2.3.0 Version history: v2.3.0 | 2026-06-26T12:08:09.398Z | user 优化发送流程:改用主页私信按钮入口;补充关闭页面步骤;更新DOM为2026-06实测版本;完善模式二安装提示 v2.2.0 | 2026-04-07T12:36:05.668Z | user 移除真实姓名,用通用名称替代 v2.1.0 | 2026-04-07T12:34:57.152Z | user 完善独立使用和配合人物管理两种模式 v2.0.0 | 2026-04-07T12:32:13.373Z |

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/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 s17d5efa4g40dv72ysapcjg20984c83e:douyin-send-message
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  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-calvin-dean-douyin-send-message/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

32,406 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: douyin-send-message
description: 在抖音网页版发送私信消息。当用户想发送抖音私信、提醒续火花、或者提到"抖音发消息"、"发抖音私信"、"douyin send message"时触发。支持独立使用或配合人物关系管理技能使用。
---

# 抖音私信发送

## 两种使用模式

### 模式一:独立使用(手动提供抖音昵称)

为用户直接提供抖音昵称时,直接使用:
- "给 xxx 发消息" → xxx 作为搜索关键词
- "给 用户A 发消息" → 直接搜索 "用户A"

### 模式二:配合人物关系管理使用

**推荐流程:**
1. 先调用 `person-relation-manager` 查询真实抖音昵称
2. 拿到昵称后再执行发送

**自动流程:**
```
用户:"给昵称B发抖音私信"
     ↓
我查询记忆(person-relation-manager):昵称B → 抖音昵称C
     ↓
调用本技能发送,关键词:抖音昵称C
```

**注意:** 如果 `person-relation-manager` 技能不存在,提示用户安装:
> 人物关系管理技能未安装,是否从 ClawHub 安装?请说 "是的" 安装,或直接告诉我对方的抖音昵称。

如用户同意安装,执行:
```bash
clawhub install person-relation-manager --workdir ~/.openclaw/workspace
```

---

## 参数

调用时传入两个参数:
- `联系人`:昵称、抖音显示名、或通过人物管理查询到的昵称
- `消息内容`:要发送的具体内容(字符串,支持 emoji)

---

## 执行步骤

### Step 1: 搜索并进入用户主页

1. 打开新标签页,导航到搜索页:
   ```javascript
   browser(action="open", url="https://www.douyin.com/aisearch?from_nav=1&search_source=normal_search&query=<联系人>&type=user", label="douyin_dm")
   ```
2. 等待页面加载:
   ```javascript
   browser(action="act", kind="wait", timeMs=2000, targetId="<返回的targetId>")
   ```
3. 截取快照,找到"用户" tab 并点击:
   ```javascript
   browser(action="snapshot", targetId="<targetId>", refs="aria")
   // 找到 tab "用户" [ref=e??] 点击
   browser(action="act", kind="click", ref="<用户tab的ref>", targetId="<targetId>")
   ```
4. 等待搜索结果加载,再次快照,找到目标用户的链接并点击进入主页

### Step 2: 在主页点击"私信"按钮

进入用户主页后,快照找到"私信"按钮并点击:
```javascript
browser(action="snapshot", targetId="<targetId>", refs="aria")
// 找到 button "私信" [ref=e??] 点击
browser(action="act", kind="click", ref="<私信按钮的ref>", targetId="<targetId>")
```

### Step 3: 在聊天窗口输入并发送

私信窗口弹出后(URL 不变但 DOM 变化),直接用 JavaScript 输入:
```javascript
browser(action="act", kind="evaluate", fn="() => { var msg = '<消息内容>'; var inputs = document.querySelectorAll('[contenteditable=\"true\"]'); for(var input of inputs) { var rect = input.getBoundingClientRect(); if(rect.width > 0 && rect.height > 0) { input.focus(); for(var i=0; i<msg.length; i++) { document.execCommand('insertText', false, msg[i]); } return 'OK'; } } return 'No input'; }", targetId="<targetId>")
browser(action="act", kind="press", key="Enter", targetId="<targetId>")
```

### Step 4: 验证发送成功

```javascript
browser(action="act", kind="evaluate", fn="() => { var msg = '<消息内容>'; return document.body.innerText.includes(msg) ? 'OK' : 'FAIL'; }", targetId="<targetId>")
```

### Step 5: 关闭页面(释放资源)

```javascript
browser(action="close", targetId="<targetId>")
```

---

## 关键 DOM(2026-06-26 实测)

- 搜索用户:`https://www.douyin.com/aisearch?query=<联系人>&type=user`
- 用户主页按钮:button "私信" [ref]
- 聊天输入框:`[contenteditable="true"]`(需要宽度>0、高度>0才可输入)
- **必须用 `document.execCommand('insertText')` 逐字输入**
- **Enter 发送:`browser(action="press", key="Enter")`**

## 性能

- 目标总耗时:**5-10 秒**

## 配合使用示例

**推荐:先查人物关系,再发送**

```
我收到:"给昵称B发抖音"
1. 调用 person-relation-manager 查找:昵称B → 抖音昵称C
   - 如果技能不存在,提示用户安装
2. 调用本技能,关键词:抖音昵称C
```

**独立使用:直接发送**

```
我收到:"给 抖音昵称C 发消息"
直接调用本技能,关键词:抖音昵称C
```

## 注意事项

- 发送完毕后**必须关闭页面**(`browser(action="clos

_meta.json

{
  "ownerId": "kn720aebncsa1qpc8hy2xbkvax83a69w",
  "slug": "douyin-send-message",
  "version": "2.3.0",
  "publishedAt": 1782475689398
}

skill-card.md

## Description:

在抖音网页版发送私信消息,当用户想发送抖音私信、提醒续火花、或者提到“抖音发消息”、“发抖音私信”或“douyin send message”时触发,并支持独立使用或配合人物关系管理技能使用。

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

## Publisher:

[calvin-dean](https://clawhub.ai/user/calvin-dean)

### License/Terms of Use:

MIT-0

## Use Case:

External users and agents use this skill to send Douyin Web private messages to a specified contact, either from a directly supplied Douyin nickname or after resolving a nickname through a relationship-management skill.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can operate through a live logged-in Douyin account and send a private message without an explicit final confirmation step.

Mitigation: Require manual confirmation of the sending account, recipient, and exact message content immediately before dispatch.

Risk: The bundled script hard-codes a local browser profile path and writes screenshots that may expose private messages or account state.

Mitigation: Replace local profile paths before use, avoid running the bundled script as-is, and disable or securely handle screenshots containing private conversation data.

Risk: The workflow may suggest dynamically installing a related relationship-management skill.

Mitigation: Prefer a manually supplied Douyin display name or verify and pin any related dependency before installation.

## Reference(s):

- [ClawHub skill release page](https://clawhub.ai/calvin-dean/skills/douyin-send-message)

## Skill Output:

**Output Type(s):** [guidance, shell commands, code]

**Output Format:** [Markdown instructions with inline JavaScript and bash examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a logged-in Douyin Web session and manual confirmation before sending messages.]

## Skill Version(s):

2.3.0 (source: server release evidence)

## 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 抖音私信发送 and adjacent AI workflows.