Post latest Twitter mentions to Slack
Needs changesWhat 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).
- n8n.io mentions (X (Formerly Twitter)): search
- Filter Tweet Data (Edit Fields (Set)): sets or maps fields
- Only get new tweets (Function): runs custom JavaScript (legacy Function node)
- RocketChat: uses RocketChat
Services it uses
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.0 | Replace with |
|---|---|
| Function (legacy) Only get new tweets | Code node, mode 'Run Once for All Items' |
| Cron Cron | Schedule Trigger |
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Function
n8n-nodes-base.function - X (Formerly Twitter)
n8n-nodes-base.twitter - RocketChat
n8n-nodes-base.rocketchat - Cron
n8n-nodes-base.cron
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…