1_social_media_scheduler
1. AI-Powered Social Media Content Scheduler
Description
This n8n workflow automatically generates and posts content to your social media channels (e.g., Twitter/X) on a recurring schedule. It fetches inspiration from an RSS feed, uses a Large Language Model (LLM) to generate an engaging post, and then publishes it.
Architecture
graph TD
A[Schedule Trigger] --> B{RSS Feed};
B --> C{AI Agent LLM};
C --> D[Post to Social Media];
Setup
- Import Workflow: Import the
workflow.jsonfile into your n8n instance. - Configure Trigger: In the "Run Daily" node, set the time and frequency for your posts.
- Set RSS Feed: In the "Fetch RSS Feed" node, paste the URL of the RSS feed you want to use for content ideas.
- Configure LLM:
- In the "Generate Post Content" node, replace the placeholder URL with the API endpoint of your chosen LLM.
- Under "Authentication," select "Header Auth."
- Create a new credential for "Generic Auth Header":
- Header Name:
Authorization - Header Value:
Bearer {{ YOUR_LLM_API_KEY }}(replace with your actual key).
- Header Name:
- Update the JSON body of the request to match the API specification of your LLM. The current template is a generic example.
- Configure Social Media:
- In the "Post to Twitter" node, create or select your Twitter/X credentials.
- Customize the "Text" field if needed. It is pre-filled with the output from the LLM node.
Execution
- This workflow is triggered by a schedule. Once activated, it will run automatically at the configured time.
- You can also run it manually from the n8n editor by clicking the "Execute Workflow" button.