n8n

How to Automate Twitter Mentions to Slack Alerts?

Keep your team on top of brand chatter without constant checking. Every ten minutes it looks for new Twitter mentions and posts the text and a direct link in Slack. Ideal for marketing and community teams that need quick visibility.

A schedule kicks off the run on a fixed timer. A simple setup holds your Slack channel and the search value, like your handle or brand term. The flow subtracts ten minutes from the current time, pulls up to 50 recent tweets from Twitter, then keeps only items created in that window. It trims each item to just the tweet text and a tweet URL so messages stay tidy, and sends the alert to the chosen Slack channel.

Connect Twitter and Slack credentials in n8n Cloud, pick the channel, and set your search term. Expect faster replies, fewer missed tags, and a clearer view of what needs action. Great for brand monitoring, campaign tracking, and quick triage during product launches or live events.

What are the key features?

  • Runs on a fixed schedule every ten minutes using a Cron trigger
  • Central setup stores the Slack channel and the Twitter search value
  • Calculates a ten minute lookback window to find only fresh mentions
  • Searches up to 50 recent tweets that match your handle or brand term
  • Filters tweets by created time to avoid old or duplicate alerts
  • Builds a clean tweet URL and keeps only the needed fields
  • Posts a clear message with the tweet text and link into Slack

What are the benefits?

  • Reduce manual monitoring from 60 minutes a day to 5 minutes
  • Speed reply time to public mentions by up to 60 percent
  • Automate more than 90 percent of repetitive checking tasks
  • Connect Twitter and Slack so teams see mentions in one place
  • Handle higher volume by lowering the interval for more frequent checks

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Twitter and Slack. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the Twitter node named Get last 50 mentions. In the Credential to connect with field, click Create new credential and follow the on screen steps to connect your Twitter account. If asked for keys, visit the Twitter developer portal to create app keys and tokens, then paste them into n8n.
  4. Open the Slack node named Post to Slack. In the Credential to connect with field, click Create new credential and follow the on screen steps to connect Slack. Use a bot token with permission to post messages and make sure the bot is invited to your target channel.
  5. Open the Setup node. Set slackChannel to your preferred Slack channel and set twitterSearchValue to your handle or brand keyword.
  6. Check the Cron node. Keep the interval at 10 minutes or adjust it to match your monitoring needs.
  7. Open the DateTime node named Now - 10 minutes to confirm it subtracts the same interval as your schedule. This keeps the time window in sync.
  8. Click Execute on the workflow to run a test. If there were mentions in the last ten minutes, look for a Slack message with the tweet text and a link.
  9. If no message appears, confirm the bot is in the Slack channel, the search term is correct, and your Twitter credential is connected. For high volume accounts, consider a shorter interval so more mentions fit within each search.
  10. Turn on the workflow in n8n. Monitor the Slack channel during a busy period to confirm timely alerts.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Slack

Sign up

Free plan: $0 / mo; limited to 10 apps (third-party or custom) and usable via Slack API

Twitter

Sign up

Free tier: $0 / mo, 500 posts / mo and 100 reads / mo (X API v2)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.