Templates / Post latest Twitter mentions to Slack

Post latest Twitter mentions to Slack

Needs changes

by Nisarag · 3,097 views · created 2020-08-23 · Social Media

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 6 nodes and runs on a schedule (legacy Cron node) (plus 1 other trigger). Along the way it connects X (Formerly Twitter) and RocketChat.

How it runs

Trigger: On a schedule (legacy Cron node) (plus 1 other trigger).

  1. n8n.io mentions (X (Formerly Twitter)): search
  2. Filter Tweet Data (Edit Fields (Set)): sets or maps fields
  3. Only get new tweets (Function): runs custom JavaScript (legacy Function node)
  4. RocketChat: uses RocketChat

Services it uses

X (Formerly Twitter)RocketChat

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Only get new tweets: replace with Code node, mode 'Run Once for All Items'.
  • Cron: replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Only get new tweets
Code node, mode 'Run Once for All Items'
Cron
Cron
Schedule Trigger

Nodes used (6)

From the author

This workflow will allow you to get the latest twitter mentions and send those mentions to Rocket.Chat. To ensure that we don't resend the same tweets as before, we use the Function Node and getWorkflowStaticData() to persist the ids of the tweets which have…

Excerpt from Nisarag's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.