Stay ahead of the curve and keep your followers informed—automatically.
This n8n workflow uses Perplexity AI to generate insightful answers to scheduled queries, then auto-posts the responses directly to X (Twitter).
⚙️ What this workflow does
– Scheduled Trigger – Runs at set times (daily, hourly, etc.).
– searchQuery – Define what kind of trending or relevant insight you want (e.g. “latest AI trends”).
– set API Key – Securely insert your Perplexity API key.
– Perplexity API Call – Fetches a short, insightful response to your query.
– Post to X – Automatically publishes the result as a tweet.
🧩 Requirements
– An n8n account (self-hosted or cloud)
– A Perplexity API key
– A connected X (Twitter) account via n8n’s credentials
✅ Setup Steps
1. Add this workflow into your n8n account.
2. Edit the searchQuery node with a topic (e.g. “What’s new in ecommerce automation?”).
3. Paste your Perplexity API key into the set API key node.
4. Connect your X (Twitter) account in the final node.
5. Adjust the schedule timing to suit your content frequency.
💡 Ideas to Improve
– 💬 Add a formatting step to shorten or hashtag the response.
– 📊 Pull multiple trending questions and auto-schedule posts.
– 🔁 Loop responses to queue a full week of content.
– 🌐 Translate content before posting to reach a global audience.
🆘 Need help?
Join our Discord for tips, support, and inspiration.