Description:
This scenario automates the process of selecting trending hashtags and crafting meaningful comments on Twitter/X posts using Uxer’s AI-powered capabilities. It opens Chrome, identifies trending topics, and creates thoughtful comments to engage with posts, increasing your brand’s visibility and interaction.
How to Use It:
- Copy and paste this template into Uxer’s scenario builder.
- Make sure you are logged in to X in Chrome prior to running the scenario.
- Save and run the scenario to automate creating a new comment on trending posts.
Step-by-Step Process:
-
Open Chrome and Navigate to Twitter/X Trending Section:
The scenario opens Chrome and navigates to the trending tab of X.com. Incognito mode is disabled to keep you logged into your account.OpenBrowser Chrome "https://x.com/explore/tabs/keyword" -Incognito false
-
Verify Visibility of the “Trending” Section:
The script checks for the “Trending” text to ensure the page is fully loaded and ready to fetch trending hashtags.IsVisible Text "Trending"
-
Use AskUxer to Select a Trending Hashtag:
Uxer analyzes the screen and selects one of the trending hashtags from the “Trending” section, which will be used in the next steps.{TrendTopic} = AskUxer "Give me one of the trending hashtags on the provided X screen." -UseScreenshot true
-
Search for the Selected Hashtag:
The scenario clicks the search field, writes the selected hashtag, and initiates the search by pressing Enter.Click Text "Search" Write {TrendTopic} SendKeys Enter
-
Scroll to Locate the Reply Icon:
The script scrolls through posts up to five times until the reply button for a specific post becomes visible.Scroll 5 -UntilVisible Image {ux_xcom_reply}
-
Click the Reply Button:
Once the reply icon is visible, the scenario clicks on it to begin crafting a comment.Click Image {ux_xcom_reply}
-
Use AskUxer to Generate a Meaningful Comment:
Uxer will now generate a thoughtful and engaging comment based on the provided post’s screenshot. The comment is designed to increase brand interaction and is under 250 characters.{Response} = AskUxer "I will provide you with a screenshot of a post from Twitter. Please create a thoughtful and engaging comment about the post that will help increase my brand's visibility and encourage interaction with other users. Keep the comment relevant to the post and aim to drive conversation. Comment should be less than 250 characters." -UseScreenshot true
-
Write the Comment in the “Post Your Reply” Field:
After generating the response, the scenario clicks on the “Post Your Reply” input field and writes the comment.Click Text "Post Your Reply" Write {Response}
-
Post the Comment:
The scenario simulates pressing the space key to activate the post button and then double-clicks the “Reply” button to post the comment.SendKeys Space Click Button "Reply" -Double true
Complete Script:
OpenBrowser Chrome "https://x.com/explore/tabs/keyword" -Incognito false
IsVisible Text "Trending"
{TrendTopic} = AskUxer "Give me one of the trending hashtags on the provided X screen." -UseScreenshot true
Click Text "Search"
Write {TrendTopic}
SendKeys Enter
Scroll 5 -UntilVisible Image {ux_xcom_reply}
Click Image {ux_xcom_reply}
{Response} = AskUxer "I will provide you with a screenshot of a post from Twitter. Please create a thoughtful and engaging comment about the post that will help increase my brand's visibility and encourage interaction with other users. Keep the comment relevant to the post and aim to drive conversation. Comment should be less than 250 characters." -UseScreenshot true
Click Text "Post Your Reply"
Write {Response}
SendKeys Space
Click Button "Reply" -Double true
Let us know if you need further assistance or more use cases!