Chuyển đến nội dung
Skillpedia
Mạng xã hội6.3k · #14317

x-dm-auto-chat

Skill này làm gì

Skill quản lý tin nhắn riêng trên X, từ quét hộp thư đến gửi trả lời. Skill dành cho người muốn được hỗ trợ trả lời tin nhắn riêng với giọng điệu nhất quán và bắt đầu một vài cuộc trò chuyện mới.

Khi nào nên dùng

  • ✓Khi bạn có nhiều tin nhắn riêng chưa đọc trên X cần trả lời.
  • ✓Khi bạn muốn các câu trả lời theo một giọng điệu và mục đích đã đặt cho thương hiệu.
  • ✓Khi bạn muốn mở một vài cuộc trò chuyện mới trên X với những người bạn chọn.

Liên kết skill

https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-dm-auto-chat/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-dm-auto-chat/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra hộp thư X của tôi xem có tin chưa đọc không, đọc từng cuộc trò chuyện và gửi các câu trả lời thân thiện phù hợp với giọng thương hiệu của chúng tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill mở tin nhắn X của bạn, tìm các cuộc trò chuyện cần trả lời và đọc lịch sử. Sau đó skill gửi câu trả lời được viết theo nhân vật bạn đã đặt, đồng thời áp dụng giới hạn tần suất và bộ lọc quyền.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

X (Twitter) — DM Auto Chat (End-to-End)

Full X DM automation Skill: inbox scan → conversation read → persona-based reply → send; also supports search-and-outreach. The calling Agent generates reply text based on persona; this Skill handles all mechanical operations.

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Encapsulate "refresh DM list → identify pending replies → read context → reply with persona → send" and "search user → enter chat → send first message" into callable end-to-end capabilities.

Prerequisites

  • Browser is open at X site, logged into X account ([aria-label="Account menu"] present)
  • The 4-digit DM passcode for the current account is available (required for E2E encryption)
  • Caller has prepared a "persona description" (used to generate replies), e.g.:
    • "You are BrowserAct outreach team. Tone: friendly, concise, professional. Goal: invite creators to collaborate."
  • Optional: list of target user search queries (for outreach scenario)

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

2. Open DM Entry + Comprehensive State Check

browser-act --session <name> navigate https://x.com/i/chat
browser-act --session <name> wait stable --timeout 15000
browser-act --session <name> eval "$(python scripts/check-page-state.py)"

Return format:

{
  "url": "https://x.com/i/chat/pin/recovery?from=%2Fi%2Fchat",
  "logged_in": true,
  "need_passcode": true,
  "on_inbox": false,
  "on_conversation": false,
  "has_panel": false,
  "has_composer": false,
  "inbox_count": 0
}

Decision matrix:

  • logged_in: false → inform user to log in first; wait; retry this step
  • need_passcode: true → proceed to step 3 below
  • on_inbox: true and inbox_count > 0 → ready, enter business flow
  • on_inbox: true but inbox_count === 0 → account has no DM conversations; outreach scenario can still proceed, pending-reply scenario has nothing to do

3. DM Passcode Unlock (when need_passcode is true)

  1. If caller has provided passcode in advance → use it directly; otherwise ask user for 4-digit DM passcode via AskUserQuestion tool (do not use plain text prompt — must call AskUserQuestion)
  2. browser-act --session <name> state — find indexes of 4 <input maxlength=1 pattern=[0-9]*> elements (usually 4 consecutive)
  3. Enter each digit: browser-act --session <name> input <idx1> "<d1>", <idx2> "<d2>", <idx3> "<d3>", <idx4> "<d4>"
    • Must use browser-act input (CDP real keyboard events), cannot use eval to set value — X ignores non-real keyboard input
  4. browser-act --session <name> wait stable --timeout 10000
  5. Re-run check-page-state.py, confirm need_passcode: false and on_inbox: true
  6. 3 consecutive failures still showing need_passcode: true → inform user passcode may be wrong; terminate

Business Flows

Choose Scenario A, Scenario B, or both. Each scenario is an ordered AI Workflow (not a single JS).

Scenario A: Scan unread DMs → Persona-based reply

Flow: Scan inbox → Filter unread & latest peer messages → Per-conversation: read context → Generate reply with persona → Send → Next

Steps:

  1. Scan inbox:

    browser-act --session <name> eval "$(python scripts/scan-inbox-merged.py)"
    

    Returns items[], each containing conversation_id / conversation_url / peer_screen_name / peer_display_name / peer_can_dm / latest_message_preview / latest_message_from_self / unread, etc.

  2. Filter pending-reply conversations: from items, select conversations meeting all conditions:

    • unread === true (has unread) or latest_message_from_self === false (peer's latest message not yet replied)
    • peer_can_dm === true (recipient allows DM)
    • is_muted !== true and is_deleted_by_viewer !== true
    • Optional caller filters: only reply to specific screen_names, exclude already-replied (use external JSONL ledger)
  3. For each pending-reply conversation (strictly serial, random sleep 8-15 seconds between each):

    a. Open conversation:

    browser-act --session <name> navigate https://x.com<conversation_url>
    browser-act --session <name> wait stable --timeout 15000
    

    b

Câu hỏi thường gặp

Skill có cần mật khẩu DM của X không?

Có. Mô tả cho biết cần mã DM 4 chữ số của tài khoản để đọc tin nhắn được mã hóa.

Skill có nhắn cho người chưa từng liên hệ với bạn không?

Skill có thể bắt đầu cuộc trò chuyện mới và có bộ lọc quyền, nên bạn kiểm soát được ai được liên hệ.

Ai viết nội dung trả lời?

Agent của bạn viết nội dung dựa trên nhân vật bạn đưa ra, còn skill xử lý các bước gửi.

Chi tiết

Mô tả gốc của tác giả

X (Twitter) DM automated chat end-to-end Skill: scan DM inbox to identify pending-reply conversations, read message history, generate persona-based replies and send; also supports searching users and starting new conversations. Built-in E2E passcode unlock, DM permission filtering, and rate control. Use when user mentions X auto-reply DMs, Twitter DM automated chat, auto-handle unread DMs, reply to X private messages with persona, X DM outreach campaign, batch send DMs to Twitter users, auto-process pending DM replies, Twitter DM bot, automated Twitter outreach, X direct message automation.

repo: browser-act/skills

Độ phổ biến

Sao GitHub
6.3k
Vị trí xếp hạng
#14317
Giấy phép
MIT
Cập nhật
24/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự