본문으로 건너뛰기
Skillpedia
소셜 미디어6.3k · #14317

x-dm-auto-chat

하는 일

이 스킬은 받은 메시지함 확인부터 답장 전송까지 X 다이렉트 메시지를 관리합니다. 일관된 어조로 DM에 답하고 싶거나 몇 개의 새 대화를 시작하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓답장이 필요한 읽지 않은 X 다이렉트 메시지가 많을 때.
  • ✓브랜드에 맞는 어조와 목적으로 답장이 작성되기를 원할 때.
  • ✓내가 고른 사람들과 X에서 새 대화를 몇 개 시작하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/browser-act/skills/blob/main/solutions/social-listening/x-dm-auto-chat/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“X 받은 메시지함에서 읽지 않은 메시지를 확인하고, 각 대화를 읽은 뒤 우리 브랜드 어조에 맞는 친근한 답장을 보내 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 X 메시지를 열고 답장이 필요한 대화를 찾아 기록을 읽습니다. 그다음 설정한 페르소나로 작성한 답장을 보내며, 발송 속도 제한과 허용 필터를 적용합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

자주 묻는 질문

X 비밀번호가 필요한가요?

네, 설명에 따르면 암호화된 메시지를 위해 계정의 4자리 DM 암호가 필요합니다.

나에게 연락한 적 없는 사람에게도 메시지를 보낼 수 있나요?

새 대화를 시작할 수 있으며, 허용 필터가 있어 연락할 대상을 직접 정할 수 있습니다.

답장은 누가 작성하나요?

에이전트가 설정한 페르소나에 맞춰 답장 문구를 작성하고, 스킬은 전송 단계를 처리합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
6.3k
순위
#14317
라이선스
MIT
업데이트
2026. 8. 24.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬