2

I am looking for a recipe to retweet someones post only if a specific word was used (always at the beginning of the tweet if this is of any help).

I could not find ready to use recipe and creating one does not allow to chose specific word (only specific user).

2 Answers 2

1

Create your own applet!

You can use IFTTT's platform (create you own IFTTT applets) to achieve that task.

With Platform, you can add a filter, written in JavaScript that will run between the trigger and the action(s).

So in your case, you can set the action for New tweet by a specific user from Twitter, than apply a JavaScript code to filter, and select the Post a tweet action.

About the JavaScript filtering:

  • When you click to create a filter, you'll see a list [1] of variables/functions you can use, depending on the chosen trigger and action.
  • Depends on your criteria, you can set the action to trigger or skip.
  • A very simple JavaScript filtering example for the applet:

    if (Twitter.newTweetByUser.Text.indexOf("YOUR_PHRASE") != -1) {
        Twitter.postNewTweet.setTweet(Twitter.newTweetByUser.LinkToTweet);
    } else {
        Twitter.postNewTweet.skip();
    }
    
    • It will tweet the user's tweet if it contains YOUR_PHRASE.

[1] The available variables and functions for the chosen trigger and action:

Trigger data
Twitter.newTweetByUser.Text
Twitter.newTweetByUser.UserName
Twitter.newTweetByUser.LinkToTweet
Twitter.newTweetByUser.TweetEmbedCode
Twitter.newTweetByUser.CreatedAt

Actions
Twitter.postNewTweet.skip()
Twitter.postNewTweet.setTweet()

Other
Meta.currentUserTime
Meta.triggerTime

Screenshot

enter image description here

-1

You can use the "New tweet from search" and then use specified Twitter search operators for example;

If new tweet from search ("@account" "#hashtag") then retweet...

*I use a little gmail work around to make sure the '@' tweets via IFTT - http://callismakesfilms.co.uk/blog/seo-marketing/ifttt-post-replies-twitterT

1
  • not hashtag - normal word
    – lovemyjob
    Commented May 11, 2018 at 13:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.