Automate Twitter Mentions to Mattermost
detail.loadingPreview
This workflow automatically fetches recent tweets mentioning '@n8n_io' and forwards them as formatted messages to a Mattermost channel. Stay updated on brand mentions in real-time.
About This Workflow
This n8n workflow provides a seamless way to monitor Twitter for mentions of a specific account, in this case, '@n8n_io'. Triggered at regular intervals by a Cron node, it queries Twitter for the latest relevant tweets. The retrieved tweet data is then processed and structured by a 'Set' node to extract key information such as the tweet's content, author's username, profile picture, and link color. A 'Function' node ensures that only new, previously unseen tweets are forwarded, preventing duplicate notifications. Finally, a 'Mattermost' node sends these enriched tweet details as an attractive, informative message directly to a designated Mattermost channel, complete with author information and a link to the original tweet.
Key Features
- Real-time Twitter Monitoring: Automatically fetches recent tweets mentioning a target Twitter handle.
- Intelligent Duplicate Filtering: Ensures only new mentions are processed and sent.
- Rich Mattermost Notifications: Delivers formatted messages with author details, tweet content, and profile images.
- Customizable Scheduling: Set your preferred interval for checking new tweets using the Cron node.
- Easy Integration: Connects Twitter and Mattermost with minimal configuration.
How To Use
- Set up Cron Trigger: Configure the 'Cron' node to define how frequently you want to check for new tweets (e.g., 'everyMinute').
- Configure Twitter Search: In the 'Twitter' node, set the 'Operation' to 'search' and enter the Twitter handle you want to monitor in 'searchText' (e.g., 'n8n_io'). Ensure your Twitter credentials are set up.
- Map Tweet Data: Adjust the 'Set' node's 'values' to map the desired Twitter data fields to your preferred output names. The provided JSON already maps key fields like 'id', 'url', 'tweet', 'username', 'photo', 'name', and 'color'.
- Format Mattermost Message: In the 'Mattermost' node, configure the 'message' and 'attachments' to display the tweet information as desired. Use expressions to pull data from the preceding nodes. You'll need to provide your Mattermost credentials and the specific 'channelId'.
- Connect Nodes: Ensure the nodes are connected in the correct order: Cron -> Twitter -> Set -> Function -> Mattermost.
- Activate Workflow: Save and activate your n8n workflow.
Apps Used
Workflow JSON
{
"id": "fa410506-17ee-4375-be65-d1e018322cf5",
"name": "Automate Twitter Mentions to Mattermost",
"nodes": 19,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: fa410506-17ee...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.