Install
openclaw skills install douyin-send-message在抖音网页版发送私信消息。当用户想发送抖音私信、提醒续火花、或者提到"抖音发消息"、"发抖音私信"、"douyin send message"时触发。支持独立使用或配合人物关系管理技能使用。
openclaw skills install douyin-send-message为用户直接提供抖音昵称时,直接使用:
推荐流程:
person-relation-manager 查询真实抖音昵称自动流程:
用户:"给昵称B发抖音私信"
↓
我查询记忆(person-relation-manager):昵称B → 抖音昵称C
↓
调用本技能发送,关键词:抖音昵称C
调用时传入两个参数:
联系人:昵称、抖音显示名、或通过人物管理查询到的昵称消息内容:要发送的具体内容(字符串,支持 emoji)browser(action="open", url="https://www.douyin.com/chat", profile="openclaw")
browser(action="act", kind="wait", timeMs=800, targetId="<pageId>")
browser(action="act", kind="evaluate", fn="() => { var name = 'CONTACT_KEYWORD'; var items = document.querySelectorAll('[class*=\"conversationConversationItemwrapper\"]'); for(var item of items) { if(item.innerText && item.innerText.includes(name)) { item.scrollIntoView({block: 'center', behavior: 'instant'}); var rect = item.getBoundingClientRect(); var opts = {view: window, bubbles: true, cancelable: true, clientX: rect.left + rect.width/2, clientY: rect.top + rect.height/2, buttons: 1}; item.dispatchEvent(new MouseEvent('mousedown', opts)); item.dispatchEvent(new MouseEvent('mouseup', opts)); item.dispatchEvent(new MouseEvent('click', opts)); return 'OK'; } } return 'Not found'; }", targetId="<pageId>")
browser(action="act", kind="wait", timeMs=500, targetId="<pageId>")
browser(action="act", kind="evaluate", fn="() => { var msg = 'MESSAGE_CONTENT'; 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="<pageId>")
browser(action="act", kind="press", key="Enter", targetId="<pageId>")
browser(action="act", kind="evaluate", fn="() => { var msg = 'MESSAGE_CONTENT'; return document.body.innerText.includes(msg) ? 'OK' : 'FAIL'; }", targetId="<pageId>")
browser(action="close", targetId="<pageId>")
https://www.douyin.com/chatdiv[class*="conversationConversationItemwrapper"][contenteditable="true"]document.execCommand('insertText') 逐字输入mousedown → mouseup → clickscrollIntoView 滚动到可视区域再点击推荐:先查人物关系,再发送
我收到:"给昵称B发抖音"
1. 调用 memory_recall(query="昵称B 抖音")
2. 找到:昵称B → 抖音昵称C
3. 调用本技能,关键词:抖音昵称C
独立使用:直接发送
我收到:"给 抖音昵称C 发消息"
直接调用本技能,关键词:抖音昵称C
person-relation-manager 获取准确的抖音昵称