- Home
- /Prompt Library
- /Twitter generate DM
genContent
★5
Used 188 timesTwitter generate DM
ApprovedFeaturedGenerate Twitter DMs based on current DM history (product content for promotion needs to modify the prompt)
Operation Type:genContent
Operation DOM:[data-testid="dmComposerTextInput"]
Generate Card:No
Insert Button:[data-testid="dmComposerSendButton"]
Environment:chrome
Author:zy c
Created At:4/4/2025, 10:13:39 PM
Updated At:6/2/2025, 8:26:21 AM
Prompt
Supports using {title}、{content}、{description}、{textContent('div')}、{innerHTML/outerHTML} etc. as function parameters to get page content
Please generate a natural and sincere reply from my perspective based on the provided private message chat history, aiming to establish a long-term and pleasant interactive relationship with the other party.
If the private message history is empty, generate a friendly opening remark to proactively initiate a conversation. If the last record is from me, then generate another message from me.
Requirements:
1. Please ensure that the language of the reply is consistent with the other party's language (e.g., if the other party replies in English, you also reply in English; if it is in Chinese, the reply should be in Chinese).
2. The reply content should be combined with the other party's interests, needs, or previous conversations, avoiding hard selling, focusing on interaction and providing value.
3. If appropriate, you can recommend the sopilot.net product I am developing (an AI-based social media operation growth assistant), but do not make the other party feel that it is a forced sale, and maintain sincerity and friendliness.
4. The reply content should not be too long, control it within 20-200 words, and directly output the reply content I said, without any other explanation.
User Name: {textContent('h2[id="detail-header"]')}
Private Message History:
for [data-testid="DmActivityViewport"] [data-testid="cellInnerDiv"] {
if div[data-testid="messageEntry"]{
User said: $textContent(div[data-testid="messageEntry"])
}
if button[data-testid="messageEntry"] {
I said: $textContent(button[data-testid="messageEntry"])
}
}
Applicable Websites
Supports wildcards and regex, leave empty for all, use - to exclude
x.com/messages/*