Scheduled Auto-replies to Targeted Tweets Using X (Twitter) API
What it does
This workflow automates your X (Twitter) engagement by acting as an auto-responder. It runs on a schedule, searches for new tweets based on a specific query (like a hashtag, keyword, or mention), and automatically sends a reply.
How it works
Schedule Trigger: Runs the workflow automatically at your chosen interval (e.g., every 15 minutes). Search Tweets (HTTP): Uses the X (Twitter) API v2 to find recent tweets matching your search query. Error & Success Handling: If the search is successful, it proceeds to prepare a reply. It includes error handling for common issues like Rate Limits or if No Tweets are found. Send Reply (HTTP): Posts the reply to the tweet. Duplicate Check: Includes logic to check if a reply has already been sent to avoid spamming.
How to set up
Credentials: You must have an X (Twitter) Developer Account (v2). Add your credentials to n8n. Search Node: In the "Search Tweets" node, update the query parameter with your own search terms (e.g., #n8n or from:username). Reply Node: In the "Prepare Reply" node, customize the text you want to send. Activate: Set your desired schedule in the "Schedule Trigger" node and activate the workflow.
Requirements
An active n8n instance. An X (Twitter) Developer Account with Elevated (v2) access. X (Twitter) API v2 credentials.
How to customize the workflow
Change Schedule:** Modify the "Schedule Trigger" to run more or less frequently. Dynamic Replies:** Enhance the "Prepare Reply" node with an AI node (like OpenAI) to generate unique replies instead of static text. Add Filters:** Add an "IF" node after "Search Tweets" to filter out tweets you don't want to reply to.
Related Templates
Reply to Outlook Emails with OpenAI
Who is this template for? This template is for any Microsoft Outlook user who wants a trained AI agent to reason and rep...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments