n8n Integrationn8n Integration Setup
n8n Integration Setup
Install and configure the SocialRails n8n community node.
The SocialRails n8n community node lets you schedule posts, view analytics, generate AI content, and manage connected accounts from your n8n workflows.
Installation
Community Nodes UI (Recommended)
- Open your n8n instance
- Go to Settings > Community Nodes
- Enter
n8n-nodes-socialrails - Click Install
npm CLI
cd ~/.n8n/nodes
npm install n8n-nodes-socialrailsThen restart n8n.
Docker
Add to your Dockerfile:
RUN cd /home/node/.n8n/nodes && npm install n8n-nodes-socialrailsOr set the environment variable:
EXTRA_NODE_MODULES=n8n-nodes-socialrails
Authentication
- Log in to your SocialRails Dashboard
- Navigate to Settings > API Keys
- Click Create API Key and select scopes:
read— list posts, accounts, analytics, workspace infowrite— create, update, delete posts and upload mediaai— generate AI content (costs 2 credits per request)
- Copy the key (starts with
sr_live_) - In n8n, add a new SocialRails API credential and paste the key
API access is available on all paid plans (Creator, Business, Agency).
Your First Workflow
A simple workflow to generate and schedule an AI post:
- Schedule Trigger — fires at your desired time
- SocialRails: AI Generate — prompt: "Write a professional LinkedIn post about productivity"
- SocialRails: Post Create — use the generated content, set platform to LinkedIn
Workflow Examples
Content Calendar Automation
Automatically schedule posts for the week:
- Schedule Trigger — fires every Monday at 9 AM
- SocialRails: AI Generate — create content for each weekday
- SocialRails: Post Create — schedule each post with a date
AI-Powered Social from RSS
Generate and schedule an AI post when a new blog article is published:
- RSS Feed Trigger — watch your blog RSS
- SocialRails: AI Generate — prompt: "Summarize this blog post for Twitter: (use the title from RSS)"
- SocialRails: Post Create — schedule the generated content
Cross-Platform Publishing
Post the same content across all connected platforms:
- Webhook Trigger — receive content from your CMS
- SocialRails: Account List — get all connected platforms
- Loop — for each account, create a post with platform-appropriate settings
Next Steps
See the n8n Operations Reference for all available operations and platform notes.