The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "1",
"name": "Twitter notifications",
"nodes": [
{
"name": "Twitter",
"type": "n8n-nodes-base.twitter",
"position": [
610,
260
],
"parameters": {
"operation": "search",
"searchText": "n8n_io",
"additionalFields": {
"resultType": "recent"
}
},
"credentials": {
"twitterOAuth1Api": "<your credential>"
},
"typeVersion": 1
},
{
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
410,
260
],
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"typeVersion": 1
},
{
"name": "Function",
"type": "n8n-nodes-base.function",
"position": [
940,
260
],
"parameters": {
"functionCode": "const new_items = [];\nconst data = this.getWorkflowStaticData('node');\n\ndata.ids = data.ids || [];\n\nfor (var i=0; i<items.length; i++) {\n if (data.ids.includes(items[i].json.id)) {\n break;\n } else {\n new_items.push({json: {id: items[i].json.id, url: items[i].json.url, tweet: items[i].json.tweet, username: items[i].json.username, photo: items[i].json.photo, name: items[i].json.name, color: items[i].json.color}});\n }\n}\n\ndata.ids = items.map(item => item.json.id)\nreturn new_items;\n"
},
"typeVersion": 1
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
780,
260
],
"parameters": {
"values": {
"number": [
{
"name": "id",
"value": "={{$node[\"Twitter\"].json[\"id\"]}}"
}
],
"string": [
{
"name": "url",
"value": "=https://twitter.com/{{$node[\"Twitter\"].json[\"user\"][\"screen_name\"]}}/status/{{$node[\"Twitter\"].json[\"id_str\"]}}"
},
{
"name": "tweet",
"value": "={{$node[\"Twitter\"].json[\"text\"]}}"
},
{
"name": "username",
"value": "={{$node[\"Twitter\"].json[\"user\"][\"screen_name\"]}}"
},
{
"name": "photo",
"value": "={{$node[\"Twitter\"].json[\"user\"][\"profile_image_url_https\"]}}"
},
{
"name": "name",
"value": "={{$node[\"Twitter\"].json[\"user\"][\"name\"]}}"
},
{
"name": "color",
"value": "={{$node[\"Twitter\"].json[\"user\"][\"profile_link_color\"]}}"
}
]
},
"options": {
"dotNotation": true
},
"keepOnlySet": true
},
"typeVersion": 1
},
{
"name": "Mattermost",
"type": "n8n-nodes-base.mattermost",
"position": [
1110,
260
],
"parameters": {
"message": "={{$node[\"Function\"].json[\"url\"]}}",
"channelId": "c81pcft85byeipbp3nptbmicah",
"attachments": [
{
"text": "={{$node[\"Function\"].json[\"tweet\"]}}",
"color": "=#{{$node[\"Function\"].json[\"color\"]}}",
"author_icon": "={{$node[\"Function\"].json[\"photo\"]}}",
"author_link": "=https://twitter.com/{{$node[\"Function\"].json[\"username\"]}}",
"author_name": "={{$node[\"Function\"].json[\"name\"]}} ({{$node[\"Function\"].json[\"username\"]}})"
}
],
"otherOptions": {}
},
"credentials": {
"mattermostApi": "<your credential>"
},
"typeVersion": 1
}
],
"settings": {},
"connections": {
"Set": {
"main": [
[
{
"node": "Function",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "Twitter",
"type": "main",
"index": 0
}
]
]
},
"Twitter": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Function": {
"main": [
[
{
"node": "Mattermost",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
mattermostApitwitterOAuth1Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Twitter notifications. Uses twitter, mattermost. Scheduled trigger; 5 nodes.
Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Send Tweets Every Minute To Mattermost. Uses twitter, mattermost. Scheduled trigger; 5 nodes.
Social media managers, creators, and brand accounts that rely on retweets for reach but want an automated, hands-off cleanup after campaigns to keep profiles tidy and on-brand.
This workflow monitors brand mentions across multiple platforms (Twitter/X, Reddit, News) and automatically detects reputation crises based on sentiment analysis and trend detection. Multi-platform mo
Creator: Summer Chang
Auto-like and repost latest tweets from accounts in Google Sheets Who’s it for